I’ve been trying to encrypt the rootfs on my nvme using the initrd flash, the generating of the images for the ssd and the eMMC are good, I don’t have a problem also the jetson is always in force recovery mode after each generating of the images, however when I try to flash I get this error here is a file that shows the whole flow: flash_nmve_fail_usb.txt (226.3 KB)
I’ve searched many other solutions but still can’t find a solution. my ubuntu is 22.04, Im also not running any vms.
I’ve also disabled the autosuspend on host PC with below command:
Why is the external storage is waiting for the sdmmc cfg file? I think this is the problem, but I don’t know how to fix I even tried to change the 3737-0000-p3701-0000.conf.common file:
It seems you failed at 2nd command to create external image.
Do you have <Linux_for_Tegra>/bootloader/generic/cfg/flash_l4t_t234_qspi_sdmmc_enc_rfs.xml on your host?
I’ve checked my BSP package, it should be flash_t234_qspi_sdmmc_enc_rfs.xml rather than flash_l4t_t234_qspi_sdmmc_enc_rfs.xml. Do you modify its name?
If you are asking about initrd flash, it is used for external device, but it would also call flash.sh for internal device and the -p is used to pass the parameters.
If you are asking about “flashing the kernel”, please just refer to the flash log for details.
Update again I got it to work, the cfg file was indeed the issue, but the problem is the timeout usb, is completly random you cannot predicte when or when not it will work, I reforced the recovery mode and used the flash commend and magicaly it worked like charm. Thank you for the help tho’ we can close this ticket.
Also one last question when trying to generate the eks image I saw there is an oem_k1.key in the other versions of the example.sh to generate the eks image the value was:
Update: changing the oem value to 0000 did make it work, but for the nvme I had to change the value of the oem to the value showed before, I don’t understand why but I think it has to do with the flashing.sh we are using, seems like the initrd flash need a value for the oem, but the normal flash.sh don’t.
The keys in example.sh are the test/sample keys.
You can use your own key for disk-encryption, but please remember to use the same key for the same board.
I know that I just want to know when to give the oem_k1.key a value, sometimes it’s null (“00000…”) and sometime it has this value “2d4a614e…” like shown here:
Cause Ithink that boot error I showed you has to do with the default value of the OEM_K1 fuse key I have to keep playing with the values( 000… and the 2d4a…).