L4t_initrd_flash_internal flash nvme storage failed

flash_cmd.txt (775 Bytes)
flash_log.txt (173.3 KB)
Jetson_xavier_nx_devkit did not install SD card, installed nvme ssd, but failed to flash with l4t_initrd_flash_internal.sh. Why is this? cmd and log as follow, fisrt error show as below, and after retry log as flash_log.txt, Thank you

Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for target to boot-up...
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Run command: flash on fc00:1:1:0::2
SSH ready
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /mnt/internal/flash.idx
Number of lines is 67
max_index=66
writing item=43, 6:0:primary_gpt, 512, 19968, gpt_primary_6_0.bin, 16896, fixed-<reserved>-0, 9b6c72274ebf55a898d1f3335e51405a7f28009d
Error: Could not stat device /dev/mmcblk0 - No such file or directory.
Flash failure
Cleaning up...

Hi,

Xavier NX won’t boot without an SD card installed.

There is no need of separating the flashing command and calling l4t_initrd_flash_internal.sh, and I don’t know how you come up with it.
Just use this:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_external.xml --showlogs --network usb0 jetson-xavier-nx-devkit nvme0n1p1

Hi Dave;
Okay, I’ll try this new command. But about ‘Xavier NX won’t boot without an SD card installed.’, I use sdkmanager to flash, no SD card , nvme is installed, it is possible to flash normally. after flash , xavier nx boot is fine; Thank you

Hi Dave:
I tried your script, but still failed, and the result should be the same; is there any other way?
Thank you


flash_log_new.txt (167.9 KB)

So do you have an SD card inserted?

Hi Dave:
There is no SD card installed at Flash. I think sdkmanager can flash successfully without SD card. There should be other ways to Flash without SD card. But I don’t know what the script is. Thank you.

Then please just use SDK Manager.

Hi Dave:
But I need to use scripts to flash. Sdkmanager is not convenient.

Hi,

It turns out that you need quotation marks for the -p option.
Please try again like

    sudo -E ./tools/kernel_flash/l4t_initrd_flash_internal.sh \
        --no-flash \
        --external-device nvme0n1p1 \
        -c tools/kernel_flash/flash_l4t_t194_nvme.xml \
        --showlogs \
        --network usb0 \
        -S 64GiB \
        -p "--no-systemimg -c bootloader/t186ref/cfg/flash_l4t_t194_qspi_p3668.xml" \
        jetson-xavier-nx-devkit \
        internal

Hi Dave:
I try to use this command, but after testing, it will stuck in rcm boot. Thank you
flash.txt (151.0 KB)
cmd.txt (991 Bytes)

 Entering RCM boot

[   0.0000 ] rcm boot with presigned binaries
[   0.0001 ] Boot Rom communication
[   0.0031 ] tegrarcm_v2 --instance 1-1 --chip 0x19 0 --rcm rcm_1_encrypt.rcm --rcm rcm_2_encrypt.rcm
[   0.0046 ] BootRom is not running
[   6.2444 ] tegrarcm_v2 --instance 1-1 --isapplet

I’ve tested and confirmed it worked on my device. (Flashing NVMe drive without SD card)
Please either try again or see if you can get some clue from the serial console log.

Hi Dave:
I flash success; Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.