to download docker container in order to build Orin apps on a separate host.
The process of downloading and preparing the container is very slow and consumes a lot of space - the container is about 33 GB. I found that the only important thing that docker container contains is targetfs.tbz2, which is only 7 GB in size.
The rest of the container is standard Ubuntu stuff, which I do not need. So, I have to download this huge container,
extract targetfs.tbz2 and then delete the container. And I need to repeat this for every version of Jetpack, which we have to support.
It will be much better if Nvdia will provide a direct download link to targetfs.tbz2 for each jetpack version of Jetpack, just like all other jetson download links at Jetson Linux 35.3.1 | NVIDIA Developer
This will save a lot of time for me and Nvidia servers as well.
Is it possible to do that?
Thank you
No, these are file systems for installations, they cannot be used for cross compilations.
If you attempt to cross compile against Linux_for_Tegra/rootfs/ then you will get error like:
(.text+0x0): undefined reference to `__dladdr’
this is because Linux_for_Tegra/rootfs/ contains absolute links like this:
Linux_for_Tegra/rootfs/usr/lib/aarch64-linux-gnu/libpthread.so → /lib/aarch64-linux-gnu/libpthread.so.0
So, if you compile against Linux_for_Tegra/rootfs you will erroneously include files from your host PC /lib directory, which will not work.
Therefore, Nvidia prepared a completely different rootfs for cross-compilation targetfs.tbz2, where absolute symlinks are replaced by relative ones plus many other changes.
Unfortunately, targetfs.tbz2 is only included as part of docker container and not as individual download.