Hi everyone,
(Sorry in advance, I am not fluent in English but I’ll do my best!)
I have a Jetson TK1 mounted on a Percepto. It was delivered with a Ubuntu 14.04 and I have different problems with WiFi and a 3G Module. Ubuntu ask me to upgrate to Ubuntu 16.04, I hoped it could resolve my problems… But after upgrade, my card doesn’t boot anymore.
Now, I tried to flash eMMC. I follow this tutorial
I connected the board and I reset it in “recovery mode”
# lsusb
(...)
Bus 001 Device 008: ID 0955:7740 NVidia Corp.
(...)
$ watch 'dmesg | tail -n 25'
(...)
[11878.466612] usb 1-1.4: new high-speed USB device number 7 using ehci-pci
[11878.559636] usb 1-1.4: New USB device found, idVendor=0955, idProduct=7740
[11878.559641] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[11878.559643] usb 1-1.4: Product: APX
[11878.559645] usb 1-1.4: Manufacturer: NVIDIA Corp.
I downloaded the last version for Jetson TK1 :
$ wget http://developer.download.nvidia.com/embedded/L4T/r21_Release_v5.0/Tegra124_Linux_R21.5.0_armhf.tbz2
$ wget http://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Sample-Root-Filesystem-R21-5
I extract the system and the root-filesystem :
# ls
l4t-Jetson-TK1-Sample-Root-Filesystem-R21-5 Tegra124_Linux_R21.5.0_armhf.tbz2
# tar xpf Tegra124_Linux_R21.5.0_armhf.tbz2
# ls
l4t-Jetson-TK1-Sample-Root-Filesystem-R21-5 Linux_for_Tegra Tegra124_Linux_R21.5.0_armhf.tbz2
# cd Linux_for_Tegra/rootfs
# sudo tar xpf ../../l4t-Jetson-TK1-Sample-Root-Filesystem-R21-5
# cd ../
After that, I launched the “apply_binary” script :
# ./apply_binaries.sh
Using rootfs directory of: /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs
Extracting the NVIDIA user space components to /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs
Extracting the BSP test tools to /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs
Extracting the NVIDIA gst test applications to /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs
Extracting the configuration files for the supplied root filesystem to /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs
Creating a symbolic link nvgstplayer pointing to nvgstplayer-1.0
Creating a symbolic link nvgstcapture pointing to nvgstcapture-1.0
Adding symlink /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so --> /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so.1.1
Adding symlink /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libGL.so --> /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libGL.so.1
Adding symlink /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/libcuda.so --> /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so
Adding symlink /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra-egl/libEGL.so --> /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra-egl/libEGL.so.1
Adding symlinks for systemd nv.service and nvfb.service
Extracting the firmwares and kernel modules to /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs
Extracting the kernel headers to /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/usr/src
Adding symlink /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/lib/modules/3.10.40-ga7da876/build --> /usr/src/linux-headers-3.10.40-ga7da876
Installing zImage into /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/boot
Installing jetson-tk1_extlinux.conf* into /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/boot/extlinux
Installing the board *.dtb files into /home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/rootfs/boot
Success!
I tried to flash the board :
# ./flash.sh jetson-tk1 mmcblk0p1
copying bctfile(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/bootloader/ardbeg/BCT/PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg)... done.
copying bootloader(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/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/simon/Projet-drone/jetson-tk1/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: 3698688( 903 blks) ==> 28:3698700
1: SKP: 40960( 10 blks) ==> 3698728:40972
2: RAW: 20480( 5 blks) ==> 3698740:20492
3: SKP: 45056( 11 blks) ==> 3719232:45068
4: RAW: 9777152( 2387 blks) ==> 3719244:9777164
5: SKP: 23777280( 5805 blks) ==> 13496408:23777292
6: RAW: 46104576( 11256 blks) ==> 13496420:46104588
7: SKP: 50753536( 12391 blks) ==> 59601008:50753548
(...)
[ 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/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/bootloader/ardbeg/fastboot.bin)... done.
Existing flashapp(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/bootloader/nvflash) reused.
*** Flashing target device started. ***
./nvflash --bct PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg --setbct --configfile flash.cfg --create --bl fastboot.bin --odmdata 0x6009C000 --go
Nvflash 4.13.0000 started
BR_CID: 0x340010017410b104240000000a0100c0
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: 0x000000017410b104240000000a0100c0
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
- 59661/59661 bytes sent
tegra124-jetson_tk1-pm375-000-c00-00.dtb sent successfully
odm data: 0x6009c000
downloading bootloader -- load address: 0x83d88000 entry point: 0x83d88000
download command failed NvError 0x120002
command failure/warning: bootloader download failed (bad data)
Failed flashing ardbeg.
I tried to flash with the “14580MiB” argument, found on the wiki. No more success…
# ./flash.sh 14580MiB jetson-tk1 mmcblk0p1
copying bctfile(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/bootloader/ardbeg/BCT/PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg)... done.
copying bootloader(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/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/simon/Projet-drone/jetson-tk1/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: 3710976( 906 blks) ==> 28:3710988
1: SKP: 28672( 7 blks) ==> 3711016:28684
2: RAW: 8192( 2 blks) ==> 3711028:8204
3: SKP: 57344( 14 blks) ==> 3719232:57356
4: RAW: 3108864( 759 blks) ==> 3719244:3108876
5: SKP: 30445568( 7433 blks) ==> 6828120:30445580
(...)
1750: RAW: 45056( 11 blks) ==> 2310214180:45068
1751: SKP: 4096( 1 blks) ==> 2310259248:4108
1752: RAW: 8192( 2 blks) ==> 2310259260:8204
1753: SKP: 4096( 1 blks) ==> 2310267464:4108
1754: RAW: 62550016( 15271 blks) ==> 2310267476:62550028
1755: SKP: 4096( 1 blks) ==> 2372817504:4108
1756: RAW: 278528( 68 blks) ==> 2372817516:278540
1757: SKP: 1845207040( 450490 blks) ==> 2373096056:1845207052
-- Total: -----------------------------------------------------------
1758 CHUNK 15032385536(3670016 blks) ==> 2373096068(579364 blks)
done.
system.img built successfully.
copying dtbfile(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/kernel/dtb/tegra124-jetson_tk1-pm375-000-c00-00.dtb)... done.
copying cfgfile(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/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 system.img
[ 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/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/bootloader/ardbeg/fastboot.bin)... done.
Existing flashapp(/home/simon/Projet-drone/jetson-tk1/Linux_for_Tegra/bootloader/nvflash) reused.
*** Flashing target device started. ***
./nvflash --bct PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg --setbct --configfile flash.cfg --create --bl fastboot.bin --odmdata 0x6009C000 --go
Nvflash 4.13.0000 started
BR_CID: 0x340010017410b104240000000a0100c0
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: 0x000000017410b104240000000a0100c0
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
- 59661/59661 bytes sent
tegra124-jetson_tk1-pm375-000-c00-00.dtb sent successfully
odm data: 0x6009c000
downloading bootloader -- load address: 0x83d88000 entry point: 0x83d88000
download command failed NvError 0x120002
command failure/warning: bootloader download failed (bad data)
Failed flashing ardbeg.
Always the same error :
download command failed NvError 0x120002
command failure/warning: bootloader download failed (bad data)
Failed flashing ardbeg.
Do you have any advice for me ?
Thank you ! :-)
Simon