How to program SAMA5D4 Xplained Ultra Nandflash

Moderator: nferre

zhxianbin
Posts: 1
Joined: Mon Aug 17, 2015 2:14 pm

How to program SAMA5D4 Xplained Ultra Nandflash

Mon Aug 17, 2015 2:42 pm

I have a SAMA5D4 Xplained Ultra board, When I received it, Linux cann't startup, so I decided to program it

I do it according to the following page:
linux4sam/bin/view/Linux4SAM/Sama5d4XplainedMainPage

After completed, I restart the board, there is nothing from the com port and the blue LED blinking

Logfile

Code: Select all

-I- Waiting ...
-I- TCL platform : Windows NT
-I- SAM-BA 2.15  on : windows
-I- current connection is \usb\ARM0, \\usb\\ARM0 to be matched 
-I- Retrieved arguments from command line :
-I- argv 0 : \usb\ARM0
-I- argv 1 : at91sama5d4x-ek
-I- argv 2 : demo_linux_nandflash.tcl
-I- Connection \usb\ARM0
-I- Connect index 0 in connection list
-I- Connecting with \USBserial\COM6
-I- Connection : \USBserial\COM6 (target(comType) = 0)
-I- Board : at91sama5d4x-ek
-I- Traces Level : 4
-I- target(handle) : 49284032
-I- sourcing board description file C:/Program Files (x86)/Atmel/sam-ba_2.15/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- External RAM Settings :  extRamVdd=0, extRamType=1, extRamDataBusWidth=16, extDDRamModel=1
-I- Loading applet applet-extram-sama5d4x.bin at address 0x200000
-I- Memory Size : 0x20000000 bytes
-I- Buffer address : 0x200A00
-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 sama5d44 ===
-I- === eccType is 0xc1e04e07 ===
-I- === Initialize the NAND access ===
-I- NANDFLASH::Init (trace level : 4)
-I- Loading applet applet-nandflash-sama5d4x.bin at address 0x20000000
-I- Memory Size : 0x20000000 bytes
-I- Buffer address : 0x20024DF4
-I- Buffer size: 0x40000 bytes
-I- Applet initialization done
-I- === Enable PMECC OS Parameters ===
   - HEADER value  is 0xC1E04E07
-I- Pmecc header configration successful
-I- PMECC configure c1e04e07
-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-sama5d4-xplained.bin at address 0x00040000
GENERIC::SendFile u-boot-sama5d4-xplained.bin at address 0x40000
-I- File size : 0x4DA30 byte(s)
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 82%
-I- 	Writing: 0xDA30 bytes at 0x80000 (buffer addr : 0x20024DF4)
-I- 	0xDA30 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 : 0x20024DF4)
-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 : 0x7433 byte(s)
-I- Complete 0%
-I- 	Writing: 0x7433 bytes at 0x180000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Send File zImage-sama5d4-xplained.bin at address 0x00200000
GENERIC::SendFile zImage-sama5d4-xplained.bin at address 0x200000
-I- File size : 0x364388 byte(s)
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x200000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 7%
-I- 	Writing: 0x40000 bytes at 0x240000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 14%
-I- 	Writing: 0x40000 bytes at 0x280000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 22%
-I- 	Writing: 0x40000 bytes at 0x2C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 29%
-I- 	Writing: 0x40000 bytes at 0x300000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 36%
-I- 	Writing: 0x40000 bytes at 0x340000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 44%
-I- 	Writing: 0x40000 bytes at 0x380000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 51%
-I- 	Writing: 0x40000 bytes at 0x3C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 58%
-I- 	Writing: 0x40000 bytes at 0x400000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 66%
-I- 	Writing: 0x40000 bytes at 0x440000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 73%
-I- 	Writing: 0x40000 bytes at 0x480000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 81%
-I- 	Writing: 0x40000 bytes at 0x4C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 88%
-I- 	Writing: 0x40000 bytes at 0x500000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 95%
-I- 	Writing: 0x24388 bytes at 0x540000 (buffer addr : 0x20024DF4)
-I- 	0x24388 bytes written by applet
-I- === Enable trimffs ===
-I- === Load the linux file system ===
-I- Send File atmel-qt5-demo-image-sama5d4-xplained.ubi at address 0x00800000
GENERIC::SendFile atmel-qt5-demo-image-sama5d4-xplained.ubi at address 0x800000
-I- File size : 0xC380000 byte(s)
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x800000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x840000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x880000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x8C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x900000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x940000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x980000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 0%
-I- 	Writing: 0x40000 bytes at 0x9C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xA00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xA40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xA80000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xAC0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xB00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xB40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xB80000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 1%
-I- 	Writing: 0x40000 bytes at 0xBC0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xC00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xC40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xC80000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xCC0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xD00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xD40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xD80000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 2%
-I- 	Writing: 0x40000 bytes at 0xDC0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xE00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xE40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xE80000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xEC0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xF00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xF40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xF80000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 3%
-I- 	Writing: 0x40000 bytes at 0xFC0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x1000000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x1040000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x1080000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x10C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x1100000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x1140000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x1180000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 4%
-I- 	Writing: 0x40000 bytes at 0x11C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x1200000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x1240000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x1280000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x12C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x1300000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x1340000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 5%
-I- 	Writing: 0x40000 bytes at 0x1380000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x40000 bytes at 0x13C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x40000 bytes at 0x1400000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x40000 bytes at 0x1440000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x40000 bytes at 0x1480000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x40000 bytes at 0x14C0000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
-I- 	Writing: 0x40000 bytes at 0x1500000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 6%
......
-I- Complete 99%
-I- 	Writing: 0x40000 bytes at 0xCB00000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- Complete 99%
-I- 	Writing: 0x40000 bytes at 0xCB40000 (buffer addr : 0x20024DF4)
-I- 	0x40000 bytes written by applet
-I- === DONE. ===
blue_z
Location: USA
Posts: 1943
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to program SAMA5D4 Xplained Ultra Nandflash

Tue Aug 18, 2015 8:45 pm

zhxianbin wrote:When I received it, Linux cann't startup, so I decided to program it
...
After completed, I restart the board, there is nothing from the com port and the blue LED blinking
The log of the firmware install looks normal and successful.
There does not appear to be any issue with "how to program SAMA5D4 Xplained Ultra Nandflash", and you haven't provided any evidence that the board is not functioning properly.
The issue is most likely to be that you don't have a proper connection to the console.

Since you haven't provided any other details, I have to assume that is just part of what you're doing wrong.

Regards

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 2 guests