It seems I have bricked Jetson Nano by writing to the I2C EEPROM

Hi!
I have a severe problem: I cannot neither boot or reflash my JNano A02. I tried to access an IMU sensor connected via I2C on GPIO (I2C-2. But I was unaware, that accessing bus 2 I am writing the internal EEProm with the device type, serial no etc. I have overwritten both copies :/. Now I cannot boot or flash the Jetson. Is there any way to force the nvboot to ignore the EEprom ? Now I cannot even use u-boot to restore the correct CRC and EEProm contents - the UART spits out nothing by boot. Just when flashing it displays the CRC error message. There were some solutions presented already at the forum, eg flashing with the device data set from command line variables but none of them works. Plz, help!

FYI. This solution just helped another user last week. So should work. The most important point is: you need to provide that xml file.

I have followed the insctructions above, and the problem still persist:

 î‚° sudo ./flash.sh jetson-nano-devkit mmcblk0p1  
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 6.1
###############################################################################
# Target Board Information:
# Name: jetson-nano-devkit, Board Family: t210ref, SoC: Tegra 210, 
# OpMode: production, Boot Authentication: , 
# Disk encryption: disabled ,
###############################################################################
Board ID(“3448”) version(“200”) 
copying bctfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)... done.
copying bootloader(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying initrd(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
Existing sosfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)... done.
copying cpu_bootloader(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying bpffile(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)... done.
copying wb0boot(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)... done.
Existing tosfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-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-0000-p3449-0000-b00.dtb to rootfs... done.
Making system.img... 
	populating rootfs from /home/pholonow/Documents/jnano/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/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying tbcdtbfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)... done.
copying cfgfile(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/cfg/flash_l4t_t210_max-spi_sd_p3448.xml) to flash.xml... done.
copying flasher(/home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
Existing flashapp(/home/pholonow/Documents/jnano/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-0000-p3449-0000-b00.dtb --applet nvtboot_recovery.bin  --cmd "flash; reboot"  --cfg flash.xml --chip 0x21   --skipuid --bins "EBT cboot.bin; DTB tegra210-p3448-0000-p3449-0000-b00.dtb" 
saving flash command in /home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/pholonow/Documents/jnano/Linux_for_Tegra/bootloader/flash_win.bat
assign_value: crc-flash.xml.bin 1 65520 1
printf '\x1' | dd of=crc-flash.xml.bin bs=1 seek=65520 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 4,995e-05 s, 20,0 kB/s
assign_value: crc-flash.xml.bin 0 65521 1
printf '\x0' | dd of=crc-flash.xml.bin bs=1 seek=65521 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 5,2186e-05 s, 19,2 kB/s
assign_string: crc-flash.xml.bin PTHD 65528 4
echo PTHD | dd of=crc-flash.xml.bin bs=1 seek=65528 count=4 conv=notrunc
4+0 records in
4+0 records out
4 bytes copied, 6,1918e-05 s, 64,6 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.0326 ] tegrasign --getmode mode.txt --key None
[   0.0334 ] Assuming zero filled SBK key
[   0.0336 ] 
[   0.0337 ] Generating RCM messages
[   0.0665 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
[   0.0673 ] RCM 0 is saved as rcm_0.rcm
[   0.0837 ] RCM 1 is saved as rcm_1.rcm
[   0.0837 ] List of rcm files are saved in rcm_list.xml
[   0.0837 ] 
[   0.0837 ] Signing RCM messages
[   0.0856 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0863 ] Assuming zero filled SBK key
[   0.0934 ] 
[   0.0934 ] Copying signature to RCM mesages
[   0.0953 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[   0.0970 ] 
[   0.0971 ] Parsing partition layout
[   0.0989 ] tegraparser --pt flash.xml.tmp
[   0.1000 ] 
[   0.1001 ] Using default ramcode: 0
[   0.1001 ] Disable BPMP dtb trim, using default dtb
[   0.1001 ] 
[   0.1001 ] Creating list of images to be signed
[   0.1020 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
[   2.7420 ] 
[   2.7421 ] Generating signatures
[   2.7442 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
[   2.7449 ] Assuming zero filled SBK key
[   2.8280 ] 
[   2.8281 ] Generating br-bct
[   2.8318 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.cfg --chip 0x21 0
[   2.8372 ] 
[   2.8372 ] Updating boot device parameters
[   2.8394 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
[   2.8403 ] Warning: No sdram params
[   2.8406 ] 
[   2.8407 ] Updating bl info
[   2.8426 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   2.8441 ] 
[   2.8441 ] Updating secondary storage information into bct
[   2.8461 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_lpddr4_204Mhz_P987.bct
[   2.8472 ] 
[   2.8472 ] Updating Odmdata
[   2.8492 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0xa4000
[   2.8507 ] Warning: No sdram params
[   2.8510 ] 
[   2.8511 ] Get Signed section of bct
[   2.8530 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
[   2.8539 ] 
[   2.8540 ] Signing BCT
[   2.8579 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
[   2.8588 ] Assuming zero filled SBK key
[   2.8595 ] 
[   2.8595 ] Updating BCT with signature
[   2.8616 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
[   2.8627 ] 
[   2.8628 ] Copying signatures
[   2.8648 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   2.8755 ] 
[   2.8755 ] Updating BFS information on BCT
[   2.8777 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin
[   2.8789 ] 
[   2.8789 ] Boot Rom communication
[   2.8809 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[   2.8817 ] RCM version 0X210001
[   2.9316 ] Boot Rom communication completed
[   3.9403 ] 
[   3.9403 ] Sending BCTs
[   3.9424 ] tegrarcm --download bct P3448_A00_lpddr4_204Mhz_P987.bct
[   3.9431 ] Applet version 00.01.0000
[   3.9476 ] Sending bct
[   3.9478 ] [................................................] 100%
[   4.0346 ] 
[   4.0369 ] tegrahost --chip 0x21 --align cboot.bin
[   4.0377 ] 
[   4.0396 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
[   4.0429 ] 
[   4.0453 ] tegrasign --key None --list cboot.bin_list.xml
[   4.0481 ] Assuming zero filled SBK key
[   4.0734 ] 
[   4.0757 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk
[   4.0783 ] 
[   4.0823 ] tegrahost --chip 0x21 --align tegra210-p3448-0000-p3449-0000-b00.dtb
[   4.0832 ] 
[   4.0851 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0000-p3449-0000-b00.dtb tegra210-p3448-0000-p3449-0000-b00.dtb_blheader
[   4.0874 ] 
[   4.0925 ] tegrasign --key None --list tegra210-p3448-0000-p3449-0000-b00.dtb_list.xml
[   4.0932 ] Assuming zero filled SBK key
[   4.1016 ] 
[   4.1059 ] tegrahost --updatesigheader tegra210-p3448-0000-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0000-p3449-0000-b00.dtb_blheader.hash zerosbk
[   4.1077 ] 
[   4.1082 ] Sending bootloader and pre-requisite binaries
[   4.1125 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0000-p3449-0000-b00.dtb.encrypt 0
[   4.1132 ] Applet version 00.01.0000
[   4.1176 ] Sending ebt
[   4.1865 ] 
Error: Return value 1
Command tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0000-p3449-0000-b00.dtb.encrypt 0
Failed flashing t210ref.

flash.sh (105.5 KB)
p3448-0000.conf.common (6.2 KB)
p3449-0000+p3448-0000-qspi-sd.conf (1.8 KB)
board_config_p3448.xml (263 Bytes)

Is there anything else I can do?

Hmm, I was able to perform a successful flash by hardcoding the path to the BCFFILE to the flash.sh. It seems it is not passed correctly from the P3448-0000.conf.common file. I think we can close the topic, although it costed me two wasted days, so I am pretty unhappy :(.

1 Like