hello, i have jetson nano emmc module. i want to flash. i have completed all the steps. i get the following error while flashing. what could be the reason.
~/Downloads/aa/Linux_for_Tegra$ sudo ./flash.sh jetson-nano-emmc mmcblk0p1
[sudo] password for serkan:
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 7.2
###############################################################################
# Target Board Information:
# Name: jetson-nano-emmc, Board Family: t210ref, SoC: Tegra 210,
# OpMode: production, Boot Authentication: ,
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x21 --applet "/home/serkan/Downloads/aa/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.0018 ] Generating RCM messages
[ 0.0028 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0
[ 0.0038 ] RCM 0 is saved as rcm_0.rcm
[ 0.0041 ] RCM 1 is saved as rcm_1.rcm
[ 0.0041 ] List of rcm files are saved in rcm_list.xml
[ 0.0041 ]
[ 0.0041 ] Signing RCM messages
[ 0.0068 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0076 ] Assuming zero filled SBK key
[ 0.0116 ]
[ 0.0117 ] Copying signature to RCM mesages
[ 0.0147 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0179 ]
[ 0.0179 ] Boot Rom communication
[ 0.0191 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[ 0.0200 ] RCM version 0X210001
[ 0.0746 ] Boot Rom communication completed
[ 1.1413 ]
[ 1.1413 ] dump EEPROM info
[ 1.1424 ] tegrarcm --oem platformdetails eeprom /home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/cvm.bin
[ 1.1434 ] Applet version 00.01.0000
[ 1.3184 ] Saved platform info in /home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/cvm.bin
[ 1.5873 ]
[ 1.5908 ] tegrarcm --reboot recovery
[ 1.5917 ] Applet version 00.01.0000
[ 1.8307 ]
Board ID(3448) version(401)
copying bctfile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)... done.
copying bootloader(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying initrd(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
Existing sosfile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)... done.
copying cpu_bootloader(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying bpffile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)... done.
copying wb0boot(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)... done.
Existing tosfile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/serkan/Downloads/aa/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)... done.
Copying nv_boot_control.conf to rootfs
populating kernel to rootfs... done.
populating initrd to rootfs... done.
populating kernel_tegra210-p3448-0002-p3449-0000-b00.dtb to rootfs... done.
Making system.img...
populating rootfs from /home/serkan/Downloads/aa/Linux_for_Tegra/rootfs ... populating /boot/extlinux/extlinux.conf ... done.
Sync'ing system.img ... done.
Converting RAW image to Sparse image... done.
system.img built successfully.
Existing tbcfile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying tbcdtbfile(/home/serkan/Downloads/aa/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)... done.
copying cfgfile(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/cfg/flash_l4t_t210_emmc_p3448.xml) to flash.xml... done.
copying flasher(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
Existing flashapp(/home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl cboot.bin --bct P3448_A00_lpddr4_204Mhz_P987.cfg --odmdata 0xa4000 --bldtb kernel_tegra210-p3448-0002-p3449-0000-b00.dtb --applet nvtboot_recovery.bin --cmd "flash; reboot" --cfg flash.xml --chip 0x21 --bins "EBT cboot.bin; DTB tegra210-p3448-0002-p3449-0000-b00.dtb"
saving flash command in /home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/serkan/Downloads/aa/Linux_for_Tegra/bootloader/flash_win.bat
assign_value: crc-flash.xml.bin 1 131056 1
printf '\x1' | dd of=crc-flash.xml.bin bs=1 seek=131056 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 7,6708e-05 s, 13,0 kB/s
assign_value: crc-flash.xml.bin 0 131057 1
printf '\x0' | dd of=crc-flash.xml.bin bs=1 seek=131057 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 6,9713e-05 s, 14,3 kB/s
assign_string: crc-flash.xml.bin PTHD 131064 4
echo PTHD | dd of=crc-flash.xml.bin bs=1 seek=131064 count=4 conv=notrunc
4+0 records in
4+0 records out
4 bytes copied, 7,0575e-05 s, 56,7 kB/s
*** Flashing target device started. ***
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.0045 ] tegrasign --getmode mode.txt --key None
[ 0.0054 ] Assuming zero filled SBK key
[ 0.0133 ]
[ 0.0134 ] Generating RCM messages
[ 0.0185 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
[ 0.0193 ] RCM 0 is saved as rcm_0.rcm
[ 0.0552 ] RCM 1 is saved as rcm_1.rcm
[ 0.0558 ] List of rcm files are saved in rcm_list.xml
[ 0.0562 ]
[ 0.0562 ] Signing RCM messages
[ 0.0586 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0595 ] Assuming zero filled SBK key
[ 0.0637 ]
[ 0.0638 ] Copying signature to RCM mesages
[ 0.0668 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0700 ]
[ 0.0701 ] Parsing partition layout
[ 0.0728 ] tegraparser --pt flash.xml.tmp
[ 0.1552 ]
[ 0.1554 ] Using default ramcode: 0
[ 0.1554 ] Disable BPMP dtb trim, using default dtb
[ 0.1555 ]
[ 0.1555 ] Creating list of images to be signed
[ 0.1584 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
[ 0.1758 ]
[ 0.1759 ] Generating signatures
[ 0.1786 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
[ 0.1795 ] Assuming zero filled SBK key
[ 0.4534 ]
[ 0.4535 ] Generating br-bct
[ 0.4657 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.cfg --chip 0x21 0
[ 0.4770 ]
[ 0.4771 ] Updating boot device parameters
[ 0.4786 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
[ 0.4795 ] Warning: No sdram params
[ 0.4800 ]
[ 0.4801 ] Updating bl info
[ 0.4810 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 0.4848 ]
[ 0.4849 ] Updating secondary storage information into bct
[ 0.4873 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_lpddr4_204Mhz_P987.bct
[ 0.4891 ]
[ 0.4892 ] Updating Odmdata
[ 0.4903 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0xa4000
[ 0.4919 ] Warning: No sdram params
[ 0.4920 ]
[ 0.4920 ] Get Signed section of bct
[ 0.4942 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
[ 0.4950 ]
[ 0.4951 ] Signing BCT
[ 0.4968 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
[ 0.4977 ] Assuming zero filled SBK key
[ 0.4981 ]
[ 0.4981 ] Updating BCT with signature
[ 0.4991 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
[ 0.5005 ]
[ 0.5006 ] Copying signatures
[ 0.5015 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[ 0.5142 ]
[ 0.5143 ] Updating BFS information on BCT
[ 0.5173 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin
[ 0.5190 ] BFS:
[ 0.5215 ] 0: [PT ] crc-flash.xml.bin (size=131072/131072)
[ 0.5224 ] 1: [TBC] nvtboot_cpu.bin.encrypt (size=65760/196608)
[ 0.5236 ] 2: [RP1] kernel_tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt (size=238224/1048576)
[ 0.5252 ] 3: [EBT] cboot.bin.encrypt (size=484464/655360)
[ 0.5258 ] 4: [WB0] warmboot.bin.encrypt (size=3952/131072)
[ 0.5270 ] 5: [BPF] sc7entry-firmware.bin.encrypt (size=3376/262144)
[ 0.5283 ] BFS0: 131072 @ 2560 SUM ae8979b1 over 2883584 bytes
[ 0.5289 ] BFS:
[ 0.5293 ] 0: [PT-1] crc-flash.xml.bin (size=131072/131072)
[ 0.5301 ] 1: [TBC-1] nvtboot_cpu.bin.encrypt (size=65760/196608)
[ 0.5310 ] 2: [RP1-1] kernel_tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt (size=238224/1048576)
[ 0.5328 ] 3: [EBT-1] cboot.bin.encrypt (size=484464/655360)
[ 0.5337 ] 4: [WB0-1] warmboot.bin.encrypt (size=3952/131072)
[ 0.5350 ] 5: [BPF-1] sc7entry-firmware.bin.encrypt (size=3376/262144)
[ 0.5366 ] 8: [VER_b] emmc_bootblob_ver.txt (size=102/32768)
[ 0.5381 ] 9: [VER] emmc_bootblob_ver.txt (size=102/32768)
[ 0.5396 ] BFS1: 131072 @ 8704 SUM ae8979b1 over 2981888 bytes
[ 0.5410 ] KFS:
[ 0.5754 ] 0: [DTB] kernel_tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt (size=238224/1048576)
[ 0.5762 ] 1: [TOS] tos-mon-only.img.encrypt (size=54208/6291456)
[ 0.5768 ] 2: [EKS] eks.img (size=1028/81920)
[ 0.5772 ] 3: [LNX] boot.img.encrypt (size=667648/67092480)
[ 0.5784 ] KFS0: 1048576 @ 29376546 SUM 681877c2 over 8089600 bytes
[ 0.5826 ] KFS:
[ 0.6684 ] 0: [DTB-1] kernel_tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt (size=238224/1048576)
[ 0.6695 ] 1: [TOS-1] tos-mon-only.img.encrypt (size=54208/6291456)
[ 0.6702 ] 2: [EKS-1] eks.img (size=1028/81920)
[ 0.6709 ] 3: [LNX-1] boot.img.encrypt (size=667648/67092480)
[ 0.6720 ] KFS1: 1048576 @ 29522082 SUM 681877c2 over 8089600 bytes
[ 0.6763 ]
[ 0.6763 ] Boot Rom communication
[ 0.6776 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml
[ 0.6787 ] BootRom is not running
[ 0.6940 ]
[ 0.6941 ] Sending BCTs
[ 0.6953 ] tegrarcm --download bct P3448_A00_lpddr4_204Mhz_P987.bct
[ 0.6964 ] Applet is not running on device. Continue with Bootloader
[ 0.6996 ]
[ 0.7011 ] tegrahost --chip 0x21 --align cboot.bin
[ 0.7023 ]
[ 0.7041 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
[ 0.7080 ]
[ 0.7112 ] tegrasign --key None --list cboot.bin_list.xml
[ 0.7122 ] Assuming zero filled SBK key
[ 0.7231 ]
[ 0.7261 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk
[ 0.7282 ]
[ 0.7328 ] tegrahost --chip 0x21 --align tegra210-p3448-0002-p3449-0000-b00.dtb
[ 0.7349 ]
[ 0.7383 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0002-p3449-0000-b00.dtb tegra210-p3448-0002-p3449-0000-b00.dtb_blheader
[ 0.7412 ]
[ 0.7442 ] tegrasign --key None --list tegra210-p3448-0002-p3449-0000-b00.dtb_list.xml
[ 0.7453 ] Assuming zero filled SBK key
[ 0.7507 ]
[ 0.7541 ] tegrahost --updatesigheader tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.hash zerosbk
[ 0.7558 ]
[ 0.7562 ] Sending bootloader and pre-requisite binaries
[ 0.7590 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt 0
[ 0.7601 ] Applet is not running on device. Continue with Bootloader
[ 0.7690 ]
[ 0.7721 ] tegrarcm --boot recovery
[ 0.7731 ] Applet is not running on device. Continue with Bootloader
[ 0.7764 ]
[ 0.7766 ] Retrieving storage infomation
[ 0.7791 ] tegrarcm --oem platformdetails storage storage_info.bin
[ 0.7799 ] Applet is not running on device. Continue with Bootloader
[ 0.7832 ]
[ 0.7877 ] tegradevflash --oem platformdetails storage storage_info.bin
[ 0.7886 ] Cboot is not running on device.
[ 0.8015 ]
Error: Return value 4
Command tegradevflash --oem platformdetails storage storage_info.bin
Failed flashing t210ref.