I have a jetson Xavier NX which boots from the attached nvme. (Using JP 4.4.1, but have the same problem in JP 4.6.4)
Question: In the jetson I have upgraded/installed many packages which resulted in changing the linux kernel in the nvme, and thus I ended up having problems after reboot. I understand this is stemming from a mismatch of the kernel in the emmc and that in the nvme.
Is there a way for me to copy the system of the nvme into the emmc to synchronize the changes ? If so what directories specifically should I copy to from the nvme to the emmc ?
I’ve read that copying the /boot and /lib directories is enough, but this didn’t work for me, nor did copying other directories.
Are you using the devkit or custom board for Xavier NX?
Normally, the user would not use eMMC more if they install all their custom packages and changes in NVMe because the space should be enough for their use case.
May I know what’s your use case to copy kernel from NVMe to eMMC?
Hi Kevin,
I am using JP 4.4.1 in a board that is identical to that used in the dev kit (leeptop A206), except does not have SD card.
Because I used JP 4.4.1 the way I had to setup the boot from nvme was to install a service which runs at startup to point the rootfs to the SSD installed on /dev/nvme0. I did this basically by setting
sudo systemctl enable setssdroot.service and SOME other commands from rootOnNVMe/setup-service.sh at master · jetsonhacks/rootOnNVMe · GitHub. This worked flawlessly for years.
"Once this service is installed, the rootfs will be on the SSD. If you upgrade to a newer version of L4T using OTA updates (using the NVIDIA .deb repository), you will need to also apply those changes to the SD card that you are booting from.
Typically this involves copying the /boot directory and /lib/modules// from the SSD to the SD card. If they are different, then modules load will be ‘tainted’, that is, the modules version will not match the kernel version.*"
So I tried to copy from the nvme to the emmc (board does not have card) without luck. Hence my original question.