Flashed on nvme failed

I was trying to flash modified kernel on NVMe, but it end up flashed on eMMC, and has some issue after booting.

Here are my steps:

  1. modified something for enable nvpps (following nvpps.txt in kernel source code)
  2. build and move compiled /dts/nvidia/* into /kernel/dtb (it replace something, i was not sure if it is correct to do that)
  3. move compiled Image into /kernel/
  4. flash with command: sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_external.xml --showlogs --network usb0 jetson-agx-orin-devkit internal

flash_1-10_0_20251121-094954.log (65.8 KB)

There are two issues after booting.

  1. After power on, it printout something and then the screen turn black without any response. (if boot on NVMe, but boot on eMMC is normal)
  2. It was not flashed on NVMe, instead it was flashed on eMMC.

I found two line suspicious in log:

Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.

Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you can fix the GPT to use all of the space (an extra 4653056 blocks) or continue with the current setting? 
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 857235504 blocks) or continue with the current setting? 

Looking forward any advise, thanks.

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, it appears that you are trying to flash a modified kernel on the Jetson AGX Orin series with NVMe as the rootfs storage. However, the kernel was flashed on the eMMC instead, and you are experiencing issues after booting.

To address this issue, let’s break down the steps you provided and compare them with the recommended commands for flashing the Jetson AGX Orin series with NVMe as the rootfs storage.

  1. You mentioned that you modified something to enable nvpps by following the nvppstxt in the kernel source code. This step is not directly related to the flashing process, but it’s essential to ensure that the modifications are correct and compatible with the Jetson AGX Orin series.
  2. You built and moved the compiled kernel into the flash directory. This step is correct, but you need to ensure that the compiled kernel is compatible with the Jetson AGX Orin series and that the flash directory is correctly configured.
  3. You used the command flash --nvme to flash the kernel. However, the command you provided (flash110020251121094954log 658 KB) seems to be incomplete and incorrect. The recommended command for flashing the Jetson AGX Orin series with NVMe as the rootfs storage is:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -u <pkc_keyfile> [-v <sbk_keyfile>] --uefi-keys uefi_keys/uefi_keys.conf -p "-c ./bootloader/generic/cfg/flash_t234_qspi.xml" -c ./tools/kernel_flash/flash_l4t_t234_nvme.xml --showlogs --network usb0 jetson-agx-orin-devkit external

This command specifies the external device as NVMe (--external-device nvme0n1p1) and uses the flash_l4t_t234_nvme.xml configuration file, which is specific to the Jetson AGX Orin series with NVMe as the rootfs storage.

To resolve the issues you are experiencing, I recommend the following:

  1. Verify that the modifications you made to the kernel are correct and compatible with the Jetson AGX Orin series.
  2. Ensure that the compiled kernel is correctly configured and moved to the flash directory.
  3. Use the recommended command for flashing the Jetson AGX Orin series with NVMe as the rootfs storage, as shown above.
  4. Check the log files for any errors or warnings that may indicate the cause of the issues you are experiencing.

Regarding the two suspicious lines in the log, it would be helpful to provide more context or information about the specific error messages or warnings you are seeing. This will allow for a more accurate diagnosis and resolution of the issues.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

Please try official guide commands instead

#Jetson AGX Orin Developer Kit (NVMe):

$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_t234_nvme.xml \
  --showlogs --network usb0 jetson-agx-orin-devkit external

Thanks

I tried twice, one failed (RT kernel) one succeed (normal kernel), so I think it worked, but don’t know why sometimes it just failed. Thank you for your help.