I hope to have some way to decide whether to boot the system from the emmc or from the USB drive when the Jetson TX2 NX starts up

I hope to have some way to decide whether to boot the system from the emmc or from the USB drive when the Jetson TX2 NX starts up. Is this achievable? I switched the boot device now by modifying/boot/extLinux/extlinux.cn, but this requires modifying the file and restarting after booting. Is there any other way?

你所謂的"boot the system"並不完整正確…

extlinux.conf只能改rootfs mount的位置 真的開機用的boot device要從uboot看.

比方說好了, 你現在的kernel跟extlinux.conf檔案都還是從emmc讀的. 跟你的usb drive沒有關聯. 這並不是完整的boot the system from usb drive

请问如何进入到uboot看我的boot device设置?

我在U-Boot中修改启动顺序,将uboot中的启动顺序修改为usb0为第一启动项后usb0的系统启动失败了,Jetson启动了emmc中的系统。我的usb设备中的系统是直接使用dd命令直接复制emmc中的系统得到的。是否因为是这个原因?如果是,能否给我具体的usb设备系统烧录方法。

Hi,

抱歉 忘了說明 其實TX2系列沒有辦法從USB開機 這是一個known issue.

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3273/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/flashing.html#wwpID0E0HO0HA

請改用nvme之類的進行開機.

好的。我注意到你发送的链接中 Flashing to a USB Drive 这部分下文提到了 Flashing to an SD Card ,请问烧写系统至SD卡中现在是否支持TX2 NX?

如果你要的是燒錄到sdcard, 那你得用的是initrdflash, 不能用flash.sh.

同一份document → Flashing with initrd

我在烧录中遇到了问题。我执行过的命令:

sudo apt install libxml2-utils simg2img network-manager abootimg sshpass device-tree-compiler 
#cd Linux_for_Tegra
tar xvjf secureboot R32.7.2 aarch64.tbz2 
systemctl stop udisks2.service

接下来我将TX2 NX进入恢复模式,保持SD卡安装在设备上,将TX2 NX与Host PC连接,开始烧写。
sudo ./tools/kernel_flash/l4t_initrd_flash.sh jetson-xavier-nx-devkit-tx2-nx mmcblk1p1
终端输出停止在:

Finish generating flash package.
/home/oran/Documents/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh  --usb-instance 3-3 --device-instance 0 --flash-only  jetson-xavier-nx-devkit-tx2-nx mmcblk1p1
Start flashing device: 3-3, rcm instance: 0, PID: 13308
Log will be saved to Linux_for_Tegra/initrdlog/flash_3-3_0_20240322-153503.log 
Ongoing processes: 13308
Ongoing processes: 13308
Ongoing processes: 13308
Ongoing processes: 13308
Ongoing processes: 13308
Ongoing processes: 13308
Ongoing processes: 13308
Ongoing processes:
Flash complete (WITH FAILURES)

我尝试在命令中添加参数:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-only jetson-xavier-nx-devkit-tx2-nx mmcblkn1p1

Finish generating flash package.
/home/oran/Videos/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --external-only --usb-instance 3-3 --device-instance 0 --flash-only  jetson-xavier-nx-devkit-tx2-nx mmcblkn1p1
Start flashing device: 3-3, rcm instance: 0, PID: 25522
Log will be saved to Linux_for_Tegra/initrdlog/flash_3-3_0_20240322-163355.log 
Ongoing processes: 25522
Ongoing processes: 25522
Ongoing processes: 25522
Ongoing processes: 25522
Ongoing processes: 25522
Ongoing processes: 25522
Ongoing processes:

请问是我的命令不对或者其他部分出现了问题吗?

下面是完整的Log
with–external-only.txt (25.2 KB)
without–external-only.txt (65.7 KB)

這partition錯了吧

抱歉这里拼写错误,将其替换为mmcblk1p1似乎得到了同样的错误:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh  --external-only jetson-xavier-nx-devkit-tx2-nx mmcblk1p1

#输出
Finish generating flash package.
/home/oran/Videos/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --external-only --usb-instance 3-3 --device-instance 0 --flash-only  jetson-xavier-nx-devkit-tx2-nx mmcblk1p1
Start flashing device: 3-3, rcm instance: 0, PID: 10503
Log will be saved to Linux_for_Tegra/initrdlog/flash_3-3_0_20240325-121031.log 
Ongoing processes: 10503
Ongoing processes: 10503
Ongoing processes: 10503
Ongoing processes: 10503
Ongoing processes: 10503
Ongoing processes: 10503
Ongoing processes:

下面是完整的日志,一同附上"Log will be saved to Linux_for_Tegra/initrdlog/flash_3-3_0_20240325-121031.log "中提到的日志,希望有所帮助
0325.txt (25.1 KB)

flash_3-3_0_20240325-121031.log (8.6 KB)

Please use such command. Replace the “your_board_config” in above to match the one you are using for flash.

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