[L4T 35.3.1] Fails to flash QSPI memory using "l4t_initrd_flash.sh"


We’re trying to flash the Orin Nano (4GB SOM w/ external NVME drive) using this command:

sudo ADDITIONAL_DTB_OVERLAY_OPT="BootOrderNvme.dtbo" ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
-c tools/kernel_flash/flash_l4t_external.xml \ 
-p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
--showlogs --network usb0 jetson-orin-nano-devkit internal

During the flashing, we see errors like this (1):

[ 7]: l4t_flash_from_kernel: Starting to flash to qspi
mtd_debug: error!: open()

And then later this (2):

[ 335]: l4t_flash_from_kernel: Successfully flash the external device
[ 335]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
[ 335]: l4t_flash_from_kernel: Error flashing qspi
Flash failure
Cleaning up...

Can you please tell me how to debug this issue with the qspi? It seems the NVME can be flashed successfully, but not the memory on the SOM.

I’ve also attached the whole log file here:
5-3-2023-flash.log (284.7 KB)

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

please dump the serial console log when you try the flash.