embeded/jetson2022. 4. 6. 15:07

월요일까지 잘 쓰던 녀석인데 수요일에 켜려니 안되서 멘붕

다른 SD 메모리 밀고 이미지 구워도 안켜져서 멘붕

젯슨 많이 다뤄보신분에게 여쭤보니 sdk manager를 통해서 밀어 버리지 않으면 복구 안된다고..

그러면.. jetson 보드 자체, SD 카드가 아닌 영역에도 먼가 손을 대는건가?

 

[0000.125] [L4T TegraBoot] (version 00.00.2018.01-l4t-8728f3cb)
[0000.130] Processing in cold boot mode Bootloader 2
[0000.135] A02 Bootrom Patch rev = 1023
[0000.138] Power-up reason: pmc por
[0000.141] No Battery Present
[0000.144] pmic max77620 reset reason
[0000.147] pmic max77620 NVERC : 0x40
[0000.151] RamCode = 0
[0000.153] Platform has DDR4 type RAM
[0000.156] max77620 disabling SD1 Remote Sense
[0000.161] Setting DDR voltage to 1125mv
[0000.165] Serial Number of Pmic Max77663: 0x291ae2
[0000.172] Entering ramdump check
[0000.175] Get RamDumpCarveOut = 0x0
[0000.179] RamDumpCarveOut=0x0,  RamDumperFlag=0xe59ff3f8
[0000.184] Last reboot was clean, booting normally!
[0000.188] Sdram initialization is successful
[0000.192] SecureOs Carveout Base=0x00000000ff800000 Size=0x00800000
[0000.199] Lp0 Carveout Base=0x00000000ff780000 Size=0x00001000
[0000.204] BpmpFw Carveout Base=0x00000000ff700000 Size=0x00080000
[0000.210] GSC1 Carveout Base=0x00000000ff600000 Size=0x00100000
[0000.216] GSC2 Carveout Base=0x00000000ff500000 Size=0x00100000
[0000.222] GSC4 Carveout Base=0x00000000ff400000 Size=0x00100000
[0000.228] GSC5 Carveout Base=0x00000000ff300000 Size=0x00100000
[0000.234] GSC3 Carveout Base=0x000000017f300000 Size=0x00d00000
[0000.250] RamDump Carveout Base=0x00000000ff280000 Size=0x00080000
[0000.256] Platform-DebugCarveout: 0
[0000.259] Nck Carveout Base=0x00000000ff080000 Size=0x00200000
[0000.265] Non secure mode, and RB not enabled.
[0000.269] BoardID = 3448, SKU = 0x0
[0000.272] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.276] Nano-SD: checking PT table on QSPI ...
[0000.281] Initialize FailControl
[0000.284] Read PT from (2:0)
[0000.314] PT crc32 and magic check passed.
[0000.318] Using BFS PT to query partitions
[0000.324] Loading Tboot-CPU binary
[0000.352] Verifying TBC in OdmNonSecureSBK mode
[0000.362] Bootloader load address is 0xa0000000, entry address is 0xa0000258
[0000.369] Bootloader downloaded successfully.
[0000.373] Downloaded Tboot-CPU binary to 0xa0000258
[0000.378] MAX77620_GPIO5 configured
[0000.381] CPU power rail is up
[0000.384] CPU clock enabled
[0000.388] Performing RAM repair
[0000.391] Updating A64 Warmreset Address to 0xa00002e9
[0000.396] BoardID = 3448, SKU = 0x0
[0000.399] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.403] Nano-SD: checking PT table on QSPI ...
[0000.407] NvTbootFailControlDoFailover: No failover; Continuing ...
[0000.413] Loading NvTbootBootloaderDTB
[0000.480] Verifying NvTbootBootloaderDTB in OdmNonSecureSBK mode
[0000.549] Bootloader DTB Load Address: 0x83000000
[0000.554] BoardID = 3448, SKU = 0x0
[0000.557] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.561] Nano-SD: checking PT table on QSPI ...
[0000.565] NvTbootFailControlDoFailover: No failover; Continuing ...
[0000.571] Loading NvTbootKernelDTB
[0000.637] Verifying NvTbootKernelDTB in OdmNonSecureSBK mode
[0000.660] Verification of NvTbootKernelDTB failed!
[0000.665] NvTbootKernelDTB partition is corrupted!
[0000.669] *** Set to failover in the next boot ***
[0000.674] NvTbootFailControlSetClobber:
[0000.678] *** Rebooting ***

 

+ 22.04.07

jetson nano sd 정상부팅 로그

비교해보니 "Verification of NvTbootKernelDTB failed!" 에러가 나면서 무한 리부팅 걸린 듯.

그런데 image로 구으면.. DTB 파티션 안쓰나?

[0000.125] [L4T TegraBoot] (version 00.00.2018.01-l4t-8728f3cb)
[0000.130] Processing in cold boot mode Bootloader 2
[0000.135] A02 Bootrom Patch rev = 1023
[0000.138] Power-up reason: pmc por
[0000.141] No Battery Present
[0000.144] pmic max77620 reset reason
[0000.147] pmic max77620 NVERC : 0x40
[0000.151] RamCode = 0
[0000.153] Platform has DDR4 type RAM
[0000.156] max77620 disabling SD1 Remote Sense
[0000.161] Setting DDR voltage to 1125mv
[0000.165] Serial Number of Pmic Max77663: 0x291ae2
[0000.172] Entering ramdump check
[0000.175] Get RamDumpCarveOut = 0x0
[0000.179] RamDumpCarveOut=0x0,  RamDumperFlag=0xe59ff3f8
[0000.184] Last reboot was clean, booting normally!
[0000.188] Sdram initialization is successful
[0000.192] SecureOs Carveout Base=0x00000000ff800000 Size=0x00800000
[0000.199] Lp0 Carveout Base=0x00000000ff780000 Size=0x00001000
[0000.204] BpmpFw Carveout Base=0x00000000ff700000 Size=0x00080000
[0000.210] GSC1 Carveout Base=0x00000000ff600000 Size=0x00100000
[0000.216] GSC2 Carveout Base=0x00000000ff500000 Size=0x00100000
[0000.222] GSC4 Carveout Base=0x00000000ff400000 Size=0x00100000
[0000.228] GSC5 Carveout Base=0x00000000ff300000 Size=0x00100000
[0000.234] GSC3 Carveout Base=0x000000017f300000 Size=0x00d00000
[0000.250] RamDump Carveout Base=0x00000000ff280000 Size=0x00080000
[0000.256] Platform-DebugCarveout: 0
[0000.259] Nck Carveout Base=0x00000000ff080000 Size=0x00200000
[0000.265] Non secure mode, and RB not enabled.
[0000.269] BoardID = 3448, SKU = 0x0
[0000.272] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.276] Nano-SD: checking PT table on QSPI ...
[0000.281] Initialize FailControl
[0000.284] Read PT from (2:0)
[0000.314] PT crc32 and magic check passed.
[0000.318] Using BFS PT to query partitions
[0000.324] Loading Tboot-CPU binary
[0000.352] Verifying TBC in OdmNonSecureSBK mode
[0000.362] Bootloader load address is 0xa0000000, entry address is 0xa0000258
[0000.369] Bootloader downloaded successfully.
[0000.373] Downloaded Tboot-CPU binary to 0xa0000258
[0000.378] MAX77620_GPIO5 configured
[0000.381] CPU power rail is up
[0000.384] CPU clock enabled
[0000.388] Performing RAM repair
[0000.391] Updating A64 Warmreset Address to 0xa00002e9
[0000.396] BoardID = 3448, SKU = 0x0
[0000.399] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.403] Nano-SD: checking PT table on QSPI ...
[0000.407] NvTbootFailControlDoFailover: No failover; Continuing ...
[0000.413] Loading NvTbootBootloaderDTB
[0000.480] Verifying NvTbootBootloaderDTB in OdmNonSecureSBK mode
[0000.549] Bootloader DTB Load Address: 0x83000000
[0000.554] BoardID = 3448, SKU = 0x0
[0000.557] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.561] Nano-SD: checking PT table on QSPI ...
[0000.565] NvTbootFailControlDoFailover: No failover; Continuing ...
[0000.571] Loading NvTbootKernelDTB
[0000.637] Verifying NvTbootKernelDTB in OdmNonSecureSBK mode
[0000.706] Kernel DTB Load Address: 0x83100000
[0000.710] BoardID = 3448, SKU = 0x0
[0000.714] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.717] Nano-SD: checking PT table on QSPI ...
[0000.722] NvTbootFailControlDoFailover: No failover; Continuing ...
[0000.730] Loading cboot binary
[0000.845] Verifying EBT in OdmNonSecureSBK mode
[0000.887] Bootloader load address is 0x92c00000, entry address is 0x92c00258
[0000.894] Bootloader downloaded successfully.
[0000.898] BoardID = 3448, SKU = 0x0
[0000.901] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.905] Nano-SD: checking PT table on QSPI ...
[0000.910] NvTbootFailControlDoFailover: No failover; Continuing ...
[0000.916] PT: Partition NCT NOT found !
[0000.920] Warning: Find Partition via PT Failed
[0000.924] Next binary entry address: 0x92c00258
[0000.928] BoardId: 3448
[0000.933] Overriding pmu board id with proc board id
[0000.938] Display board id is not available
[0000.942] BoardID = 3448, SKU = 0x0
[0000.945] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0000.949] Nano-SD: checking PT table on QSPI ...
[0000.953] NvTbootFailControlDoFailover: No failover; Continuing ...
[0001.060] Verifying SC7EntryFw in OdmNonSecureSBK mode
[0001.115] /bpmp deleted
[0001.117] SC7EntryFw header found loaded at 0xff700000
[0001.311] OVR2 PMIC
[0001.313] Bpmp FW successfully loaded
[0001.316] BoardID = 3448, SKU = 0x0
[0001.320] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0001.323] Nano-SD: checking PT table on QSPI ...
[0001.328] NvTbootFailControlDoFailover: No failover; Continuing ...
[0001.335] WB0 init successfully at 0xff780000
[0001.339] Verifying NvTbootWb0 in OdmNonSecureSBK mode
[0001.344] Set NvDecSticky Bits
[0001.348] GSC2 address ff53fffc value c0edbbcc
[0001.354] GSC MC Settings done
[0001.357] BoardID = 3448, SKU = 0x0
[0001.360] QSPI-ONLY: SkipQspiOnlyFlag = 0
[0001.364] Nano-SD: checking PT table on QSPI ...
[0001.368] NvTbootFailControlDoFailover: No failover; Continuing ...
[0001.375] TOS Image length 53680
[0001.378]  Monitor size 53680
[0001.381]  OS size 0
[0001.396] Secure Os AES-CMAC Verification Success!
[0001.401] TOS image cipher info: plaintext
[0001.405] Loading and Validation of Secure OS Successful
[0001.421] SC7 Entry Firmware - 0xff700000, 0x4000
[0001.425] NvTbootPackSdramParams: start.
[0001.430] NvTbootPackSdramParams: done.
[0001.434] Tegraboot started after 51854 us
[0001.438] Basic modules init took 931208 us
[0001.442] Sec Bootdevice Read Time = 12 ms, Read Size = 61 KB
[0001.448] Sec Bootdevice Write Time = 0 ms, Write Size = 0 KB
[0001.453] Next stage binary read took 102860 us
[0001.457] Carveout took -132464 us
[0001.461] CPU initialization took 515446 us
[0001.465] Total time taken by TegraBoot 1417050 us

[0001.469] Starting CPU & Halting co-processor

64NOTICE:  BL31: v1.3(release):b5eeb33
NOTICE:  BL31: Built : 08:56:32, Feb 19 2022
ERROR:   Error initializing runtime service trusty_fast

 

1번핀 위치 잘 보고 꽂아야 함.

아무생각없이 꽂아서 PMIC_SYS_RST 가 연결되면 전원 LED에 불도 안들어 온다.

 

[링크 : https://www.mouser.com/pdfDocs/Jetson_Nano_Developer_Kit_User_Guide.pdf]

 

아래 명령어들로 인해서 cboot, EBT, SBK 키 등이 다르게 설정되면서

SD 메모리 부팅이 정상적으로 진행되는거 아닐까?

15:57:09 INFO: Flash Jetson Nano - flash: *** Flashing target device started. ***
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.0047 ] tegrasign --getmode mode.txt --key None
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.0190 ] RCM 1 is saved as rcm_1.rcm
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.0757 ] Assuming zero filled SBK key
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.1716 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.cfg --chip 0x21 0
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.1847 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.1942 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_lpddr4_204Mhz_P987.bct
15:57:09 INFO: Flash Jetson Nano - flash: [ 0.2350 ] RCM version 0X210001
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.2474 ] tegrarcm --download bct P3448_A00_lpddr4_204Mhz_P987.bct
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.2547 ] [...] 100%
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.4867 ] tegrahost --chip 0x21 --align cboot.bin
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.4955 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.5437 ] Assuming zero filled SBK key
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.5577 ] tegrahost --updatesigheader tegra210-p3448-0000-p3449-0000-a02.dtb_blheader.encrypt tegra210-p3448-0000-p3449-0000-a02.dtb_blheader.hash zerosbk
15:57:10 INFO: Flash Jetson Nano - flash: [ 1.5704 ] Sending ebt
15:57:11 INFO: Flash Jetson Nano - flash: [ 1.5706 ] [...] 100%
15:57:11 INFO: Flash Jetson Nano - flash: [ 1.6794 ] Sending rp1
15:57:11 INFO: Flash Jetson Nano - flash: [ 1.6833 ] [...] 100%
15:57:11 INFO: Flash Jetson Nano - flash: [ 1.7451 ] Applet version 00.01.0000
15:57:11 INFO: Flash Jetson Nano - flash: [ 1.7561 ] tegrarcm --oem platformdetails storage storage_info.bin
15:57:11 INFO: Flash Jetson Nano - flash: [ 2.4503 ] [...] 100%
15:57:26 INFO: Flash Jetson Nano - flash: [ 2.4576 ] Writing partition PT with crc-flash.xml.bin
15:57:26 INFO: Flash Jetson Nano - flash: [ 17.2106 ] [...] 100%
15:57:30 INFO: Flash Jetson Nano - flash: [ 17.2180 ] Writing partition NVC with nvtboot.bin.encrypt
15:57:30 INFO: Flash Jetson Nano - flash: [ 21.1299 ] [...] 100%
15:57:40 INFO: Flash Jetson Nano - flash: [ 21.1431 ] Writing partition NVC_R with nvtboot.bin.encrypt
15:57:40 INFO: Flash Jetson Nano - flash: [ 31.1584 ] [...] 100%
15:57:50 INFO: Flash Jetson Nano - flash: [ 31.1746 ] Writing partition TBC with nvtboot_cpu.bin.encrypt
15:57:50 INFO: Flash Jetson Nano - flash: [ 41.1998 ] [...] 100%
15:57:54 INFO: Flash Jetson Nano - flash: [ 41.2121 ] Writing partition RP1 with kernel_tegra210-p3448-0000-p3449-0000-a02.dtb.encrypt
15:57:54 INFO: Flash Jetson Nano - flash: [ 45.3820 ] [...] 100%
15:58:08 INFO: Flash Jetson Nano - flash: [ 45.3993 ] Writing partition EBT with cboot.bin.encrypt
15:58:08 INFO: Flash Jetson Nano - flash: [ 59.3284 ] [...] 100%
15:58:37 INFO: Flash Jetson Nano - flash: [ 59.3567 ] Writing partition WB0 with warmboot.bin.encrypt
15:58:37 INFO: Flash Jetson Nano - flash: [ 88.4141 ] [...] 100%
15:58:38 INFO: Flash Jetson Nano - flash: [ 88.4254 ] Writing partition BPF with sc7entry-firmware.bin.encrypt
15:58:38 INFO: Flash Jetson Nano - flash: [ 88.6887 ] [...] 100%
15:58:38 INFO: Flash Jetson Nano - flash: [ 88.7003 ] Writing partition TOS with tos-mon-only.img.encrypt
15:58:38 INFO: Flash Jetson Nano - flash: [ 88.9647 ] [...] 100%
15:58:41 INFO: Flash Jetson Nano - flash: [ 88.9777 ] Writing partition DTB with kernel_tegra210-p3448-0000-p3449-0000-a02.dtb.encrypt
15:58:41 INFO: Flash Jetson Nano - flash: [ 92.4136 ] [...] 100%
15:58:55 INFO: Flash Jetson Nano - flash: [ 92.4320 ] Writing partition LNX with boot.img.encrypt
15:58:55 INFO: Flash Jetson Nano - flash: [ 106.3609 ] [...] 100%
15:59:35 INFO: Flash Jetson Nano - flash: [ 146.1933 ] Writing partition EKS with eks.img
15:59:35 INFO: Flash Jetson Nano - flash: [ 146.1946 ] [...] 100%
15:59:35 INFO: Flash Jetson Nano - flash: [ 146.2034 ] Writing partition BMP with bmp.blob
15:59:35 INFO: Flash Jetson Nano - flash: [ 146.4667 ] [...] 100%
15:59:44 INFO: Flash Jetson Nano - flash: [ 146.4847 ] Writing partition RP4 with rp4.blob
15:59:44 INFO: Flash Jetson Nano - flash: [ 155.5340 ] [...] 100%
15:59:52 INFO: Flash Jetson Nano - flash: [ 155.5537 ] Writing partition VER_b with qspi_bootblob_ver.txt
15:59:52 INFO: Flash Jetson Nano - flash: [ 163.3820 ] [...] 100%
15:59:53 INFO: Flash Jetson Nano - flash: [ 163.3969 ] Writing partition VER with qspi_bootblob_ver.txt
15:59:53 INFO: Flash Jetson Nano - flash: [ 163.6605 ] [...] 100%
15:59:53 INFO: Flash Jetson Nano - flash: [ 163.6712 ] Writing partition APP with system.img
100%
16:09:26 INFO: Flash Jetson Nano - flash: [ 736.6352 ] tegradevflash --write BCT P3448_A00_lpddr4_204Mhz_P987.bct
16:09:26 INFO: Flash Jetson Nano - flash: [ 736.6451 ] [...] 100%
16:09:32 INFO: Flash Jetson Nano - flash: [ 743.3077 ] tegradevflash --reboot coldboot
16:09:32 INFO: Flash Jetson Nano - flash: [ 743.3115 ] Cboot version 00.01.0000
16:09:34 INFO: Flash Jetson Nano - flash: [ 743.3184 ]
16:09:54 INFO: Flash Jetson Nano - flash: [ Component Install Finished Successfully ]
16:09:54 INFO: Flash Jetson Nano - flash: command finished successfully
16:09:54 SUMMARY: Flash Jetson Nano - flash: Install completed successfully.
16:12:05 INFO: Exactly one NVIDIA device detected, as expected.
16:12:05 INFO: Start to check if if default ip avaliable in ip addr
16:12:05 DEBUG: running command < true >
16:12:05 INFO: exec_command: true
16:12:05 INFO: command finished successfully
16:12:05 DEBUG: running command < ip addr | grep 192.168.55.1 >
16:12:05 INFO: exec_command: ip addr | grep 192.168.55.1
16:12:05 INFO: command finished successfully
16:12:05 INFO: Validated default ip avaliable.
16:12:05 INFO: Start to check if ip and ssh up with customize ip...
16:12:05 DEBUG: running command < true >
16:12:05 INFO: command finished successfully
16:12:05 DEBUG: running command < nc -z -vv -w 5 192.168.55.1 22 >
16:12:05 DEBUG: command terminated with error

 

+

~/nvidia/nvidia_sdk/JetPack_4.6.1_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader$ ls -al tegra*
-rw-r--r-- 1 root     root      229792  4월  6 15:57 tegra210-p3448-0000-p3449-0000-a02.dtb
-rwxrwxr-x 1 minimonk minimonk  959237  2월 20 02:04 tegrabct
-rwxrwxr-x 1 minimonk minimonk  922636  2월 20 02:04 tegradevflash
-rwxrwxr-x 1 minimonk minimonk   50627  2월 20 02:04 tegraflash.py
-rwxrwxr-x 1 minimonk minimonk  163998  2월 20 02:04 tegraflash_internal.py
-rwxrwxr-x 1 minimonk minimonk  912826  2월 20 02:04 tegrahost
-rwxrwxr-x 1 minimonk minimonk 2539744  2월 20 02:04 tegraopenssl
-rwxrwxr-x 1 minimonk minimonk  917258  2월 20 02:04 tegraparser
-rwxrwxr-x 1 minimonk minimonk  931472  2월 20 02:04 tegrarcm
-rwxrwxr-x 1 minimonk minimonk 1092265  2월 20 02:04 tegrasign
-rwxrwxr-x 1 minimonk minimonk   10349  2월 20 02:04 tegrasign_v3.py
-rwxrwxr-x 1 minimonk minimonk   33127  2월 20 02:04 tegrasign_v3_internal.py
-rwxrwxr-x 1 minimonk minimonk    7830  2월 20 02:04 tegrasign_v3_util.py

 

 

+ 22.04.07

 

Have you made any changes to device tree? If not, then likely you will need to reflash the unit (NvTboot is a very early stage in boot, long before Linux is ever reached). If you have an SD card for rootfs you could save a copy of that. Note that where some of this content is found differs between QSPI memory and the SD card depending on release. I can’t say much more which is useful, but if you do need more help, then knowing the release used on this unit and any flash history would help whoever answers.

[링크 : https://forums.developer.nvidia.com/t/jetson-nano-4gb-is-not-booting-suddenly/198991]

[링크 : https://forums.developer.nvidia.com/t/flashing-just-dtb-on-28-2-and-tx1/62007/3]

'embeded > jetson' 카테고리의 다른 글

jetson / armv8 EL  (0) 2022.04.07
nvidia jetson partition table  (0) 2022.04.06
deepstream triton server  (0) 2022.03.30
deepstream part.3  (0) 2022.03.29
deepstream onnx part.2  (0) 2022.03.29
Posted by 구차니