ユーザ用ツール

サイト用ツール


ssdからの起動

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ssdからの起動 [2022/08/18 09:28] makotoa67ssdからの起動 [2022/08/18 13:56] (現在) makotoa67
行 1044: 行 1044:
 ``` ```
  
-ひっかかってしまったのでCtrl+Cで抜けた。もう一度、Jetsonを再起動した上で、flash.shを再実行してみると。。。+ひっかかってしまったのでCtrl+Cで抜けた。もう一度、Jetsonを再起動した上で、flash.shを再実行してみたが。。。 
 + 
 +``` 
 +arioka@beelink-u59:~/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra$ sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1 
 +############################################################################### 
 +# L4T BSP Information: 
 +# R32 , REVISION: 7.2 
 +############################################################################### 
 +# Target Board Information: 
 +# Name: jetson-nano-qspi-sd, Board Family: t210ref, SoC: Tegra 210,  
 +# OpMode: production, Boot Authentication: ,  
 +# Disk encryption: disabled , 
 +############################################################################### 
 +./tegraflash.py --chip 0x21 --applet "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/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.0206 ] Generating RCM messages 
 +[   0.0229 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0 
 +[   0.0239 ] RCM 0 is saved as rcm_0.rcm 
 +[   0.0245 ] RCM 1 is saved as rcm_1.rcm 
 +[   0.0245 ] List of rcm files are saved in rcm_list.xml 
 +[   0.0245 ]  
 +[   0.0246 ] Signing RCM messages 
 +[   0.0267 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key 
 +[   0.0277 ] Assuming zero filled SBK key 
 +[   0.0348 ]  
 +[   0.0349 ] Copying signature to RCM mesages 
 +[   0.0372 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml 
 +[   0.0393 ]  
 +[   0.0394 ] Boot Rom communication 
 +[   0.0420 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid 
 +[   0.0430 ] RCM version 0X210001 
 +[   0.1441 ] Boot Rom communication completed 
 +[   1.1537 ]  
 +[   1.1538 ] dump EEPROM info 
 +[   1.1586 ] tegrarcm --oem platformdetails eeprom /home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/cvm.bin 
 +[   1.1615 ] Applet version 00.01.0000 
 +[   1.1938 ] Saved platform info in /home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/cvm.bin 
 +[   1.2717 ]  
 +[   1.2747 ] tegrarcm --reboot recovery 
 +[   1.2759 ] Applet version 00.01.0000 
 +[   1.3065 ]  
 +Board ID(3448) version(401)  
 +copying bctfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)... done. 
 +copying bootloader(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done. 
 +copying initrd(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/l4t_initrd.img)... done. 
 +Making Boot image... done. 
 +Existing sosfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused. 
 +copying tegraboot(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)... done. 
 +copying cpu_bootloader(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done. 
 +copying bpffile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)... done. 
 +copying wb0boot(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)... done. 
 +Existing tosfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tos-mon-only.img) reused. 
 +Existing eksfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/eks.img) reused. 
 +copying dtbfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/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/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/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/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused. 
 +copying tbcdtbfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0002-p3449-0000-b00.dtb)... done. 
 +copying cfgfile(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cfg/flash_l4t_t210_max-spi_sd_p3448.xml) to flash.xml... done. 
 +copying flasher(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done. 
 +Existing flashapp(/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/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/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/flashcmd.txt 
 +saving Windows flash command to /home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/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 レコード入力 
 +1+0 レコード出力 
 +1 byte copied, 0.000150955 s, 6.6 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 レコード入力 
 +1+0 レコード出力 
 +1 byte copied, 0.000174158 s, 5.7 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 レコード入力 
 +4+0 レコード出力 
 +4 bytes copied, 0.000124407 s, 32.2 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.0047 ] tegrasign --getmode mode.txt --key None 
 +[   0.0056 ] Assuming zero filled SBK key 
 +[   0.0084 ]  
 +[   0.0086 ] Generating RCM messages 
 +[   0.0121 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0 
 +[   0.0133 ] RCM 0 is saved as rcm_0.rcm 
 +[   0.0163 ] RCM 1 is saved as rcm_1.rcm 
 +[   0.0165 ] List of rcm files are saved in rcm_list.xml 
 +[   0.0532 ]  
 +[   0.0533 ] Signing RCM messages 
 +[   0.0565 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key 
 +[   0.0581 ] Assuming zero filled SBK key 
 +[   0.0667 ]  
 +[   0.0668 ] Copying signature to RCM mesages 
 +[   0.0694 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml 
 +[   0.0718 ]  
 +[   0.0718 ] Parsing partition layout 
 +[   0.0741 ] tegraparser --pt flash.xml.tmp 
 +[   0.0754 ]  
 +[   0.0756 ] Using default ramcode: 0 
 +[   0.0756 ] Disable BPMP dtb trim, using default dtb 
 +[   0.0756 ]  
 +[   0.0756 ] Creating list of images to be signed 
 +[   0.0781 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml 
 +[   0.0906 ]  
 +[   0.0907 ] Generating signatures 
 +[   0.0924 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key 
 +[   0.0938 ] Assuming zero filled SBK key 
 +[   0.1686 ]  
 +[   0.1686 ] Generating br-bct 
 +[   0.1727 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.cfg --chip 0x21 0 
 +[   0.1812 ]  
 +[   0.1812 ] Updating boot device parameters 
 +[   0.1837 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin 
 +[   0.1853 ] Warning: No sdram params 
 +[   0.1856 ]  
 +[   0.1856 ] Updating bl info 
 +[   0.1877 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml 
 +[   0.1894 ]  
 +[   0.1895 ] Updating secondary storage information into bct 
 +[   0.1915 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_lpddr4_204Mhz_P987.bct 
 +[   0.1927 ]  
 +[   0.1927 ] Updating Odmdata 
 +[   0.1951 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0xa4000 
 +[   0.1962 ] Warning: No sdram params 
 +[   0.1965 ]  
 +[   0.1966 ] Get Signed section of bct 
 +[   0.1989 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml 
 +[   0.2005 ]  
 +[   0.2006 ] Signing BCT 
 +[   0.2055 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key 
 +[   0.2064 ] Assuming zero filled SBK key 
 +[   0.2070 ]  
 +[   0.2070 ] Updating BCT with signature 
 +[   0.2092 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml 
 +[   0.2107 ]  
 +[   0.2107 ] Copying signatures 
 +[   0.2131 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml 
 +[   0.2564 ]  
 +[   0.2565 ] Updating BFS information on BCT 
 +[   0.2602 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin 
 +[   0.2642 ]  
 +[   0.2643 ] Boot Rom communication 
 +[   0.2686 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml 
 +[   0.2716 ] BR_CID: 0x32101001643c08482400000019fe8400 
 +[   0.3014 ] RCM version 0X210001 
 +[   0.3450 ] Boot Rom communication completed 
 +[   1.3554 ]  
 +[   1.3555 ] Sending BCTs 
 +[   1.3601 ] tegrarcm --download bct P3448_A00_lpddr4_204Mhz_P987.bct 
 +[   1.3631 ] Applet version 00.01.0000 
 +[   1.3950 ] Sending bct 
 +[   1.3954 ] [................................................] 100% 
 +[   1.6214 ]  
 +[   1.6261 ] tegrahost --chip 0x21 --align cboot.bin 
 +[   1.6298 ]  
 +[   1.6343 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader 
 +[   1.6399 ]  
 +[   1.6434 ] tegrasign --key None --list cboot.bin_list.xml 
 +[   1.6452 ] Assuming zero filled SBK key 
 +[   1.6624 ]  
 +[   1.6650 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk 
 +[   1.6674 ]  
 +[   1.7421 ] tegrahost --chip 0x21 --align tegra210-p3448-0002-p3449-0000-b00.dtb 
 +[   1.8757 ]  
 +[   1.8808 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0002-p3449-0000-b00.dtb tegra210-p3448-0002-p3449-0000-b00.dtb_blheader 
 +[   1.9204 ]  
 +[   1.9234 ] tegrasign --key None --list tegra210-p3448-0002-p3449-0000-b00.dtb_list.xml 
 +[   1.9246 ] Assuming zero filled SBK key 
 +[   1.9346 ]  
 +[   1.9384 ] tegrahost --updatesigheader tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0002-p3449-0000-b00.dtb_blheader.hash zerosbk 
 +[   2.0940 ]  
 +[   2.0945 ] Sending bootloader and pre-requisite binaries 
 +[   2.0968 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0002-p3449-0000-b00.dtb.encrypt 0 
 +[   2.0977 ] Applet version 00.01.0000 
 +[   2.1311 ] Sending ebt 
 +[   2.1322 ] [................................................] 100% 
 +[   2.2441 ] Sending rp1 
 +[   2.2485 ] [................................................] 100% 
 +[   2.3055 ]  
 +[   2.3098 ] tegrarcm --boot recovery 
 +[   2.3135 ] Applet version 00.01.0000 
 +[   2.3926 ]  
 +[   2.3927 ] Retrieving storage infomation 
 +[   2.3954 ] tegrarcm --oem platformdetails storage storage_info.bin 
 +[   2.3964 ] Applet is not running on device. Continue with Bootloader 
 +[   3.1057 ]  
 +[   3.1154 ] tegradevflash --oem platformdetails storage storage_info.bin 
 +[   3.1181 ] Cboot version 00.01.0000 
 +[   3.1508 ] Saved platform info in storage_info.bin 
 + 
 + 
 + 
 +^CTraceback (most recent call last): 
 +  File "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 2502, in tegraflash_get_storage_info 
 +    run_command(command) 
 +  File "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 206, in run_command 
 +    raise tegraflash_exception('Return value ' + str(return_code) + 
 +tegraflash_internal.tegraflash_exception: 'Return value 8\nCommand tegrarcm --oem platformdetails storage storage_info.bin' 
 + 
 +During handling of the above exception, another exception occurred: 
 + 
 +Traceback (most recent call last): 
 +  File "./tegraflash.py", line 1296, in <module> 
 +    tegraflash_run_commands() 
 +  File "./tegraflash.py", line 1155, in tegraflash_run_commands 
 +    interpreter.onecmd(command) 
 +  File "/usr/lib/python3.8/cmd.py", line 217, in onecmd 
 +    return func(arg) 
 +  File "./tegraflash.py", line 216, in do_flash 
 +    tegraflash_flash(exports) 
 +  File "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 274, in tegraflash_flash 
 +    tegraflash_get_storage_info() 
 +  File "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 2506, in tegraflash_get_storage_info 
 +    run_command(command) 
 +  File "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 202, in run_command 
 +    log = print_process(process, enable_print) 
 +  File "/home/arioka/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash_internal.py", line 161, in print_process 
 +    output = process.stdout.read(1) 
 +KeyboardInterrupt 
 + 
 +arioka@beelink-u59:~/nvidia/nvidia_sdk/JetPack_4.6.2_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra$  
 +``` 
 + 
 +と、やはり同じ状況。仕方がないので、SDK Managerを用いて一式を書き込む、というやり方を実施す。書き込まれるイメージは、上のflash.shを用いた方法同じものが使用されるはずなので、STEP01でJetson Nano Modules (P3448-0002)を指定して、STEP02でJetson SDK Componentsのチェックを外して、I accept the terms and conditions of the license agreements のチェックを入れて、CONTINUE TO STEP03を押す 
 + 
 +STEP03で、Auto setupはやはり無理で、初期化されてしまうが、Manual setupにて実施これで完了後にJetsonが起動されたあとで確認すると、ちゃんとTC358748のドライバが組み込めたようで、起動時のprobe処理にてI2Cの通信でエラーとなるログが確認できた。 
 + 
 +また、 
 + 
 +``` 
 +$ dtc -I fs -O dts -o extracted.dts /proc/device-tree 
 +``` 
 + 
 +で、現在のDevice Tree情報を確認してみても、TC358748関連のカスタマイズの跡が確認できた。 
 +次に、/opt/nvidia/jetson-io/netson-io.pyを実行してみたところ、ヘッダー40ピンのカスタマイズのメニューが現れない。キャリーボードが開発者キットと違うからだろう。 
 + 
 +ただし、すでに、クロス環境にてspidevは有効にしたので、それが生きているようで、/dev/spidev*が存在している。 
 + 
 +長くなってきたのでページを分ける 
 + 
 +[[sec_ret:SSDからの起動2]]
ssdからの起動.1660782481.txt.gz · 最終更新: 2022/08/18 09:28 by makotoa67