Xavier NX FLASH SD Problem

L32R 4.3
There are two ways to flash the SD card,
1、sudo ./flash.sh
2、USE Etcher and SD.img file

If I use the /flash.sh method, but the root partition is too small after flashing, and I can’t find a suitable method to modify the partition.

It is said on the Internet that flashing through Etcher and SD.img file is the perfect solution, so I download jetson-nx-developer-kit-sd-card-image.zip tried it and it did solve the previous problem, but I found that after flashing SD in this way, the Image file can be upgraded by changing the /boot/Image file, but DTB cannot use ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit mmcblk0p1 to upgrade

hello liliasojd,

please review the file, /boot/extlinux/extlinux.conf,
device tree blob will load from file system instead of kernel partition if you’re having FDT entry in the configure file,

Thank you, but I found that using /flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit mmcblk0p1 did not change /boot/tegra194-p3668-all-p3509-0000.dtb or /boot/dtb/tegra194- p3668-all-p3509-0000.dtb

hello liliasojd,

because those were files on your file system.
the commands, /flash.sh -k kernel-dtb, it update the kernel-dtb partition.
check this, $ ls -al /dev/disk/by-partlabel/ for more details.
thanks

ls -al /dev/disk/by-partlabel/
total 0
drwxr-xr-x 2 root root 260 7月 29 14:52 .
drwxr-xr-x 8 root root 160 7月 29 14:52 …
lrwxrwxrwx 1 root root 15 7月 29 14:52 APP → …/…/mmcblk0p1
lrwxrwxrwx 1 root root 15 7月 29 14:52 kernel → …/…/mmcblk0p2
lrwxrwxrwx 1 root root 15 7月 29 14:52 kernel_b → …/…/mmcblk0p3
lrwxrwxrwx 1 root root 15 7月 29 14:52 kernel-bootctrl → …/…/mmcblk0p8
lrwxrwxrwx 1 root root 15 7月 29 14:52 kernel-bootctrl_b → …/…/mmcblk0p9
lrwxrwxrwx 1 root root 15 7月 29 14:52 kernel-dtb → …/…/mmcblk0p4
lrwxrwxrwx 1 root root 15 7月 29 14:52 kernel-dtb_b → …/…/mmcblk0p5
lrwxrwxrwx 1 root root 15 7月 29 14:52 recovery → …/…/mmcblk0p6
lrwxrwxrwx 1 root root 15 7月 29 14:52 recovery-dtb → …/…/mmcblk0p7
lrwxrwxrwx 1 root root 16 7月 29 14:52 RECROOTFS → …/…/mmcblk0p10
lrwxrwxrwx 1 root root 16 7月 29 14:52 UDA → …/…/mmcblk0p11

I am even more confused in this way,
1、kernel-dtb → …/…/mmcblk0p4,
Then we update the DTB should be./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit mmcblk0p4, but all the online tutorials are mmcblk0p1
2、If I set the FDT entry in the configure file, do I need to manually overwrite the FDT object file in Linux?

hello liliasojd,

the command-line, -k kernel-dtb has already point to the correct partitions.
the mmcblk0p1 is actually for the rootdev recognition, it skips flashing rootfs since -k options has included,
so,
below shows the correct command to perform device tree blob partition update.
i.e. $ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit mmcblk0p1

as I said.
device tree blob will load from file system instead of kernel partition if you’re having FDT entry in the configure file,
it’s CBoot functionality includes a default booting scan sequence, please check CBoot session for more details.
thanks

1 Like

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