Our goal is to flash 30 Tegra Devices at the same time.
may I know the is there any suspicious failure message shown in the console side.
may I also know your environment setups.
My original testing was on a native Ubuntu 16.04 host.
I’m using 3 Jetson TX2 devices for testing. Two of them is ok. The aborted log is following:
Welcome to Tegra Flash
Type ? or help for help and q or quit to exit
Use ! to execute system commands
[ 0.0024 ] tegrasign_v2 --key None --getmode mode.txt
[ 0.0046 ] Assuming zero filled SBK key
[ 0.0126 ]
[ 0.0126 ] Generating RCM messages
[ 0.0149 ] tegrarcm_v2 --instance 1-2 --listrcm rcm_list.xml --chip 0x18 --download rcm mb1_recovery_prod.bin 0 0
[ 0.0171 ] RCM 0 is saved as rcm_0.rcm
[ 0.0180 ] RCM 1 is saved as rcm_1.rcm
[ 0.0180 ] List of rcm files are saved in rcm_list.xml
[ 0.0180 ]
[ 0.0181 ] Signing RCM messages
[ 0.0200 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0221 ] Assuming zero filled SBK key
[ 0.0263 ]
[ 0.0264 ] Copying signature to RCM mesages
[ 0.0287 ] tegrarcm_v2 --instance 1-2 --chip 0x18 --updatesig rcm_list_signed.xml
[ 0.0310 ]
[ 0.0311 ] Parsing partition layout
[ 0.0331 ] tegraparser_v2 --pt flash.xml.tmp
[ 0.0356 ]
[ 0.0356 ] Creating list of images to be signed
[ 0.0376 ] tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[ 0.0398 ] File read failed
[ 0.0401 ]
Error: Return value 2
Command tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
we will investigate this internally,
may I also know which JetPack release you’re working on?
sorry for late reply,
could you please have a try to flash multiple tegra device at the same time with the scripts in the attachment, massflash.7z
massflash.7z (5.07 KB)
Attached the nvmassflashgen.sh for TX2.
Rename it as nvmassflashgen.sh
nvmassflashgen.sh.txt (19 KB)
may i know which code did you update? we have converted your bash code into python, so i need to update python code accordingly
Download the massflash.7z replace the nvmassflashgen.sh by my attachment nvmassflashgen.sh.txt
And check the TX1_r28.2_Massflash.txt to know how to gen the mass flash image.
I could restore two TX2s at the same time, but I found TX2 image was not restored to given version, but to original image using below cmds.
- ./flash.sh --no-flash jetson-tx2 mmcblk0p1
- ./tegraflash.py --bl nvtboot_recovery_cpu.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --odmdata 0x1090000 --applet mb1_recovery_prod.bin --cmd “flash; reboot” --cfg flash.xml --chip 0x18 --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg --bins “mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb” --instance 1-1
however, when I used cmd below, I could restore TX2 to given image.
./flash.sh -r -k APP jetson-tx2 mmcblk0p1
Not really understand your problem.
Do you want to flash multiple devices to and backup image?
sorry for misunderstanding, Shane. I want to restore TX2 using customized system.img.raw, but after using first command, I found my TX2 was restored to default image, not the image I want.
So you want to restore APP partition for multiple devices?
Have a check below link for if any step different.
I don’t think we are the same issue. I didn’t hit restore failed. I can restore TX2 using “./flash.sh -r -k APP jetson-tx2 mmcblk0p1” each time, and the image is what i want, I mean I pre-installed lots of packages and software. However, when using cmds in “Flashing Multiple Tegra Devices”, after system was restored, the system was re-fresh to default, which means no pre-installed softare and packages found.
And My scenario is One host Ubuntu 16.04 which connected lots of TX2s, I need to restore random TX2 according to command.
So you want to restore backup image for multiple devices?
That should be an another story.
I think you can try the massflash.7z to gen the mass flash image and replace the system.img and flash multiple devices by nvmflash.sh.
I think you might add “-r” options in the commands.
-r | Specifies to skip building and reuse existing system.img.
please kindly refer to Flashing and Booting the Target Device chapter.
do you mean to add “-r” when “./flash.sh -r
–no-flash jetson-tx2 mmcblk0p1”?
since you already generate a customize system image. you’ll need “-r” options to reuse existing image.
however, I think your use-case is different with this topic.
your use-case is going to restore APP partition to any random TX2 devices.
I would suggest you summarize your testing result and file another new topic with appropriate title.
We have a similar problem.
Flash two jetson TX2, it’s ok. When flashing three boards, one of them disconnected.
The aborted log is following:
*** Boot Rom communication
/home/engineer/nvidia/nvidia_sdk/JetPack_4.3_Linux_JETSON_TX2/mfi_jetson-tx2/tegrarcm_v2 --instance 1-3 --chip 0x18 0 --rcm rcm_list_signed.xml
RCM version 0X180001
Boot Rom communication completed
*** Boot Rom communication succeeded.
*** Checking applet
/home/engineer/nvidia/nvidia_sdk/JetPack_4.3_Linux_JETSON_TX2/mfi_jetson-tx2/tegrarcm_v2 --instance 1-3 --isapplet
No device on specified bus-port[1-3]
USB communication failed.Check if device is in recovery
*** Error: Checking applet failed.
Host Ubuntu 18.04. JetPack 4.3
Please help to open a new topic for your issue. Thanks