Jetson TK1 に L4T を手動で書き込む

前回,L4Tのセットアップからのインストールを試みたが,フラッシュへの転送が進まないようだった.(1時間ほど待っても終わらず)


そこで,SDカードへの書き込みも兼ねてリカバリを行ってみた.

※ちなみに今回,母艦側ではホームディレクトリ直下のJetPack-L4T-2.1に開発キットのインストールを実施している

事前にTK1はリカバリモードでUSB接続しておく.


$ chmod +x JetPack-L4T-2.1-linux-x64.run

$ cd /home/(ユーザー名)/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk

$sudo ./flash.sh jetson-tk1 mmcblk0p1 #内蔵フラッシュへの書き込み

#sudo ./flash.sh jetson-tk1 mmcblk1p1 #SDカードへの書き込み

#sudo ./flash.sh jetson-tk1 sda1 #USBドライブやSATAデバイス?(未検証)
以下,実行時のログ
$ sudo ./flash.sh jetson-tk1 mmcblk0p1
[sudo] password for (ユーザー名): 
copying bctfile(/home/(ユーザー名)/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/BCT/PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.cfg)... done.
copying bootloader(/home/(ユーザー名)/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/u-boot.bin)... done.
        populating kernel to rootfs... done.
        populating jetson-tk1_extlinux.conf.emmc to rootfs... done.
done.
Making system.img... 
        populating rootfs from /home/(ユーザー名)/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/rootfs ...


これでもやっぱり止まった

気を取り直して再挑戦するもやっぱり止まる

copying flasher(/home/(ユーザー名)/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/fastboot.bin)... done.
Existing flashapp(/home/(ユーザー名)/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/nvflash) reused.
*** Flashing target device started. ***
./nvflash  --bct PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.cfg --setbct --configfile flash.cfg  --create --bl fastboot.bin --odmdata 0x6009C000 --go
Nvflash 4.13.0000 started
BR_CID: 0x340010017410b1022000000009058380

何が原因なんだろう・・・
http://tessy.org/wiki/index.php?Jetson%20TK1

この辺も試してみたいとおもうところだけど,ホストマシンがVMwareのESXiだからダメなのかなと思いはじめた.


そこで,ホストマシンをOVAにエクスポートしたのち,Windows7上で走るVMwarePlayerにてインポートして起動.

試しにTK1に接続したext4にフォーマット済みのSSDに書き込みしてみたところ難なく下記のログ.

ubuntu@ubuntu-x64-jetson:~/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1$ sudo ./flash.sh jetson-tk1 sda1
[sudo] password for ubuntu: 
copying bctfile(/home/ubuntu/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/BCT/PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.cfg)... done.
copying bootloader(/home/ubuntu/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/u-boot.bin)... done.
	populating kernel to rootfs... done.
	populating jetson-tk1_extlinux.conf.usb to rootfs... done.
done.
copying dtbfile(/home/ubuntu/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/kernel/dtb/tegra124-jetson_tk1-pm375-000-c00-00.dtb)... done.
copying cfgfile(/home/ubuntu/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/cfg/gnu_linux_fastboot_emmc_full.cfg) to flash.cfg... done.
creating gpt(ppt.img)... 

*** GPT Parameters ***
Device Sector Size ------- 512
device size -------------- 15766388736
bootpart size ------------ 8388608
userpart size ------------ 15758000128
Erase Block Size --------- 2097152
FS Buffer size ----------- 4096
Partition Config file ---- flash.cfg
Visible partition flag --- GP1
Primary GPT output ------- PPT->ppt.img
Secondary GPT output ----- GPT->gpt.img
Target device name ------- none

*** PARTITION LAYOUT(20 partitions) ***
[     BCT] BH            0        16383       8.0MiB 
[     PPT] UH            0         4095       2.0MiB ppt.img
[      PT] UH         4096         8191       2.0MiB 
[     EBT] UH         8192        16383       4.0MiB u-boot.bin
[     LNX] UH        16384        49151      16.0MiB 
[     SOS] UH        49152        61439       6.0MiB 
[     NVC] UH        61440        65535       2.0MiB 
[     MPB] UH        65536        77823       6.0MiB 
[     MBP] UH        77824        90111       6.0MiB 
[     GP1] UH        90112        94207       2.0MiB 
[     APP] UV        94208     29454335   14336.0MiB 
[     DTB] UV     29454336     29462527       4.0MiB tegra124-jetson_tk1-pm375-000-c00-00.dtb
[     EFI] UV     29462528     29593599      64.0MiB 
[     USP] UV     29593600     29601791       4.0MiB 
[     TP1] UV     29601792     29609983       4.0MiB 
[     TP2] UV     29609984     29618175       4.0MiB 
[     TP3] UV     29618176     29626367       4.0MiB 
[     WB0] UV     29626368     29630463       2.0MiB 
[     UDA] UV     29630464     30773247     558.0MiB 
[     GPT] UH     30773248     30777343       2.0MiB gpt.img
copying flasher(/home/ubuntu/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/ardbeg/fastboot.bin)... done.
Existing flashapp(/home/ubuntu/JetPack-L4T-2.1/TK1/Linux_for_Tegra_tk1/bootloader/nvflash) reused.
*** Flashing target device started. ***
./nvflash  --bct PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.cfg --setbct --configfile flash.cfg  --create --bl fastboot.bin --odmdata 0x6009C000 --go
Nvflash 4.13.0000 started
BR_CID: 0x340010017410b1022000000009058380
rcm version 0X400001
Skipping BoardID read at miniloader level
System Information:
   chip name: unknown
   chip id: 0x40 major: 1 minor: 1
   chip sku: 0x0
   chip uid: 0x000000017410b1022000000009058380
   macrovision: disabled
   hdcp: disabled
   jtag: disabled
   sbk burned: false
   board id: 0
   warranty fuse: 0
   dk burned: false
   boot device: emmc
   operating mode: 3
   device config strap: 0
   device config fuse: 0
   sdram config strap: 0

RCM communication completed
BCT sent successfully
sending file: tegra124-jetson_tk1-pm375-000-c00-00.dtb
- 59637/59637 bytes sent
tegra124-jetson_tk1-pm375-000-c00-00.dtb sent successfully
odm data: 0x6009c000
downloading bootloader -- load address: 0x83d88000 entry point: 0x83d88000
sending file: fastboot.bin
- 594363/594363 bytes sent
fastboot.bin sent successfully
waiting for bootloader to initialize
bootloader downloaded successfully
ML execution and Cpu Handover took 2 Secs
Partition backup took 0 Secs
setting device: 2 3
deleting device partitions
creating partition: BCT
creating partition: PPT
creating partition: PT
creating partition: EBT
creating partition: LNX
creating partition: SOS
creating partition: NVC
creating partition: MPB
creating partition: MBP
creating partition: GP1
creating partition: APP
creating partition: DTB
creating partition: EFI
creating partition: USP
creating partition: TP1
creating partition: TP2
creating partition: TP3
creating partition: WB0
creating partition: UDA
creating partition: GPT
sending file: ppt.img
\ 2097152/2097152 bytes sent
ppt.img sent successfully
padded 12 bytes to bootloader
sending file: u-boot.bin
- 440016/440016 bytes sent
u-boot.bin sent successfully
sending file: tegra124-jetson_tk1-pm375-000-c00-00.dtb
- 59637/59637 bytes sent
tegra124-jetson_tk1-pm375-000-c00-00.dtb sent successfully
sending file: gpt.img
\ 2097152/2097152 bytes sent
gpt.img sent successfully
Create, format and download  took 14 Secs
Time taken for flashing 17 Secs
*** The target ardbeg has been flashed successfully. ***
Make the target filesystem available to the device and reset the board to boot from external sda1.

eMMCやSDなどへの書き込みは,どこ見ても30分程度はかかると書いてあるにもかかわらず,今回は爆速で書けたけど,SSDだからだろうかと心配になって起動するもやっぱり起動せずに画面真っ暗なまま

きっとブートローダの書き込みだけで,rootfsの書き込みは自分でやらなきゃダメなんだな.もう一息

参考:http://demotomohiro.github.io/hardware/jetson_tk1/setup/external_storage.html

コメント(0)

コメントを投稿する