Flashing Jetson TX2 via USB

@telphan I was just checking out the commit for the Nano you made in the “fix” branch yesterday. Thanks for those very fast first results!
Using the newest Jetson release from Balena Cloud, the flash starts but got stuck at the line “[ 1.3239 ] Saved platform info in storage_info.bin”. This is the full output:

Checking resin cache
Cache image check done
Extracting partition LNX from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition DTB from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-boot from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-rootA from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-rootB from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-state from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-data from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Successfully generated hash
###############################################################################

L4T BSP Information:

R32 , REVISION: 2.0

###############################################################################

Target Board Information:

Name: jetson-nano-emmc, Board Family: t210ref, SoC: Tegra 210,

OpMode: production, Boot Authentication: ,

###############################################################################
./tegraflash.py --chip 0x21 --applet “/tmp/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.0013 ] Generating RCM messages
[ 0.0022 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /tmp/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0
[ 0.0030 ] RCM 0 is saved as rcm_0.rcm
[ 0.0036 ] RCM 1 is saved as rcm_1.rcm
[ 0.0036 ] List of rcm files are saved in rcm_list.xml
[ 0.0036 ]
[ 0.0036 ] Signing RCM messages
[ 0.0045 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0053 ] Assuming zero filled SBK key
[ 0.0105 ]
[ 0.0105 ] Copying signature to RCM mesages
[ 0.0114 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0126 ]
[ 0.0127 ] Boot Rom communication
[ 0.0135 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[ 0.0143 ] RCM version 0X210001
[ 0.0561 ] Boot Rom communication completed
[ 1.0636 ]
[ 1.0639 ] dump EEPROM info
[ 1.0678 ] tegrarcm --oem platformdetails eeprom /tmp/Linux_for_Tegra/bootloader/cvm.bin
[ 1.0707 ] Applet version 00.01.0000
[ 1.0728 ] Saved platform info in /tmp/Linux_for_Tegra/bootloader/cvm.bin
[ 1.1511 ]
Board ID(3448) version(400)
copying bctfile(/tmp/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg)… done.
copying bootloader(/tmp/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying initrd(/tmp/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating /tmp/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb to rootfs… done.
Making Boot image… done.
Existing sosfile(/tmp/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/tmp/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)… done.
copying cpu_bootloader(/tmp/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying bpffile(/tmp/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)… done.
Existing badpagefile(/tmp/Linux_for_Tegra/bootloader/badpage.bin) reused.
copying wb0boot(/tmp/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)… done.
Existing tosfile(/tmp/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/tmp/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/tmp/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)… done.
Copying nv_boot_control.conf to rootfs
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
Making system.img…
populating rootfs from /tmp/Linux_for_Tegra/rootfs … done.
Sync’ing system.img … done.
Converting RAW image to Sparse image…

---- Raw to Sparse Image Converter v1.0 ----------------------------
0: RAW: 5242880( 5 blks) ==> 28:5242892
1: SKP: 32505856( 31 blks) ==> 5242920:12
2: RAW: 1048576( 1 blks) ==> 5242932:1048588
3: SKP: 95420416( 91 blks) ==> 6291520:12
4: RAW: 1048576( 1 blks) ==> 6291532:1048588
5: SKP: 3145728( 3 blks) ==> 7340120:12
6: RAW: 1048576( 1 blks) ==> 7340132:1048588
7: SKP: 3145728( 3 blks) ==> 8388720:12
8: RAW: 23068672( 22 blks) ==> 8388732:23068684
9: SKP: 1048576( 1 blks) ==> 31457416:12
10: RAW: 9437184( 9 blks) ==> 31457428:9437196
11: SKP: 226492416( 216 blks) ==> 40894624:12
12: RAW: 1048576( 1 blks) ==> 40894636:1048588
13: SKP: 267386880( 255 blks) ==> 41943224:12
14: RAW: 1048576( 1 blks) ==> 41943236:1048588
15: SKP: 267386880( 255 blks) ==> 42991824:12
16: RAW: 1048576( 1 blks) ==> 42991836:1048588
17: SKP: 267386880( 255 blks) ==> 44040424:12
18: RAW: 1048576( 1 blks) ==> 44040436:1048588
19: SKP: 938475520( 895 blks) ==> 45089024:12
20: RAW: 1048576( 1 blks) ==> 45089036:1048588
21: SKP: 32505856( 31 blks) ==> 46137624:12
22: RAW: 1048576( 1 blks) ==> 46137636:1048588
23: SKP: 99614720( 95 blks) ==> 47186224:12
24: RAW: 6291456( 6 blks) ==> 47186236:6291468
25: SKP: 1067450368( 1018 blks) ==> 53477704:12
26: RAW: 1048576( 1 blks) ==> 53477716:1048588
27: SKP: 267386880( 255 blks) ==> 54526304:12
28: RAW: 1048576( 1 blks) ==> 54526316:1048588
29: SKP: 670040064( 639 blks) ==> 55574904:12
30: RAW: 1048576( 1 blks) ==> 55574916:1048588
31: SKP: 2146435072( 2047 blks) ==> 56623504:12
32: RAW: 1048576( 1 blks) ==> 56623516:1048588
33: SKP: 133169152( 127 blks) ==> 57672104:12
34: RAW: 1048576( 1 blks) ==> 57672116:1048588
35: SKP: 3145728( 3 blks) ==> 58720704:12
36: RAW: 1048576( 1 blks) ==> 58720716:1048588
37: SKP: 2008023040( 1915 blks) ==> 59769304:12
38: RAW: 1048576( 1 blks) ==> 59769316:1048588
39: SKP: 2146435072( 2047 blks) ==> 60817904:12
40: RAW: 1048576( 1 blks) ==> 60817916:1048588
41: SKP: 133169152( 127 blks) ==> 61866504:12
42: RAW: 1048576( 1 blks) ==> 61866516:1048588
43: SKP: 2012217344( 1919 blks) ==> 62915104:12
44: RAW: 1048576( 1 blks) ==> 62915116:1048588
45: SKP: 2146435072( 2047 blks) ==> 63963704:12
– Total: ---------------------------------------------------
46 CHUNK 15032385536( 14336 blks) ==> 63963716(61 blks)

done.
system.img built successfully.
Existing tbcfile(/tmp/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying tbcdtbfile(/tmp/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)… done.
copying cfgfile(/home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/flash.xml) to flash.xml… done.
copying flasher(/tmp/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
Existing flashapp(/tmp/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl cboot.bin --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg --odmdata 0x94000 --bldtb 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 /tmp/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /tmp/Linux_for_Tegra/bootloader/flash_win.bat
*** 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.0010 ] tegrasign --key None --getmode mode.txt
[ 0.0017 ] Assuming zero filled SBK key
[ 0.0019 ]
[ 0.0019 ] Generating RCM messages
[ 0.0028 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
[ 0.0035 ] RCM 0 is saved as rcm_0.rcm
[ 0.0039 ] RCM 1 is saved as rcm_1.rcm
[ 0.0039 ] List of rcm files are saved in rcm_list.xml
[ 0.0039 ]
[ 0.0039 ] Signing RCM messages
[ 0.0046 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0052 ] Assuming zero filled SBK key
[ 0.0097 ]
[ 0.0097 ] Copying signature to RCM mesages
[ 0.0104 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0115 ]
[ 0.0116 ] Parsing partition layout
[ 0.0126 ] tegraparser --pt flash.xml.tmp
[ 0.0138 ]
[ 0.0138 ] Creating list of images to be signed
[ 0.0148 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
[ 0.0241 ]
[ 0.0242 ] Generating signatures
[ 0.0264 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
[ 0.0285 ] Assuming zero filled SBK key
[ 0.0967 ]
[ 0.0968 ] Generating br-bct
[ 0.0979 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg --chip 0x21 0
[ 0.0986 ] Copying Sdram info from 0 to 1 set
[ 0.0997 ] Copying Sdram info from 1 to 2 set
[ 0.0997 ] Copying Sdram info from 2 to 3 set
[ 0.0997 ]
[ 0.0998 ] Updating boot device parameters
[ 0.1004 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
[ 0.1010 ] Warning: No sdram params
[ 0.1011 ]
[ 0.1011 ] Updating bl info
[ 0.1018 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 0.1027 ]
[ 0.1027 ] Updating secondary storage information into bct
[ 0.1033 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
[ 0.1040 ]
[ 0.1040 ] Updating Odmdata
[ 0.1046 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0x94000
[ 0.1052 ] Warning: No sdram params
[ 0.1053 ]
[ 0.1053 ] Get Signed section of bct
[ 0.1059 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
[ 0.1065 ]
[ 0.1066 ] Signing BCT
[ 0.1078 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
[ 0.1084 ] Assuming zero filled SBK key
[ 0.1087 ]
[ 0.1088 ] Updating BCT with signature
[ 0.1094 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
[ 0.1101 ]
[ 0.1101 ] Copying signatures
[ 0.1108 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[ 0.1141 ]
[ 0.1142 ] Updating BFS information on BCT
[ 0.1151 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin
[ 0.1157 ] BFS:
[ 0.1170 ] 0: [PT ] flash.xml.bin (size=2763/65536)
[ 0.1173 ] 2: [VER] emmc_bootblob_ver.txt (size=57/65536)
[ 0.1176 ] BFS0: 65536 @ 224 SUM 5e11e594 over 3735552 bytes
[ 0.1176 ]
[ 0.1177 ] Boot Rom communication
[ 0.1184 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml
[ 0.1190 ] BootRom is not running
[ 0.1632 ]
[ 0.1633 ] Sending BCTs
[ 0.1648 ] tegrarcm --download bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
[ 0.1661 ] Applet version 00.01.0000
[ 0.1680 ] Sending bct
[ 0.1682 ] […] 100%
[ 0.3422 ]
[ 0.3455 ] tegrahost --chip 0x21 --align cboot.bin
[ 0.3490 ]
[ 0.3522 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
[ 0.3587 ]
[ 0.3600 ] tegrasign --key None --list cboot.bin_list.xml
[ 0.3610 ] Assuming zero filled SBK key
[ 0.3830 ]
[ 0.3851 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk
[ 0.3878 ]
[ 0.3903 ] tegrahost --chip 0x21 --align tegra210-p3448-0002-p3449-0000-b00.dtb
[ 0.3917 ]
[ 0.3931 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0002-p3449-0000-b00.dtb tegra210-p3448-0002-p3449-0000-b00.dtb_blheader
[ 0.3954 ]
[ 0.3971 ] tegrasign --key None --list tegra210-p3448-0002-p3449-0000-b00.dtb_list.xml
[ 0.3983 ] Assuming zero filled SBK key
[ 0.4085 ]
[ 0.4105 ] tegrahost --updatesigheader tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.hash zerosbk
[ 0.4124 ]
[ 0.4131 ] Sending bootloader and pre-requisite binaries
[ 0.4146 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt 0
[ 0.4159 ] Applet version 00.01.0000
[ 0.4180 ] Sending ebt
[ 0.4183 ] […] 100%
[ 0.5282 ] Sending rp1
[ 0.5325 ] […] 100%
[ 0.5838 ]
[ 0.5869 ] tegrarcm --boot recovery
[ 0.5905 ] Applet version 00.01.0000
[ 0.5941 ]
[ 0.5942 ] Retrieving storage infomation
[ 0.5980 ] tegrarcm --oem platformdetails storage storage_info.bin
[ 0.6014 ] Applet is not running on device. Continue with Bootloader
[ 1.3069 ]
[ 1.3182 ] tegradevflash --oem platformdetails storage storage_info.bin
[ 1.3211 ] Cboot version 00.01.0000
[ 1.3239 ] Saved platform info in storage_info.bin

Do you have an idea what could be the reason, or is the development not yet finished and this was only an intermediate commit?

The code is done, but I am not able to test it as I do not yet have the hw. I would suggest maybe a retry, just to make sure it is not a transient error.

@telphan Thanks for the info. I have tried it 10 times, and each time it got stuck at that point. Running the flash over the sdkmanager works perfectly:

  • 17:06:12 INFO : Flash Jetson Nano : ./tegraflash.py --bl cboot.bin --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg --odmdata 0x94000 --bldtb 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”
  • 17:06:12 INFO : Flash Jetson Nano : saving flash command in /home/max/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3448-0020/Linux_for_Tegra/bootloader/flashcmd.txt
  • 17:06:12 INFO : Flash Jetson Nano : saving Windows flash command to /home/max/nvidia/nvidia_sdk/JetPack_4.2.2_Linux_GA_P3448-0020/Linux_for_Tegra/bootloader/flash_win.bat
  • 17:06:12 INFO : Flash Jetson Nano : *** Flashing target device started. ***
  • 17:06:12 INFO : Flash Jetson Nano : Welcome to Tegra Flash
  • 17:06:12 INFO : Flash Jetson Nano : version 1.0.0
  • 17:06:12 INFO : Flash Jetson Nano : Type ? or help for help and q or quit to exit
  • 17:06:12 INFO : Flash Jetson Nano : Use ! to execute system commands
  • 17:06:12 INFO : Flash Jetson Nano :
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0012 ] tegrasign --key None --getmode mode.txt
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0020 ] Assuming zero filled SBK key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0026 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0026 ] Generating RCM messages
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0038 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0046 ] RCM 0 is saved as rcm_0.rcm
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0059 ] RCM 1 is saved as rcm_1.rcm
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0059 ] List of rcm files are saved in rcm_list.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0059 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0059 ] Signing RCM messages
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0067 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0074 ] Assuming zero filled SBK key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0131 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0131 ] Copying signature to RCM mesages
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0142 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0157 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0157 ] Parsing partition layout
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0170 ] tegraparser --pt flash.xml.tmp
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0182 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0182 ] Creating list of images to be signed
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0194 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0255 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0256 ] Generating signatures
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0264 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0273 ] Assuming zero filled SBK key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0719 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0719 ] Generating br-bct
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0731 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg --chip 0x21 0
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0739 ] Copying Sdram info from 0 to 1 set
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0750 ] Copying Sdram info from 1 to 2 set
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0750 ] Copying Sdram info from 2 to 3 set
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0750 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0750 ] Updating boot device parameters
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0758 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0766 ] Warning: No sdram params
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0767 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0767 ] Updating bl info
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0776 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0790 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0790 ] Updating secondary storage information into bct
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0800 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0810 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0810 ] Updating Odmdata
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0818 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0x94000
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0825 ] Warning: No sdram params
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0825 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0826 ] Get Signed section of bct
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0833 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0841 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0841 ] Signing BCT
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0856 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0864 ] Assuming zero filled SBK key
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0868 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0868 ] Updating BCT with signature
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0876 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0884 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0885 ] Copying signatures
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0892 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0923 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0923 ] Updating BFS information on BCT
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0933 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0941 ] BFS:
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0976 ] 0: [PT ] flash.xml.bin (size=2306/65536)
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0980 ] 2: [VER] emmc_bootblob_ver.txt (size=57/65536)
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0983 ] BFS0: 65536 @ 896 SUM 56055ea0 over 7929856 bytes
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0994 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.0994 ] Boot Rom communication
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1003 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1011 ] BootRom is not running
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1433 ]
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1433 ] Sending BCTs
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1442 ] tegrarcm --download bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1452 ] Applet version 00.01.0000
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1471 ] Sending bct
  • 17:06:12 INFO : Flash Jetson Nano : [ 0.1472 ] […] 100%
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3209 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3219 ] tegrahost --chip 0x21 --align cboot.bin
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3227 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3236 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3255 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3267 ] tegrasign --key None --list cboot.bin_list.xml
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3276 ] Assuming zero filled SBK key
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3409 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3423 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3438 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3452 ] tegrahost --chip 0x21 --align tegra210-p3448-0002-p3449-0000-b00.dtb
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3460 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3468 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0002-p3449-0000-b00.dtb tegra210-p3448-0002-p3449-0000-b00.dtb_blheader
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3481 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3491 ] tegrasign --key None --list tegra210-p3448-0002-p3449-0000-b00.dtb_list.xml
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3498 ] Assuming zero filled SBK key
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3555 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3565 ] tegrahost --updatesigheader tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.hash zerosbk
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3576 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3579 ] Sending bootloader and pre-requisite binaries
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3587 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt 0
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3594 ] Applet version 00.01.0000
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3615 ] Sending ebt
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.3617 ] […] 100%
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.4664 ] Sending rp1
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.4711 ] […] 100%
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5209 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5218 ] tegrarcm --boot recovery
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5227 ] Applet version 00.01.0000
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5257 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5257 ] Retrieving storage infomation
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5267 ] tegrarcm --oem platformdetails storage storage_info.bin
  • 17:06:13 INFO : Flash Jetson Nano : [ 0.5276 ] Applet is not running on device. Continue with Bootloader
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1106 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1218 ] tegradevflash --oem platformdetails storage storage_info.bin
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1251 ] Cboot version 00.01.0000
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1276 ] Saved platform info in storage_info.bin
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1288 ]
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1290 ] Flashing the device
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1328 ] tegradevflash --pt flash.xml.bin --storageinfo storage_info.bin --create
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1364 ] Cboot version 00.01.0000
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1387 ] Writing partition GPT with gpt.bin
  • 17:06:13 INFO : Flash Jetson Nano : [ 1.1397 ] […] 100%
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.1429 ] Writing partition NVC with nvtboot.bin.encrypt
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.8988 ] […] 100%
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.9088 ] Writing partition PT with flash.xml.bin
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.9324 ] […] 100%
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.9360 ] Writing partition VER with emmc_bootblob_ver.txt
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.9584 ] […] 100%
  • 17:06:14 INFO : Flash Jetson Nano : [ 1.9744 ] Writing partition APP with system.img
  • 17:08:58 INFO : Flash Jetson Nano : [ 164.7225 ] Writing partition TBC with nvtboot_cpu.bin.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.7399 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.7531 ] Writing partition RP1 with tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.7889 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.8050 ] Writing partition EBT with cboot.bin.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.8433 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.8679 ] Writing partition WB0 with warmboot.bin.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.9092 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.9192 ] Writing partition BPF with sc7entry-firmware.bin.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.9542 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.9642 ] Writing partition TOS with tos-mon-only.img.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 165.9992 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.0107 ] Writing partition DTB with tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.0469 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.0629 ] Writing partition LNX with boot.img.encrypt
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.1004 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.1247 ] Warning: EKS partition magic header mismatch!
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.1617 ] Writing partition EKS with eks.img
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.1620 ] […] 100%
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.1718 ] Writing partition BMP with bmp.blob
  • 17:08:58 INFO : Flash Jetson Nano : [ 166.2065 ] […] 100%
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.2191 ] Writing partition RP4 with rp4.blob
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.2548 ] […] 100%
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.3056 ]
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.3070 ] tegradevflash --write BCT P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.3083 ] Cboot version 00.01.0000
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.3098 ] Writing partition BCT with P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.3105 ] […] 100%
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.4153 ]
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.4153 ] Flashing completed
  • 17:08:59 INFO : Flash Jetson Nano :
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.4154 ] Coldbooting the device
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.4164 ] tegradevflash --reboot coldboot
  • 17:08:59 INFO : Flash Jetson Nano : [ 166.4173 ] Cboot version 00.01.0000
  • 17:09:01 INFO : Flash Jetson Nano : [ 166.4192 ]
  • 17:09:01 INFO : Flash Jetson Nano : *** The target t210ref has been flashed successfully. ***
  • 17:09:01 INFO : Flash Jetson Nano : Reset the board to boot from internal eMMC.
  • 17:09:01 INFO : Flash Jetson Nano :
  • 17:09:01 INFO : Flash Jetson Nano : exec_command: sleep 20
  • 17:09:21 INFO : Flash Jetson Nano : [ Component Install Finished Successfully ]
  • 17:09:21 INFO : Flash Jetson Nano : [ 8.21 GB used. Disk Avail: 4.21 GB ]
  • 17:09:21 INFO : Flash Jetson Nano : [ NV_L4T_FLASH_NANO_WITH_OS_IMAGE_COMP Install took 3m38s ]
  • 17:09:21 INFO : Flash Jetson Nano : command finished successfully
  • 17:09:21 INFO : install ‘Flash Jetson Nano’ success
  • 17:09:22 INFO : All done!

Any ideas?

When I interrupt the flasher, it got stuck here: File “./tegraflash.py”, line 1280, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1149, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python2.7/cmd.py”, line 221, in onecmd
return func(arg)
File “./tegraflash.py”, line 209, in do_flash
tegraflash_flash(exports)
File “/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 266, in tegraflash_flash
tegraflash_get_storage_info()
File “/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 2156, in tegraflash_get_storage_info
run_command(command)
File “/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 195, in run_command
log = print_process(process, enable_print)
File “/tmp/Linux_for_Tegra/bootloader/tegraflash_internal.py”, line 155, in print_process
output = process.stdout.read(1)

It is very hard for me to say, as there isn’t much to go on. I would need to get the hw and play around with it. Will have a think around it, maybe I can figure it out before that.

@telphan I found the issue. The partitioning template in ./assets/jetson-nano-emmc-assets/resinOS-flash.xml does not match the one of the 0020 production version, it is still from the 0000 development version. So I used the file “flash_l4t_t210_emmc_p3448.xml” inside the bootloader folder of the Nvidia Tegra package as reference and adjusted it. I uploaded my version here: https://drive.google.com/file/d/1BMx8Sm2tnKyxl765dqWLujQ7JbqK4Lym/view?usp=sharing

Still I get stuck at:
[ 1.6951 ] Writing partition GP1 with gpt_resin_primary.bin
[ 1.7450 ] 00000004: Partition not found

When I remove the filename attribute from the GP1 partition that refers to the gpt_resin_primary.bin file in the provided assets folder and change the type to GP1 the flashing procedure went through (already did that modification in the linked xml above). Same applies to the GPT partition that refers to the file gpt_resin_secondary.bin. I assume they are also for the SD card version or need some other adjustment, but I am stuck at this point.

Would be glad if you can give me some last help here, I think we are close to winning this game :slight_smile:

@maxritter right, could you try commenting out line 66-71 from here: https://github.com/balena-os/jetson-flash/blob/fix/lib/resin-jetson-flash.js#L66. And try again using the flash.sml you shared?
I wonder if maybe the tool is smart enough these days to properly create the gpt table.

@telphan The flash went through, but the device is not booting properly afterwards. How were the current bin files generated? Do you have an idea what modifications are necessary for them?

Do you have any serial output for me? I simply took the gpt table from one of our images. I am not sure the bins themselves are the problem, I think the problem is that for some reason Nvidia wants to generate the gpt bins itself.

@telphan Yeah probably. Sure, the output is:

sudo ./bin/cmd.js -p -o ./workdir/ -m jetson-nano-emmc -f balena_dev.img
Consistency check done for /home/max/jetson-flash/workdir/jetson-flash-artifacts/Linux_for_Tegra
Using cached Linux_for_Tegra
Checking resin cache
Cache image check done
Extracting partition LNX from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition DTB from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-boot from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-rootA from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-rootB from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-state from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Extracting partition resin-data from /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/img to /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Successfully generated hash
###############################################################################

L4T BSP Information:

R32 , REVISION: 2.0

###############################################################################
Error: probing the target board failed.
Make sure the target board is connected through
USB port and is in recovery mode.
max@Ritter:~/jetson-flash$ cd workdir/
max@Ritter:~/jetson-flash/workdir$ ls
jetson-flash-artifacts
max@Ritter:~/jetson-flash/workdir$ cd jetson-flash-artifacts/
max@Ritter:~/jetson-flash/workdir/jetson-flash-artifacts$ sudo nano flas^C
max@Ritter:~/jetson-flash/workdir/jetson-flash-artifacts$ cd resin/
max@Ritter:~/jetson-flash/workdir/jetson-flash-artifacts/resin$ sudo nano flash.xml
max@Ritter:~/jetson-flash/workdir/jetson-flash-artifacts/resin$ cd …
max@Ritter:~/jetson-flash/workdir/jetson-flash-artifacts$ cd …
max@Ritter:~/jetson-flash/workdir$ cd …
max@Ritter:~/jetson-flash$ sudo ./bin/cmd.js -p -o ./workdir/ -m jetson-nano-emmc -f balena_dev.img
Consistency check done for /home/max/jetson-flash/workdir/jetson-flash-artifacts/Linux_for_Tegra
Using cached Linux_for_Tegra
Checking resin cache
Cache image check done
Consistency check done for /home/max/jetson-flash/workdir/jetson-flash-artifacts/resin
Using cached resin image
###############################################################################

L4T BSP Information:

R32 , REVISION: 2.0

###############################################################################

Target Board Information:

Name: jetson-nano-emmc, Board Family: t210ref, SoC: Tegra 210,

OpMode: production, Boot Authentication: ,

###############################################################################
./tegraflash.py --chip 0x21 --applet “/tmp/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.0011 ] Generating RCM messages
[ 0.0020 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /tmp/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0
[ 0.0030 ] RCM 0 is saved as rcm_0.rcm
[ 0.0035 ] RCM 1 is saved as rcm_1.rcm
[ 0.0035 ] List of rcm files are saved in rcm_list.xml
[ 0.0035 ]
[ 0.0035 ] Signing RCM messages
[ 0.0044 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0052 ] Assuming zero filled SBK key
[ 0.0106 ]
[ 0.0106 ] Copying signature to RCM mesages
[ 0.0116 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0130 ]
[ 0.0131 ] Boot Rom communication
[ 0.0142 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[ 0.0151 ] RCM version 0X210001
[ 0.0592 ] Boot Rom communication completed
[ 1.0672 ]
[ 1.0675 ] dump EEPROM info
[ 1.0709 ] tegrarcm --oem platformdetails eeprom /tmp/Linux_for_Tegra/bootloader/cvm.bin
[ 1.0733 ] Applet version 00.01.0000
[ 1.0753 ] Saved platform info in /tmp/Linux_for_Tegra/bootloader/cvm.bin
[ 1.1518 ]
Board ID(3448) version(400)
creating dummy /tmp/Linux_for_Tegra/bootloader/badpage.bin
1+0 records in
1+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000128726 s, 31,8 MB/s
copying bctfile(/tmp/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg)… done.
copying bootloader(/tmp/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying initrd(/tmp/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating /tmp/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb to rootfs… done.
Making Boot image… done.
Existing sosfile(/tmp/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/tmp/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)… done.
copying cpu_bootloader(/tmp/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
copying bpffile(/tmp/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)… done.
Existing badpagefile(/tmp/Linux_for_Tegra/bootloader/badpage.bin) reused.
copying wb0boot(/tmp/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)… done.
Existing tosfile(/tmp/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/tmp/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/tmp/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)… done.
Warning (reg_format): “reg” property in /i2c@7000c000/temp-sensor@4c has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /i2c@7000c000/temp-sensor@4c
Warning (avoid_default_addr_size): Relying on default #size-cells value for /i2c@7000c000/temp-sensor@4c
Warning (reg_format): “reg” property in /i2c@7000c000/temp-sensor@4c has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /i2c@7000c000/temp-sensor@4c
Warning (avoid_default_addr_size): Relying on default #size-cells value for /i2c@7000c000/temp-sensor@4c
Copying nv_boot_control.conf to rootfs
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can’t read /tmp/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
Making system.img…
populating rootfs from /tmp/Linux_for_Tegra/rootfs … done.
Sync’ing system.img … done.
Converting RAW image to Sparse image…

---- Raw to Sparse Image Converter v1.0 ----------------------------
0: RAW: 5242880( 5 blks) ==> 28:5242892
1: SKP: 32505856( 31 blks) ==> 5242920:12
2: RAW: 1048576( 1 blks) ==> 5242932:1048588
3: SKP: 95420416( 91 blks) ==> 6291520:12
4: RAW: 1048576( 1 blks) ==> 6291532:1048588
5: SKP: 3145728( 3 blks) ==> 7340120:12
6: RAW: 1048576( 1 blks) ==> 7340132:1048588
7: SKP: 3145728( 3 blks) ==> 8388720:12
8: RAW: 23068672( 22 blks) ==> 8388732:23068684
9: SKP: 1048576( 1 blks) ==> 31457416:12
10: RAW: 9437184( 9 blks) ==> 31457428:9437196
11: SKP: 226492416( 216 blks) ==> 40894624:12
12: RAW: 1048576( 1 blks) ==> 40894636:1048588
13: SKP: 267386880( 255 blks) ==> 41943224:12
14: RAW: 1048576( 1 blks) ==> 41943236:1048588
15: SKP: 267386880( 255 blks) ==> 42991824:12
16: RAW: 1048576( 1 blks) ==> 42991836:1048588
17: SKP: 267386880( 255 blks) ==> 44040424:12
18: RAW: 1048576( 1 blks) ==> 44040436:1048588
19: SKP: 938475520( 895 blks) ==> 45089024:12
20: RAW: 1048576( 1 blks) ==> 45089036:1048588
21: SKP: 1206910976( 1151 blks) ==> 46137624:12
22: RAW: 1048576( 1 blks) ==> 46137636:1048588
23: SKP: 267386880( 255 blks) ==> 47186224:12
24: RAW: 1048576( 1 blks) ==> 47186236:1048588
25: SKP: 670040064( 639 blks) ==> 48234824:12
26: RAW: 1048576( 1 blks) ==> 48234836:1048588
27: SKP: 32505856( 31 blks) ==> 49283424:12
28: RAW: 1048576( 1 blks) ==> 49283436:1048588
29: SKP: 99614720( 95 blks) ==> 50332024:12
30: RAW: 6291456( 6 blks) ==> 50332036:6291468
31: SKP: 2006974464( 1914 blks) ==> 56623504:12
32: RAW: 1048576( 1 blks) ==> 56623516:1048588
33: SKP: 133169152( 127 blks) ==> 57672104:12
34: RAW: 1048576( 1 blks) ==> 57672116:1048588
35: SKP: 3145728( 3 blks) ==> 58720704:12
36: RAW: 1048576( 1 blks) ==> 58720716:1048588
37: SKP: 2008023040( 1915 blks) ==> 59769304:12
38: RAW: 1048576( 1 blks) ==> 59769316:1048588
39: SKP: 2146435072( 2047 blks) ==> 60817904:12
40: RAW: 1048576( 1 blks) ==> 60817916:1048588
41: SKP: 133169152( 127 blks) ==> 61866504:12
42: RAW: 1048576( 1 blks) ==> 61866516:1048588
43: SKP: 2012217344( 1919 blks) ==> 62915104:12
44: RAW: 1048576( 1 blks) ==> 62915116:1048588
45: SKP: 2146435072( 2047 blks) ==> 63963704:12
– Total: ---------------------------------------------------
46 CHUNK 15032385536( 14336 blks) ==> 63963716(61 blks)

done.
system.img built successfully.
Existing tbcfile(/tmp/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying tbcdtbfile(/tmp/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)… done.
Warning (reg_format): “reg” property in /i2c@7000c000/temp-sensor@4c has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /i2c@7000c000/temp-sensor@4c
Warning (avoid_default_addr_size): Relying on default #size-cells value for /i2c@7000c000/temp-sensor@4c
Warning (reg_format): “reg” property in /i2c@7000c000/temp-sensor@4c has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /i2c@7000c000/temp-sensor@4c
Warning (avoid_default_addr_size): Relying on default #size-cells value for /i2c@7000c000/temp-sensor@4c
copying cfgfile(/home/max/jetson-flash/workdir/jetson-flash-artifacts/resin/flash.xml) to flash.xml… done.
copying flasher(/tmp/Linux_for_Tegra/bootloader/t210ref/cboot.bin)… done.
Existing flashapp(/tmp/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl cboot.bin --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg --odmdata 0x94000 --bldtb 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 /tmp/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /tmp/Linux_for_Tegra/bootloader/flash_win.bat
*** 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.0010 ] tegrasign --key None --getmode mode.txt
[ 0.0017 ] Assuming zero filled SBK key
[ 0.0019 ]
[ 0.0020 ] Generating RCM messages
[ 0.0029 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
[ 0.0036 ] RCM 0 is saved as rcm_0.rcm
[ 0.0040 ] RCM 1 is saved as rcm_1.rcm
[ 0.0040 ] List of rcm files are saved in rcm_list.xml
[ 0.0040 ]
[ 0.0040 ] Signing RCM messages
[ 0.0047 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0054 ] Assuming zero filled SBK key
[ 0.0107 ]
[ 0.0108 ] Copying signature to RCM mesages
[ 0.0118 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[ 0.0133 ]
[ 0.0134 ] Parsing partition layout
[ 0.0150 ] tegraparser --pt flash.xml.tmp
[ 0.0162 ]
[ 0.0162 ] Creating list of images to be signed
[ 0.0174 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
[ 0.0215 ]
[ 0.0215 ] Generating signatures
[ 0.0223 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
[ 0.0231 ] Assuming zero filled SBK key
[ 0.0739 ]
[ 0.0740 ] Generating br-bct
[ 0.0751 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg --chip 0x21 0
[ 0.0758 ] Copying Sdram info from 0 to 1 set
[ 0.0769 ] Copying Sdram info from 1 to 2 set
[ 0.0769 ] Copying Sdram info from 2 to 3 set
[ 0.0769 ]
[ 0.0769 ] Updating boot device parameters
[ 0.0776 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
[ 0.0782 ] Warning: No sdram params
[ 0.0783 ]
[ 0.0783 ] Updating bl info
[ 0.0790 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[ 0.0799 ]
[ 0.0800 ] Updating secondary storage information into bct
[ 0.0806 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
[ 0.0814 ]
[ 0.0814 ] Updating Odmdata
[ 0.0821 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0x94000
[ 0.0827 ] Warning: No sdram params
[ 0.0828 ]
[ 0.0828 ] Get Signed section of bct
[ 0.0835 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
[ 0.0841 ]
[ 0.0841 ] Signing BCT
[ 0.0854 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
[ 0.0861 ] Assuming zero filled SBK key
[ 0.0864 ]
[ 0.0865 ] Updating BCT with signature
[ 0.0872 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
[ 0.0881 ]
[ 0.0881 ] Copying signatures
[ 0.0889 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[ 0.0926 ]
[ 0.0926 ] Updating BFS information on BCT
[ 0.0935 ] tegrabct --bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin
[ 0.0942 ] BFS:
[ 0.0974 ] 0: [PT ] flash.xml.bin (size=2719/65536)
[ 0.0976 ] 2: [VER] emmc_bootblob_ver.txt (size=57/65536)
[ 0.0979 ] BFS0: 65536 @ 896 SUM 1ba8b97b over 7929856 bytes
[ 0.0989 ]
[ 0.0989 ] Boot Rom communication
[ 0.0997 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml
[ 0.1004 ] BootRom is not running
[ 0.1424 ]
[ 0.1425 ] Sending BCTs
[ 0.1439 ] tegrarcm --download bct P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
[ 0.1451 ] Applet version 00.01.0000
[ 0.1469 ] Sending bct
[ 0.1471 ] […] 100%
[ 0.3216 ]
[ 0.3248 ] tegrahost --chip 0x21 --align cboot.bin
[ 0.3279 ]
[ 0.3309 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
[ 0.3382 ]
[ 0.3422 ] tegrasign --key None --list cboot.bin_list.xml
[ 0.3452 ] Assuming zero filled SBK key
[ 0.3764 ]
[ 0.3779 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk
[ 0.3796 ]
[ 0.3814 ] tegrahost --chip 0x21 --align tegra210-p3448-0002-p3449-0000-b00.dtb
[ 0.3823 ]
[ 0.3832 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0002-p3449-0000-b00.dtb tegra210-p3448-0002-p3449-0000-b00.dtb_blheader
[ 0.3847 ]
[ 0.3860 ] tegrasign --key None --list tegra210-p3448-0002-p3449-0000-b00.dtb_list.xml
[ 0.3869 ] Assuming zero filled SBK key
[ 0.3929 ]
[ 0.3941 ] tegrahost --updatesigheader tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.hash zerosbk
[ 0.3954 ]
[ 0.3958 ] Sending bootloader and pre-requisite binaries
[ 0.3968 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt 0
[ 0.3976 ] Applet version 00.01.0000
[ 0.3994 ] Sending ebt
[ 0.3996 ] […] 100%
[ 0.5101 ] Sending rp1
[ 0.5137 ] […] 100%
[ 0.5639 ]
[ 0.5669 ] tegrarcm --boot recovery
[ 0.5699 ] Applet version 00.01.0000
[ 0.5731 ]
[ 0.5732 ] Retrieving storage infomation
[ 0.5766 ] tegrarcm --oem platformdetails storage storage_info.bin
[ 0.5797 ] Applet is not running on device. Continue with Bootloader
[ 1.1465 ]
[ 1.1558 ] tegradevflash --oem platformdetails storage storage_info.bin
[ 1.1570 ] Cboot version 00.01.0000
[ 1.1588 ] Saved platform info in storage_info.bin
[ 1.1599 ]
[ 1.1600 ] Flashing the device
[ 1.1615 ] tegradevflash --pt flash.xml.bin --storageinfo storage_info.bin --create
[ 1.1626 ] Cboot version 00.01.0000
[ 1.1642 ] Writing partition GPT with gpt.bin
[ 1.1646 ] […] 100%
[ 1.1688 ] Writing partition NVC with nvtboot.bin.encrypt
[ 1.5982 ] […] 100%
[ 1.6090 ] Writing partition PT with flash.xml.bin
[ 1.6332 ] […] 100%
[ 1.6371 ] Writing partition VER with emmc_bootblob_ver.txt
[ 1.6612 ] […] 100%
[ 1.6794 ] Writing partition TBC with nvtboot_cpu.bin.encrypt
[ 1.7294 ] […] 100%
[ 1.7417 ] Writing partition RP1 with tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt
[ 1.7784 ] […] 100%
[ 1.7958 ] Writing partition EBT with cboot.bin.encrypt
[ 1.8343 ] […] 100%
[ 1.8638 ] Writing partition WB0 with warmboot.bin.encrypt
[ 1.9048 ] […] 100%
[ 1.9152 ] Writing partition BPF with sc7entry-firmware.bin.encrypt
[ 1.9507 ] […] 100%
[ 1.9610 ] Writing partition TOS with tos-mon-only.img.encrypt
[ 1.9963 ] […] 100%
[ 2.0091 ] Writing partition DTB with DTB.encrypt
[ 2.0446 ] […] 100%
[ 2.0716 ] Writing partition LNX with LNX.encrypt
[ 2.0998 ] […] 100%
[ 2.1359 ] Warning: EKS partition magic header mismatch!
[ 2.1735 ] Writing partition EKS with eks.img
[ 2.1750 ] […] 100%
[ 2.1842 ] Writing partition BMP with bmp.blob
[ 2.2197 ] […] 100%
[ 2.2423 ] Writing partition RP4 with rp4.blob
[ 2.2815 ] […] 100%
[ 2.2971 ] Writing partition resin-boot with resin-boot
[ 2.3343 ] […] 100%
[ 5.5512 ] Writing partition resin-rootA with resin-rootA
[ 6.6349 ] […] 100%
[ 25.8077 ] Writing partition resin-rootB with resin-rootB
[ 26.6949 ] […] 100%
[ 45.8157 ] Writing partition resin-state with resin-state
[ 46.7156 ] […] 100%
[ 47.5107 ] Writing partition resin-data with resin-data
[ 47.9755 ] […] 100%
[ 57.3757 ]
[ 57.3788 ] tegradevflash --write BCT P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
[ 57.3810 ] Cboot version 00.01.0000
[ 57.3827 ] Writing partition BCT with P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.bct
[ 57.3837 ] […] 100%
[ 57.4897 ]
[ 57.4898 ] Flashing completed

[ 57.4901 ] Coldbooting the device
[ 57.4929 ] tegradevflash --reboot coldboot
[ 57.4959 ] Cboot version 00.01.0000
[ 57.4984 ]
*** The target t210ref has been flashed successfully. ***
Reset the board to boot from internal eMMC.

I flashed the v2.43.0+rev1 dev version from BalenaCloud. When the device is rebooted, the Nvidia logo shows up and that’s it. Any ideas?

Is it possible to connect a serial cable to the board to see what is the reason it is not booting anymore?

@telphan Unfortunately, I don’t have a suitable 6-pin JST PH cable and 3.3V USB TTL serial converter here at the moment… Will try to buy one tomorrow.

@imrehg Is it possible that the balena image itself is not adapted towards the production version of the nano and therefore will not execute? I found something that could be related here: https://github.com/balena-os/balena-jetson/pull/14

We are using the Auvidea carrier board, which has its firmware published here: https://www.auvidea.eu/download/firmware/JN30/B/JN30B-Rev4-v1.0.tar.bz2

Right, that could be a problem, but the device should still boot. We are still probably doing something wrong with the gpt table when flashing. I am probably going to get a nano soon, so I will be able to help a lot more then.

@telphan Yeah, probably… Just tried out your updated bin files from the repo, but it’s the same error
Writing partition GP1 with gpt_resin_primary.bin
[ 1.9262 ] 00000004: Partition not found

I found out that in the balena-jetson OS repo, there is a branch that tries to fix some stuff for R32.2, at least on the Xavier: https://github.com/balena-os/balena-jetson/tree/xavier_32_2_updates-build-42b796d3cbf6b42f692842be3bef050a8e5164c4

Also there is this flash script that does similar stuff for the Xavier: https://github.com/balena-os/balena-jetson/blob/42b796d3cbf6b42f692842be3bef050a8e5164c4/layers/meta-balena-jetson/recipes-scripts/flash_xavier.sh

But I don’t know where I should get the bootfiles.img from, it’s not there when I use a Nano image.

@telphan Trying out your newest commit from 41 minutes ago, I get the following error:
[ 0.0154 ] Invalid partition type protective_master_boot_record

Seems like the nano doesn’t have this partition type or it’s called differently than for the TX2 and Xavier.

When I remove the MBR partition, the output looks like this:

[ 1.1675 ] Flashing the device
[ 1.1702 ] tegradevflash --pt flash.xml.bin --storageinfo storage_info.bin --create
[ 1.1713 ] Cboot version 00.01.0000
[ 1.1728 ] Writing partition GPT with gpt.bin
[ 1.1730 ] […] 100%
[ 1.1772 ] Writing partition NVC with nvtboot.bin.encrypt
[ 1.5810 ] […] 100%
[ 1.5930 ] Writing partition PT with flash.xml.bin
[ 1.6163 ] […] 100%
[ 1.6211 ] Writing partition VER with emmc_bootblob_ver.txt
[ 1.6446 ] […] 100%
[ 1.6615 ] Writing partition primary_gpt with gpt_resin_primary.bin
[ 1.7040 ] […] 100%
[ 1.7250 ] Writing partition TBC with nvtboot_cpu.bin.encrypt
[ 1.7616 ] […] 100%
[ 1.7815 ] Writing partition RP1 with tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt
[ 1.8294 ] […] 100%
[ 1.8528 ] Writing partition EBT with cboot.bin.encrypt
[ 1.9027 ] […] 100%
[ 1.9393 ] Writing partition WB0 with warmboot.bin.encrypt
[ 1.9932 ] […] 100%
[ 2.0109 ] Writing partition BPF with sc7entry-firmware.bin.encrypt
[ 2.0599 ] […] 100%
[ 2.0774 ] Writing partition TOS with tos-mon-only.img.encrypt
[ 2.1262 ] […] 100%
[ 2.1458 ] Writing partition DTB with DTB.encrypt
[ 2.1943 ] […] 100%
[ 2.2293 ] Writing partition LNX with LNX.encrypt
[ 2.2741 ] […] 100%
[ 2.3189 ] Warning: EKS partition magic header mismatch!
[ 2.3719 ] Writing partition EKS with eks.img
[ 2.3727 ] […] 100%
[ 2.3895 ] Writing partition BMP with bmp.blob
[ 2.4500 ] […] 100%
[ 2.4792 ] Writing partition RP4 with rp4.blob
[ 2.5394 ] […] 100%
[ 2.5654 ] Writing partition resin-boot with resin-boot
[ 2.6263 ] [… ] 080%

The resin-boot flash always gets stuck at 80%. Thanks for your continous efforts :slight_smile:

Hi,
I think I got it to work here: https://github.com/balena-os/jetson-flash/tree/nano_support. Let me know if you manage to boot the device.
Kind regards,
Theodor

Hey Theodor,

thank you so much for your awesome work, it finally boots!

We are were happy that we can now use the production devices together with Balena :blush:

So happy to hear this worked for you. Let me know if there is anything else we can do for you.

Hi, this issue has now been resolved and is fixed in the master branch of the jetson-flash tool

Hi @maxritter,

I’m wondering how you managed to get the JN30B working together with BalenaOS. We are trying similar efforts as in following PR of balena-jetson. How did you manage to replace the .dtb file as supplied by AUVIDEA? Did you build a custom BalenaOS or just replaced the standard .dtb file in jetson-flash?

We successfully managed to build custom BalenaOS with the correct .dtb file. However, when flashing using jetson-flash as described in Flash custom BalenaOS for Jetson Nano with jetson-flash the device does not boot at all. Problem seem similar to what you have been experiencing so I’m very curious how you solved it.

@remsol Yes, I just used the files provided by Auvidea and replaced the already existing ones from the auto download of the jetson-flash tool. Then I modified the tool to not check the integrity of the tegra files, so it will not re-download it and overwrite the Auvidea files.

That was all it needed to make the JN30B Rev4/Rev5 boot :slight_smile: