My idea is to install deb packages inside the rootfs (I already have this), cross-compile things (like cmake, opencv with cuda support, grpc, protobuf etc), install some dependencies like netplan.io, remove networkmanager, create a user with password (I just saw the post Jetson Nano all USB ports suddenly stopped working about creating a user thanks to @WayneWWW script l4t_create_default_user), apt-get upgrade, etc.
For now I succeed to install all the deb packages (cuda, deepstream, etc) from sdkmanager thanks to the sdkmanager jsons (I download them via cmdline) and install them via chroot, more or less like the apply_binaries.sh script.
I failed to cross-compile cmake and opencv, it made me crazy, so for now I compile them in a chroot, this is very slow…anyway
But my doubt is about oem-config, how can I run it in a chroot from my x86 desktop ubuntu? I’ve seen things like nvidia-l4t-apt-source.list that I guess is modified by the oem-config, but I don’t know how I could do what the oem-config does inside a chroot.
Anyone has already experience about preparing this kind of ready image?