logic@logic-dell:~/Desktop/Linux_for_Tegra$ sudo ./flash.sh -r -k APP -G backup.img jetson-nano-qspi-sd mmcblk0p1
[sudo] logic 的密码:
###############################################################################
L4T BSP Information:
R32 , REVISION: 7.1
###############################################################################
Target Board Information:
Name: jetson-nano-qspi-sd, Board Family: t210ref, SoC: Tegra 210,
OpMode: production, Boot Authentication: ,
Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x21 --applet “/home/logic/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery.bin” --skipuid --cmd “dump eeprom boardinfo cvm.bin”
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
[ 0.0015 ] Generating RCM messages
[ 0.0031 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /home/logic/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0
[ 0.0034 ] RCM 0 is saved as rcm_0.rcm
[ 0.0043 ] RCM 1 is saved as rcm_1.rcm
[ 0.0046 ] List of rcm files are saved in rcm_list.xml
[ 0.0046 ]
[ 0.0046 ] Signing RCM messages
[ 0.0060 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0063 ] Assuming zero filled SBK key
[ 0.0101 ]
[ 0.0101 ] Copying signature to RCM mesages
[ 0.0115 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0123 ]
[ 0.0123 ] Boot Rom communication
[ 0.0138 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[ 0.0140 ] RCM version 0X210001
[ 1.8444 ] Boot Rom communication completed
[ 2.8528 ]
[ 2.8529 ] dump EEPROM info
[ 2.8558 ] tegrarcm --oem platformdetails eeprom /home/logic/Desktop/Linux_for_Tegra/bootloader/cvm.bin
[ 2.8571 ] Applet version 00.01.0000
[ 4.6499 ] Saved platform info in /home/logic/Desktop/Linux_for_Tegra/bootloader/cvm.bin
[ 4.7273 ]
[ 4.7301 ] tegrarcm --reboot recovery
[ 4.7309 ] Applet version 00.01.0000
[ 6.5300 ]
Board ID(3448) version(402)
copying bctfile(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)… done.
copying bootloader(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying initrd(/home/logic/Desktop/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
Making Boot image… done.
Existing sosfile(/home/logic/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)… done.
copying cpu_bootloader(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying bpffile(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)… done.
copying wb0boot(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)… done.
Existing tosfile(/home/logic/Desktop/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/home/logic/Desktop/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/logic/Desktop/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)… done.
Copying nv_boot_control.conf to rootfs
Skip generating system.img
Existing tbcfile(/home/logic/Desktop/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying tbcdtbfile(/home/logic/Desktop/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)… done.
copying cfgfile(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/cfg/flash_l4t_t210_max-spi_sd_p3448.xml) to flash.xml… done.
copying flasher(/home/logic/Desktop/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
Existing flashapp(/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash.py) reused.
*** Reading [APP] and storing to /home/logic/Desktop/Linux_for_Tegra/backup.img ***
./tegraflash.py --bl cboot.bin --bldtb kernel_tegra210-p3448-0000-p3449-0000-b00.dtb --chip 0x21 --applet nvtboot_recovery.bin --bct P3448_A00_lpddr4_204Mhz_P987.cfg --cfg flash.xml --odmdata 0xa4000 --cmd “read APP /home/logic/Desktop/Linux_for_Tegra/backup.img”
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
[ 0.0030 ] Generating RCM messages
[ 0.0045 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
[ 0.0048 ] RCM 0 is saved as rcm_0.rcm
[ 0.0052 ] RCM 1 is saved as rcm_1.rcm
[ 0.0055 ] List of rcm files are saved in rcm_list.xml
[ 0.0055 ]
[ 0.0055 ] Signing RCM messages
[ 0.0070 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0072 ] Assuming zero filled SBK key
[ 0.0111 ]
[ 0.0111 ] Copying signature to RCM mesages
[ 0.0125 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0133 ]
[ 0.0133 ] Boot Rom communication
[ 0.0147 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml
[ 0.0150 ] BR_CID: 0x32101001642c53090000000017060380
[ 0.9074 ] RCM version 0X210001
[ 1.8151 ] Boot Rom communication completed
[ 2.8232 ]
[ 2.8233 ] Parsing partition layout
[ 2.8259 ] tegraparser --pt flash.xml.tmp
[ 2.8291 ]
[ 2.8292 ] Creating list of images to be signed
[ 2.8320 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
[ 2.8419 ]
[ 2.8420 ] Generating signatures
[ 2.8435 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
[ 2.8438 ] Assuming zero filled SBK key
[ 2.8843 ]
[ 2.8844 ] Send BCT from Host
[ 2.8844 ] Generating br-bct
[ 2.8859 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.cfg --chip 0x21 0
[ 2.8893 ]
[ 2.8894 ] Updating boot device parameters
[ 2.8909 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
[ 2.8912 ] Warning: No sdram params
[ 2.8913 ]
[ 2.8914 ] Updating bl info
[ 2.8928 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 2.8944 ]
[ 2.8944 ] Updating secondary storage information into bct
[ 2.8958 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_lpddr4_204Mhz_P987.bct
[ 2.8963 ]
[ 2.8963 ] Updating Odmdata
[ 2.8977 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0xa4000
[ 2.8980 ] Warning: No sdram params
[ 2.8982 ]
[ 2.8983 ] Get Signed section of bct
[ 2.8997 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
[ 2.9001 ]
[ 2.9001 ] Signing BCT
[ 2.9029 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
[ 2.9032 ] Assuming zero filled SBK key
[ 2.9037 ]
[ 2.9037 ] Updating BCT with signature
[ 2.9051 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
[ 2.9056 ]
[ 2.9056 ] Sending BCTs
[ 2.9070 ] tegrarcm --download bct P3448_A00_lpddr4_204Mhz_P987.bct
[ 2.9073 ] Applet version 00.01.0000
[ 4.7092 ] Sending bct
[ 4.7097 ] […] 100%
[ 4.9320 ]
[ 4.9321 ] Retrieving storage infomation
[ 4.9352 ] tegrarcm --oem platformdetails storage storage_info.bin
[ 4.9367 ] Applet version 00.01.0000
[ 6.7442 ] 00000003: Could not initialize storage device
[ 7.2088 ]
[ 7.2116 ] tegradevflash --oem platformdetails storage storage_info.bin
^[[A^[[A^[[B^[[B^[[B^[[B^[[B^[[B^CTraceback (most recent call last):
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 2502, in tegraflash_get_storage_info
run_command(command)
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 206, in run_command
raise tegraflash_exception('Return value ’ + str(return_code) +
tegraflash_internal.tegraflash_exception: ‘Return value 3\nCommand tegrarcm --oem platformdetails storage storage_info.bin’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/./tegraflash.py”, line 1296, in
tegraflash_run_commands()
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/./tegraflash.py”, line 1155, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python3.10/cmd.py”, line 217, in onecmd
return func(arg)
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/./tegraflash.py”, line 364, in do_read
tegraflash_read(exports, args[0], file_path)
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 440, in tegraflash_read
tegraflash_get_storage_info()
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 2506, in tegraflash_get_storage_info
run_command(command)
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 202, in run_command
log = print_process(process, enable_print)
File “/home/logic/Desktop/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 161, in print_process
output = process.stdout.read(1)
KeyboardInterrupt
The terminal command output is stuck in this position
[ 6.7442 ] 00000003: Could not initialize storage device
[ 7.2088 ]
[ 7.2116 ] tegradevflash --oem platformdetails storage storage_info.bin
My device is a jetson nano b01 development kit
sudo ./flash.sh -r -k APP -G backup.img jetson-nano-devkit mmcblk0p1
I also get the same result when I execute this command, stuck in the same position
Is it because nvidia does not officially support the image recovery function for this model device?because I want to make my own image with a specific program, and then I want to make a batch burn kit, using nvmassflashgen.sh. Then batch let the model device execute nvmflash.sh in recovery mode, and burn my own image. So now I’m stuck at this step and I can’t move on to the next step.
How do I accomplish this goal if I can’t back up the image with flash.sh?