Pre Installing ros before flashing


I want to know if there’s any easy way of pre installing ROS in TX2 sources directly, that every time I flash a TX2 i don’t need to install it all over again.

Please ask for any lacking information, I am not very experienced with these topics.

Thank you

Hi @FranciscoZacarias, this question isn’t specific to ROS in particular, but you could clone your TX2 after you have set it up, and use that image for flashing instead:

Here are also some pages about customizing the rootfs from an x86 machine (using qemu arm64 emulator) without having to clone it:

My recommendation however is to use a Docker container for ROS and your application so that it is more portable (and probably would be easier to manage and create). I have a bunch of ROS containers available here:

1 Like

Incidentally, a clone can be flashed into a Jetson as mentioned by @dusty_nv, but you can also replace the “Linux_for_Tegra/rootfs/” content with the clone as your starting basis. The difference is that reusing the clone image is an exact install of that image, whereas if you place the content in “Linux_for_Tegra/rootfs/”, then the kernel and some boot content will be installed new when generating an image which is otherwise an exact match to the clone.

Hi @linuxdev , thank you for your answer as well.

I decided to go with cloning (hence why I accepted @dusty_nv 's answer) because I wasn’t being able to find a way to install the packages and dependencies directly in Linux_for_Tegra/rootfs/ as simply as one would do an apt install ... . I think this will do for now as a way to flash multiple jetson’s without having to manually install everything i need them to have every single time.

Thank you for your answers.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.