Flashing

When the first flashing system uses this command( sudo ./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), what parameters are added when the second burning, which can shorten the flashing time?

Hi,

I’m not quite sure what are you referring to.
Do you mean this?

Tips:
- The tool also provides the --keep option to keep the flash
  environment, and the --reuse options to reuse the flash environment to make
  massflash run faster:

  Massflash the first time.
  $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 --keep

  Massflash the second time.
  $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 --reuse

I mean, with the brush command, after the brush success, there is a mirror, the next brush will not have to repeat the production of the mirror, because the production of the mirror is very time-consuming, on the basis of the original command to add -flash-only, can quickly brush the existing mirror?

如果你不想要花時間再重新建image的話,就跟你說的一樣用--flash-only這個參數就好

–no-flash 和 --flash-only 的用法有介绍链接吗 ? 如何使用,在哪个位置添加?

比方說你原本的flashing command長這樣

sudo ./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

你可以第一次先加上--no-flash

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 --no-flash -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

後面的參數會被存在Linux_for_Tegra/tools/kernel_flash/initrdflashparam.txt所以可以不用加
要實際flash的時候直接用

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only

就好

1.–no-flash的含义是什么?
2.我第一次没加–no-flash, 接下来我能直接用sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only 这个命令刷机吗?

就是只產生image但是不實際flash,如果你觀察完整的flashing log的話可以發現
initrd flash的流程實際上也是分成第一次先用--no-flash產生image,第二次再用--flash-only燒進去

可以

哦哦,- -no-flash只是制作image, 不刷机; - - flash-only 只刷机,不产生image; 我最初的那个命令式制作镜像和刷机同时完成了,接下来在刷机,只用flash-only就可以了,是这样的吧

沒錯,但是請確定你是用同樣的device和storage(比方說都是Orin Nano+NVMe)
image才能重複使用

好的,谢谢

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only 这个命令完整吗? 后面需要跟上nvme0n1p1 或者其他什么参数?

不用,我這裡有說了

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