-I- Waiting ...
-I- TCL platform : Windows NT
-I- SAM-BA 2.16  on : windows
-I- current connection is \USBserial\COM61, \\USBserial\\COM61 to be matched 
-I- Retrieved arguments from command line :
-I- argv 0 : \USBserial\COM61
-I- argv 1 : at91sama5d4x-ek
-I- argv 2 : demo_linux_nandflash.tcl
-I- Connection \USBserial\COM61
-I- Connection : \USBserial\COM61 (target(comType) = 0)
-I- Board : at91sama5d4x-ek
-I- Traces Level : 4
-I- target(handle) : 76559304
-I- sourcing board description file C:/Program Files (x86)/Atmel/sam-ba_2.16/sam-ba.exe/../tcl_lib/at91sama5d4x-ek/at91sama5d4x-ek.tcl
Read device Chip ID at 0xFC069040 --- get 0x8a5c07c0
-I- Found chip : at91sama5d4x_0 (Chip ID : 0x8a5c07c0)
-I- Loading applet applet-lowlevelinit-sama5d4x.bin at address 0x200000
-I- Memory Size : 0x0 bytes
-I- Buffer address : 0x4
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- Low level initialized
-I- Loading applet applet-extram-sama5d4x.bin at address 0x200000
-I- Memory Size : 0x20000000 bytes
-I- Buffer address : 0x20136C
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- External RAM initialized
-I- Command line mode : Execute script file : demo_linux_nandflash.tcl
-I- === Board Family is sama5d4_xplained ===
-I- === Chip variant is sama5d42 ===
-I- === eccType is 0xc0902405 ===
-I- === Initialize the NAND access ===
-I- NANDFLASH::Init (trace level : 4)
-I- Loading applet applet-nandflash-sama5d4x.bin at address 0x20000000
-I- Memory Size : 0x8000000 bytes
-I- Buffer address : 0x20024D74
-I- Buffer size: 0x20000 bytes
-I- Applet initialization done
-I- === Enable PMECC OS Parameters ===
   - HEADER value  is 0xC0902405
-I- Pmecc header configration successful
-I- PMECC configure c0902405
-I- === Erase all the NAND flash blocs and test the erasing ===
-I- GENERIC::EraseAll
-I- === Load AT91Bootstrap in the first sector ===
Sending boot file done.
-I- === Load u-boot in the next sectors ===
-I- Send File u-boot.bin at address 0x00040000
GENERIC::SendFile u-boot.bin at address 0x40000
-I- File size : 0x52F24 byte(s)
-I- Complete 0%
-I- 	Writing: 0x20000 bytes at 0x40000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 38%
-I- 	Writing: 0x20000 bytes at 0x60000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 77%
-I- 	Writing: 0x12F24 bytes at 0x80000 (buffer addr : 0x20024D74)
-I- 	0x12F24 bytes written by applet
-I- === Load the u-boot environment variables ===
-I- Send File ubootEnvtFileNandFlash.bin at address 0x000c0000
GENERIC::SendFile ubootEnvtFileNandFlash.bin at address 0xC0000
-I- File size : 0x20000 byte(s)
-I- Complete 0%
-I- 	Writing: 0x20000 bytes at 0xC0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- === Load the Kernel image and device tree database ===
-I- Send File at91-sama5d4_xplained.dtb at address 0x00180000
GENERIC::SendFile at91-sama5d4_xplained.dtb at address 0x180000
-I- File size : 0x7EBC byte(s)
-I- Complete 0%
-I- 	Writing: 0x7EBC bytes at 0x180000 (buffer addr : 0x20024D74)
-I- 	0x7EBC bytes written by applet
-I- Send File zImage at address 0x00200000
GENERIC::SendFile zImage at address 0x200000
-I- File size : 0x3A4D80 byte(s)
-I- Complete 0%
-I- 	Writing: 0x20000 bytes at 0x200000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x20000 bytes at 0x220000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x20000 bytes at 0x240000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 10%
-I- 	Writing: 0x20000 bytes at 0x260000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 13%
-I- 	Writing: 0x20000 bytes at 0x280000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 17%
-I- 	Writing: 0x20000 bytes at 0x2A0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 20%
-I- 	Writing: 0x20000 bytes at 0x2C0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 24%
-I- 	Writing: 0x20000 bytes at 0x2E0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 27%
-I- 	Writing: 0x20000 bytes at 0x300000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 30%
-I- 	Writing: 0x20000 bytes at 0x320000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 34%
-I- 	Writing: 0x20000 bytes at 0x340000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 37%
-I- 	Writing: 0x20000 bytes at 0x360000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 41%
-I- 	Writing: 0x20000 bytes at 0x380000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 44%
-I- 	Writing: 0x20000 bytes at 0x3A0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 48%
-I- 	Writing: 0x20000 bytes at 0x3C0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 51%
-I- 	Writing: 0x20000 bytes at 0x3E0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 54%
-I- 	Writing: 0x20000 bytes at 0x400000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 58%
-I- 	Writing: 0x20000 bytes at 0x420000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 61%
-I- 	Writing: 0x20000 bytes at 0x440000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 65%
-I- 	Writing: 0x20000 bytes at 0x460000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 68%
-I- 	Writing: 0x20000 bytes at 0x480000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 72%
-I- 	Writing: 0x20000 bytes at 0x4A0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 75%
-I- 	Writing: 0x20000 bytes at 0x4C0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 78%
-I- 	Writing: 0x20000 bytes at 0x4E0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 82%
-I- 	Writing: 0x20000 bytes at 0x500000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 85%
-I- 	Writing: 0x20000 bytes at 0x520000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 89%
-I- 	Writing: 0x20000 bytes at 0x540000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 92%
-I- 	Writing: 0x20000 bytes at 0x560000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 96%
-I- 	Writing: 0x20000 bytes at 0x580000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 99%
-I- 	Writing: 0x4D80 bytes at 0x5A0000 (buffer addr : 0x20024D74)
-I- 	0x4D80 bytes written by applet
-I- === Enable trimffs ===
-I- === Load the linux file system ===
-I- Send File rootfs.ubi at address 0x00800000
GENERIC::SendFile rootfs.ubi at address 0x800000
-I- File size : 0x360000 byte(s)
-I- Complete 0%
-I- 	Writing: 0x20000 bytes at 0x800000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x20000 bytes at 0x820000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 7%
-I- 	Writing: 0x20000 bytes at 0x840000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 11%
-I- 	Writing: 0x20000 bytes at 0x860000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 14%
-I- 	Writing: 0x20000 bytes at 0x880000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 18%
-I- 	Writing: 0x20000 bytes at 0x8A0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 22%
-I- 	Writing: 0x20000 bytes at 0x8C0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 25%
-I- 	Writing: 0x20000 bytes at 0x8E0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 29%
-I- 	Writing: 0x20000 bytes at 0x900000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 33%
-I- 	Writing: 0x20000 bytes at 0x920000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 37%
-I- 	Writing: 0x20000 bytes at 0x940000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 40%
-I- 	Writing: 0x20000 bytes at 0x960000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 44%
-I- 	Writing: 0x20000 bytes at 0x980000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 48%
-I- 	Writing: 0x20000 bytes at 0x9A0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 51%
-I- 	Writing: 0x20000 bytes at 0x9C0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 55%
-I- 	Writing: 0x20000 bytes at 0x9E0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 59%
-I- 	Writing: 0x20000 bytes at 0xA00000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 62%
-I- 	Writing: 0x20000 bytes at 0xA20000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 66%
-I- 	Writing: 0x20000 bytes at 0xA40000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 70%
-I- 	Writing: 0x20000 bytes at 0xA60000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 74%
-I- 	Writing: 0x20000 bytes at 0xA80000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 77%
-I- 	Writing: 0x20000 bytes at 0xAA0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 81%
-I- 	Writing: 0x20000 bytes at 0xAC0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 85%
-I- 	Writing: 0x20000 bytes at 0xAE0000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 88%
-I- 	Writing: 0x20000 bytes at 0xB00000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 92%
-I- 	Writing: 0x20000 bytes at 0xB20000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- Complete 96%
-I- 	Writing: 0x20000 bytes at 0xB40000 (buffer addr : 0x20024D74)
-I- 	0x20000 bytes written by applet
-I- === DONE. ===
