Jetson TK1 on Percepto : Failed flashing ardbeg (download command failed NvError 0x120002)

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

This may not be an issue for you, but a detail needed to be sure things were correct…the apply_binaries.sh needs to be run sudo (I didn’t see errors, this was probably correct). The actual flash.sh command needs to be run sudo as well…not running as root/sudo can cause loopback device creation errors, plus permissions would not be preserved when populating the image from the sample rootfs. Loopback errors may cause an outright failure to flash, but copy permission issues could manifest later.

There is a list of error codes here:
http://developer.download.nvidia.com/embedded/L4T/r21_Release_v5.0/l4t_quick_start_guide.txt?autho=1472639471_13b9cd09f2f7dd8f39cd86e1099b765c&file=l4t_quick_start_guide.txt

The default command should work, but the -S parameter you mentioned is likely the best way to go (which you did):

sudo ./flash.sh -S 14580MiB jetson-tk1 mmcblk0p1

The “packet was nacked” could be a communications error (NAK => not acknowledged). This line in the log is related:

command failure/warning: bootloader download failed (bad data)

…but some of the data did send successfully, so it isn’t the hardware cable…the USB cable did its job earlier for other data transfer, there is no reason to think USB would stop doing the job correctly in the middle of a flash.

Mostly it seems you did everything correctly, so I’m thinking perhaps your environment has something going on if you can verify that sudo was used in all of those places I mentioned above. How much disk space do you have, and is the space on a native Linux file system (you can use “df -H -T”)? Was anything about the host unusual, e.g., was it a virtual machine or ordinary Linux host?

Hi linuxdev,
Thanks for your answer.

I was root for all the command, I am 100% sure about that. SO, it’s not a problem about sudo, I think.

Yesterday, I also try to flash on a SD card. I followed this tutorial. No more success…

I will read again what I do and try to find what I did wrong.

Is there anything unusual about the host, e.g., VM or using an external hard drive?

Hi,

The host is a Debian 8 “Jessie”, up-to-date. It’s not a VM and I have no external hard drive ou USB key connected. I can try with a Ubuntu 16.04, do you think it could be different ?

Yesterday, I retry from scratch to be sure I don’t miss a think.

simon@debian8:~/Projet-drone/jetson-2$ wget http://developer.download.nvidia.com/embedded/L4T/r21_Release_v5.0/Tegra124_Linux_R21.5.0_armhf.tbz2 

simon@debian8:~/Projet-drone/jetson-2$ wget -O Tegra_Linux_Sample-Root-Filesystem_R21.5.0_armhf.tbz2 http://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Sample-Root-Filesystem-R21-5

simon@debian8:~/Projet-drone/jetson-2$ ls
Tegra124_Linux_R21.5.0_armhf.tbz2  Tegra_Linux_Sample-Root-Filesystem_R21.5.0_armhf.tbz2

simon@debian8:~/Projet-drone/jetson-2$ tar xpf Tegra124_Linux_R21.5.0_armhf.tbz2 

simon@debian8:~/Projet-drone/jetson-2$ ls
Linux_for_Tegra  Tegra124_Linux_R21.5.0_armhf.tbz2  Tegra_Linux_Sample-Root-Filesystem_R21.5.0_armhf.tbz2

simon@debian8:~/Projet-drone/jetson-2$ cd Linux_for_Tegra/rootfs/

simon@debian8:~/Projet-drone/jetson-2/Linux_for_Tegra/rootfs$ sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R21.5.0_armhf.tbz2
[sudo] password for simon:

simon@debian8:~/Projet-drone/jetson-2/Linux_for_Tegra/rootfs$ ls -al
total 100
drwxr-xr-x  20 simon simon  4096 sep  1 20:45 .
drwxr-xr-x   6 simon simon  4096 jun  8 06:17 ..
drwxr-xr-x   2 root  root   4096 avr  2  2015 bin
drwxr-xr-x   2 root  root   4096 avr  2  2015 boot
drwxr-xr-x  16 root  root   4096 avr  2  2015 dev
drwxr-xr-x 132 root  root  12288 avr  2  2015 etc
drwxr-xr-x   3 root  root   4096 avr  2  2015 home
drwxr-xr-x  21 root  root   4096 avr  2  2015 lib
drwxr-xr-x   2 root  root   4096 avr  2  2015 media
drwxr-xr-x   2 root  root   4096 avr  2  2015 mnt
drwxr-xr-x   2 root  root   4096 avr  2  2015 opt
drwxr-xr-x   2 root  root   4096 avr  2  2015 proc
-rw-r--r--   1 simon simon    62 jun  8 06:17 README.txt
drwx------   2 root  root   4096 avr  2  2015 root
drwxr-xr-x  17 root  root   4096 avr  2  2015 run
drwxr-xr-x   2 root  root  12288 avr  2  2015 sbin
drwxr-xr-x   2 root  root   4096 avr  2  2015 srv
drwxr-xr-x   2 root  root   4096 avr  2  2015 sys
drwxrwxrwt   4 root  root   4096 avr  2  2015 tmp
drwxr-xr-x  10 root  root   4096 avr  2  2015 usr
drwxr-xr-x  13 root  root   4096 avr  2  2015 var

simon@debian8:~/Projet-drone/jetson-2/Linux_for_Tegra/rootfs$ cd ..

simon@debian8:~/Projet-drone/jetson-2/Linux_for_Tegra$ sudo ./apply_binaries.sh
Using rootfs directory of: /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs
Extracting the NVIDIA user space components to /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs
Extracting the BSP test tools to /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs
Extracting the NVIDIA gst test applications to /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs
Extracting the configuration files for the supplied root filesystem to /home/simon/Projet-drone/jetson-2/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-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so --> /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so.1.1
Adding symlink /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libGL.so --> /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libGL.so.1
Adding symlink /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/libcuda.so --> /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so
Adding symlink /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/lib/arm-linux-gnueabihf/tegra-egl/libEGL.so --> /home/simon/Projet-drone/jetson-2/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-2/Linux_for_Tegra/rootfs
Extracting the kernel headers to /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/usr/src
Adding symlink /home/simon/Projet-drone/jetson-2/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-2/Linux_for_Tegra/rootfs/boot
Installing jetson-tk1_extlinux.conf* into /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/boot/extlinux
Installing the board *.dtb files into /home/simon/Projet-drone/jetson-2/Linux_for_Tegra/rootfs/boot
Success!

simon@debian8:~/Projet-drone/jetson-2/Linux_for_Tegra$ sudo ./flash.sh -S 14580MiB jetson-tk1 mmcblk0p1
[sudo] password for simon: 
copying bctfile(/home/simon/Projet-drone/jetson-2/Linux_for_Tegra/bootloader/ardbeg/BCT/PM375_Hynix_2GB_H5TC4G63AFR_H5TC4G63CFR_RDA_924MHz.cfg)... done.
copying bootloader(/home/simon/Projet-drone/jetson-2/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-2/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:     3776512(    922 blks) ==>          28:3776524
  1: SKP:       28672(      7 blks) ==>     3776552:28684
  2: RAW:        8192(      2 blks) ==>     3776564:8204
  3: SKP:       57344(     14 blks) ==>     3784768:57356
  4: RAW:     3133440(    765 blks) ==>     3784780:3133452
  5: SKP:    30420992(   7427 blks) ==>     6918232:30421004
(...trunked...)
1759: SKP:        4096(      1 blks) ==>  2308493968:4108
1760: RAW:    64647168(  15783 blks) ==>  2308493980:64647180
1761: SKP:  1837895680( 448705 blks) ==>  2373141160:1837895692
1762: RAW:        8192(      2 blks) ==>  2373141172:8204
1763: SKP:   255844352(  62462 blks) ==>  2373149376:255844364
-- Total: -----------------------------------------------------------
1764 CHUNK 15288238080(3732480 blks) ==>  2373149388(579377 blks)

done.
system.img built successfully. 
copying dtbfile(/home/simon/Projet-drone/jetson-2/Linux_for_Tegra/kernel/dtb/tegra124-jetson_tk1-pm375-000-c00-00.dtb)... done.
copying cfgfile(/home/simon/Projet-drone/jetson-2/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     29954047   14580.0MiB system.img
[     DTB] UV     29954048     29962239       4.0MiB tegra124-jetson_tk1-pm375-000-c00-00.dtb
[     EFI] UV     29962240     30093311      64.0MiB 
[     USP] UV     30093312     30101503       4.0MiB 
[     TP1] UV     30101504     30109695       4.0MiB 
[     TP2] UV     30109696     30117887       4.0MiB 
[     TP3] UV     30117888     30126079       4.0MiB 
[     WB0] UV     30126080     30130175       2.0MiB 
[     UDA] UV     30130176     30773247     314.0MiB 
[     GPT] UH     30773248     30777343       2.0MiB gpt.img
copying flasher(/home/simon/Projet-drone/jetson-2/Linux_for_Tegra/bootloader/ardbeg/fastboot.bin)... done.
Existing flashapp(/home/simon/Projet-drone/jetson-2/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 check messages and logs in dmesg and I found a lot of things who appear when I try to flash the board. Perhaps it could help to determine the problem.

[127223.414098] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[127917.716451] INFO: task nvflash:9483 blocked for more than 120 seconds.
[127917.716458]       Tainted: G         C O  3.16.0-4-amd64 #1
[127917.716460] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[127917.716462] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[127917.716467]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[127917.716470]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[127917.716473]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[127917.716476] Call Trace:
[127917.716484]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[127917.716512]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[127917.716517]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[127917.716521]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[127917.716524]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[127917.716535]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[127917.716546]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[127917.716557]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[127917.716562]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[127917.716572]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[127917.716576]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[127917.716580]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[127917.716583]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[127917.716586]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128037.601631] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128037.601634]       Tainted: G         C O  3.16.0-4-amd64 #1
[128037.601635] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128037.601637] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128037.601640]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128037.601642]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128037.601644]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128037.601646] Call Trace:
[128037.601652]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128037.601676]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128037.601680]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128037.601683]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128037.601685]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128037.601695]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128037.601703]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128037.601710]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128037.601713]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128037.601720]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128037.601723]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128037.601726]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128037.601728]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128037.601730]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128157.486851] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128157.486856]       Tainted: G         C O  3.16.0-4-amd64 #1
[128157.486857] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128157.486859] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128157.486863]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128157.486866]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128157.486868]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128157.486871] Call Trace:
[128157.486877]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128157.486903]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128157.486908]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128157.486911]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128157.486913]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128157.486922]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128157.486930]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128157.486938]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128157.486942]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128157.486950]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128157.486953]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128157.486957]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128157.486959]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128157.486961]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128277.372053] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128277.372058]       Tainted: G         C O  3.16.0-4-amd64 #1
[128277.372060] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128277.372062] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128277.372067]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128277.372070]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128277.372073]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128277.372076] Call Trace:
[128277.372084]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128277.372112]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128277.372117]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128277.372121]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128277.372124]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128277.372136]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128277.372147]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128277.372157]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128277.372162]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128277.372173]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128277.372176]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128277.372181]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128277.372183]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128277.372187]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128397.257246] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128397.257252]       Tainted: G         C O  3.16.0-4-amd64 #1
[128397.257253] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128397.257256] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128397.257260]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128397.257264]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128397.257267]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128397.257270] Call Trace:
[128397.257277]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128397.257306]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128397.257311]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128397.257315]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128397.257318]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128397.257330]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128397.257341]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128397.257352]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128397.257356]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128397.257367]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128397.257370]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128397.257375]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128397.257377]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128397.257381]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128517.142478] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128517.142486]       Tainted: G         C O  3.16.0-4-amd64 #1
[128517.142487] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128517.142489] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128517.142494]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128517.142497]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128517.142500]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128517.142503] Call Trace:
[128517.142511]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128517.142544]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128517.142550]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128517.142555]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128517.142558]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128517.142568]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128517.142579]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128517.142589]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128517.142594]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128517.142604]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128517.142608]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128517.142613]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128517.142615]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128517.142618]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128637.027655] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128637.027661]       Tainted: G         C O  3.16.0-4-amd64 #1
[128637.027663] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128637.027665] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128637.027670]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128637.027673]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128637.027676]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128637.027679] Call Trace:
[128637.027687]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128637.027717]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128637.027723]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128637.027727]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128637.027730]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128637.027744]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128637.027757]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128637.027770]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128637.027775]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128637.027787]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128637.027790]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128637.027795]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128637.027798]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128637.027801]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128756.912865] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128756.912870]       Tainted: G         C O  3.16.0-4-amd64 #1
[128756.912872] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128756.912874] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128756.912878]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128756.912881]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128756.912884]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128756.912887] Call Trace:
[128756.912894]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128756.912922]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128756.912926]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128756.912930]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128756.912933]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128756.912944]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128756.912954]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128756.912964]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128756.912969]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128756.912979]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128756.912982]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128756.912987]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128756.912989]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128756.912993]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128876.798063] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128876.798068]       Tainted: G         C O  3.16.0-4-amd64 #1
[128876.798070] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128876.798072] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128876.798076]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128876.798080]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128876.798082]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128876.798085] Call Trace:
[128876.798093]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128876.798121]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128876.798126]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128876.798130]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128876.798133]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128876.798147]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128876.798160]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128876.798177]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128876.798182]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128876.798193]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128876.798196]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128876.798201]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128876.798203]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128876.798207]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13
[128996.683268] INFO: task nvflash:9483 blocked for more than 120 seconds.
[128996.683274]       Tainted: G         C O  3.16.0-4-amd64 #1
[128996.683275] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[128996.683277] nvflash         D ffff8800d6c75a48     0  9483   8263 0x20020000
[128996.683282]  ffff8800d6c755f0 0000000000000082 0000000000012f00 ffff880102543fd8
[128996.683285]  0000000000012f00 ffff8800d6c755f0 7fffffffffffffff ffff880102543d18
[128996.683288]  ffff880102543d88 ffff8800d6c755f0 0000000000000000 00000000fffffff4
[128996.683291] Call Trace:
[128996.683299]  [<ffffffff8150fef9>] ? schedule_timeout+0x229/0x2a0
[128996.683328]  [<ffffffffa0058816>] ? usb_hcd_submit_urb+0xa6/0xa60 [usbcore]
[128996.683333]  [<ffffffff8109bc90>] ? select_task_rq_fair+0x390/0x700
[128996.683337]  [<ffffffff81511771>] ? wait_for_completion_timeout+0xa1/0x120
[128996.683340]  [<ffffffff81097000>] ? wake_up_state+0x10/0x10
[128996.683351]  [<ffffffffa005ac7a>] ? usb_start_wait_urb+0x7a/0x150 [usbcore]
[128996.683362]  [<ffffffffa00652e0>] ? proc_bulk+0x200/0x380 [usbcore]
[128996.683373]  [<ffffffffa0066ab3>] ? usbdev_do_ioctl+0xa73/0x11b0 [usbcore]
[128996.683378]  [<ffffffff811e353c>] ? fsnotify+0x23c/0x300
[128996.683388]  [<ffffffffa00671fc>] ? usbdev_compat_ioctl+0xc/0x10 [usbcore]
[128996.683420]  [<ffffffff811f545a>] ? compat_SyS_ioctl+0xba/0x10b0
[128996.683425]  [<ffffffff811a8624>] ? vfs_write+0x154/0x1f0
[128996.683428]  [<ffffffff811a90c2>] ? SyS_write+0x42/0xa0
[128996.683432]  [<ffffffff81516e5c>] ? ia32_do_call+0x13/0x13

Is the particular Debian machine 64-bit (x86_64)? This is a requirement for all flashing…I suspect it is (though later information contradicts this), or else the flash program would have failed.

If you use JetPack you must use Ubuntu 14.04 on the host, there is no other option (although there will be a JetPack running on Ubuntu 16.04 in the near future). To use just the driver package plus sample rootfs you can use any x86_64 Linux. Details of how loopback devices are dealt with may differ on various distributions, but so long as you used root (or sudo) I doubt any distribution differs regarding loopback.

I did notice that you used wget for downloads. Depending on what you are doing the nVidia web page setup may actually download the HTML content of that URL instead of the package you think you are getting (some URLs are active scripts and not direct file URLs…the result is wget might retrieve the page instead of the file resulting from running the URL link script). I’d suggest verifying the downloads are what you think they are, or testing via re-download using the usual mouse click on a regular web browser. I didn’t see any obvious errors from this, but be careful when using wget.

About dmesg…was this run from the Debian host? If so, then you are getting a kernel crash (something serious) when running nvflash. This may be related to some difference in Debian versus what other people have reported as working (for example, I use Fedora, this works great for flash exactly the same way Ubuntu 14.04 would work). This kind of error would definitely be a “smoking gun” of proof that the flash did not succeed because of host side issues. In particular I see in the call stack “ia32_do_call” which implies the Debian kernel is 32-bit rather than 64-bit; running 32-bit would block successful flash (if this is a 32-bit Debian host it is kind of a mystery as to how the flash program ever got that far).

Incidentally, even if the flash program worked with 32-bit hosts (and it does not) you would probably run into errors because of large files exceeding 32-bit addressing limits…temporary flash files are rather large.

Hi linuxdev,
Thanks again for your help.

My Debian is a 64-bit machine and I have the same error on Ubuntu 16.04 in 64-bit.

simon@debian:~$ uname -a
Linux debian8 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

simon@ubuntu16-04:~$ uname -a
Linux salon 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I can try with a Ubuntu 14.04. I will install it on a other computer tonight.

[Edit: I forgot to say about wget. I have the right files. I try also “with the mouse” and I have the same size, etc. Also, when I extract the files, I have what I am supposed to have. (Linux_For_Tegra and the content of rootfs )

Perhaps the ia32 call is due to USB. The OOPS message seemed to say that USB had failed on host side. This doesn’t mean host side did not receive something from another USB device to interact with this, but the crash was from host kernel (even bad data from outside of the host should not do this).

Do you get an OOPS message from dmesg on more than one host during flash? Or just from that one host? If the issue is only from one host I would suspect that host’s hardware or drivers…if the issue hits more than one host (perhaps in an altered way, it doesn’t have to specifically be an OOPS) then I might be more inclined to point at the Jetson or USB cabling/HUB.

I didn’t see this problem with ia32 on the Ubuntu Host. I had this on the Debian Host.

I am installing a Ubuntu 14.04.5. I hope it will work better.

The call stack (and the use of the ia32 function) will be different in different kernel versions, different hardware versions, and different driver versions. What got my attention is that I associate ia32 with 32-bit. This may not be an issue at all, this could be completely unrelated, I don’t know (that function occurs in “arch/x86/ia32/ia32entry.S”, so perhaps it is a compatibility mode call for USB code working in 32-bit space…this would not be an error and other 64-bit code would work normally).

What is obvious is that something in the host kernel’s USB code crashed and burned, so I had to ask about 32-bit versus 64-bit. However, if you install Ubuntu 14.04 on 64-bit hardware, then you can be guaranteed that the host complies with every requirement…if Ubuntu 14.04 fails, then you will know it was due to something other than the environment on the host.

Okay… Same problem on Ubuntu 14.04. I don’t know what to do…

Did you get any USB messages or kernel messages on the host while doing the flash? Both before and after flash fails, on the host, what is the output of “lsusb -d 0955:”? This lists all nVidia USB devices…I’m wondering if USB itself is lost.

Also, is the micro-B USB connector going to the Jetson going to the host via a USB HUB? If a HUB, is there a chance you can try directly or with a different HUB? The issue does seem to revolve around USB.

Hi linuxdev,

I don’t use a USB HUB. You can verify in this picture and this other picture.

When I plug the board :

$ sudo lsusb 
Bus 002 Device 008: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

When I restart the board in “recovery mode” :

$ sudo lsusb 
Bus 002 Device 009: ID 0955:7740 NVidia Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

$ sudo lsusb -d 0955:
Bus 002 Device 009: ID 0955:7740 NVidia Corp.

I will try to flash the card and copy/paste the content of dmesg.

Hi Simon,

I’m from Percepto, and I’ll send you a recovery image and instructions on how to reset your board.
Burning it with L4T will not work because the board is quite different from the Jetson TK1.

It has the same processor, but it’s a custom board with different SDRAM, eMMC, etc…

Hi Mike_0b,

I understand better why it doesn’t work.

Where can I download the image and find the instructions ? :-)
I have a nextcloud instance (owncloud’s fork) for uploading, if you want.

I sent you a PM with my mail address.

Thank you!

Simon

I guess not being a Jetson could be an issue :P I should have realized this, but the Percepto web URL always times out here and never responds.

I should realized this too! The description on percepto.co is “Packing an NVIDIA® Tegra® K1 power efficient high-end processor, PerceptoCore is an extremely powerful linux computer that enables computer vision computations to be performed on the fly.”

It’s just the same processor… Sorry for your loss of time.

A big part of support forums are for figuring out what isn’t known…so just because the answer is unexpected (or obvious after having found the answer) does not define waste of time (the thread worked as intended). The unintended side effect is a smile!

:-)

Two smiles! Thank you again for your support.

Just for saying : My Percepto is working again.

Thanks Mike_0b !