I wish to modify the flash_l4t_external.xml in order to flash 1TB external nvme ssd connected to Orin Nano devkit hosting Orin NX. In addition I wish to add additional partition for user data separated from APP partition.
I did the following changes:
changed device type from external to nvme and num_sectors to 2147483648 (1TB)
now the system boots but I can’t see the USER partition, the APP partition size is not 256GB and the system created for me a default user account named ubuntu.
can you cd into /dev/disk/by-partlabe and put the result of ll here?
Also, can you flash with the default layout file, and add a -S 256GiB option to the flashing command to see if the size is correct if flashed in this way?
ubuntu@ubuntu-desktop:~$ cd /dev/disk/by-partlabel/
ubuntu@ubuntu-desktop:/dev/disk/by-partlabel$ ll
total 0
drwxr-xr-x 2 root root 320 Aug 6 10:09 ./
drwxr-xr-x 8 root root 160 Aug 6 10:09 …/
lrwxrwxrwx 1 root root 15 Aug 6 10:09 APP → …/…/nvme0n1p1
lrwxrwxrwx 1 root root 16 Aug 6 10:09 esp → …/…/nvme0n1p11
lrwxrwxrwx 1 root root 16 Aug 6 10:09 esp_alt → …/…/nvme0n1p14
lrwxrwxrwx 1 root root 15 Aug 6 10:09 kernel → …/…/nvme0n1p2
lrwxrwxrwx 1 root root 15 Aug 6 10:09 kernel_b → …/…/nvme0n1p5
lrwxrwxrwx 1 root root 15 Aug 6 10:09 kernel-dtb → …/…/nvme0n1p3
lrwxrwxrwx 1 root root 15 Aug 6 10:09 kernel-dtb_b → …/…/nvme0n1p6
lrwxrwxrwx 1 root root 15 Aug 6 10:09 recovery → …/…/nvme0n1p8
lrwxrwxrwx 1 root root 16 Aug 6 10:09 recovery_alt → …/…/nvme0n1p12
lrwxrwxrwx 1 root root 15 Aug 6 10:09 recovery-dtb → …/…/nvme0n1p9
lrwxrwxrwx 1 root root 16 Aug 6 10:09 recovery-dtb_alt → …/…/nvme0n1p13
lrwxrwxrwx 1 root root 16 Aug 6 10:09 RECROOTFS → …/…/nvme0n1p10
lrwxrwxrwx 1 root root 15 Aug 6 10:09 reserved_for_chain_A_user → …/…/nvme0n1p4
lrwxrwxrwx 1 root root 15 Aug 6 10:09 reserved_for_chain_B_user → …/…/nvme0n1p7
Also, can you flash with the default layout file, and add a -S 256GiB option to the flashing command to see if the size is correct if flashed in this way?
is the num_sectors variable also reset to the default value?
Does pre-formatting the SSD before flashing make any difference?
Also provide the UART log during flashing here.
I don’t mean checking it after flashing. I mean the xml layout file used during flashing.
So the situation is, when your owned layout file is used, the flashing ends successfully, but you don’t get the extra partition you want, and the size of the APP partition is also not 256GB as specified.
If the default layout file is used, the flashing fails with -S 256 GiB. Is that right?
Can you try changing num_sectors to 2147483648 in the default layout file, leaving other things as default values, and flash again with -S 256 GiB?
Maybe the size of your NVMe drive is not correctly detected by the flashing script, or the script first reads the -S option, and then finds the size of the drive afterwards so it fails. (The default layout file is only 57GB)
Regarding the customized partition, I’ll check with our internal team to see if made the right way doing it.