I've been able to connect to the SAMA5D4 with SSH and SCP. This post describes the steps I took to get there.
They are a redo of what peteroakes shows in his SAMA5D4 Xplained Ultra - Tips and Tricks #1 - Getting Displays up and Running video,
mixed in with moral support and a nodge in the right direction from clem57.
I've blogged about my first steps with the kit, Review 1: Unboxing and First Steps.
The second review was on cross compilation on a Windows machine: Review 2: Building the Libraries from Source
My third article was to get the board connected to my network: Review 5: TCP/IP running
I downloaded and extracted linux4sam-poky-sama5d4_xplained_hdmi-4.6.
Then I plugged an USB cable in the USB A Device input.
I placed JP7 (BOOT_DIS) and plugged the board in one of my computer's USB connectors.
I opened the device manager and changed the driver for the device to the AT91 USB Serial . On my pc it comes up with a different driver bu default.
I removed JP7.
I edited demo_linux_nandflash_hdmi.bat to set my com port (\USBserial\COM27), and executed it.
I've attached the load log. Here's a summary:
-I- Waiting ... -I- TCL platform : Windows NT -I- SAM-BA 2.15 on : windows -I- current connection is \USBserial\COM27, \\USBserial\\COM27 to be matched -I- Retrieved arguments from command line : -I- argv 0 : \USBserial\COM27 -I- argv 1 : at91sama5d4x-ek -I- argv 2 : demo_linux_nandflash_hdmi.tcl -I- Connection \USBserial\COM27 -I- Connection : \USBserial\COM27 (target(comType) = 0) -I- Board : at91sama5d4x-ek -I- Traces Level : 4 -I- target(handle) : 50740032 -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_hdmi.tcl -I- === name before swith at91-sama5d4 === -I- === socName is at91-sama5d4 === -I- Chip variant is at91-sama5d4 -I- Board variant is _xplained_hdmi -I- === ecc before swith at91-sama5d4 === -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 the bootstrap in the first sector === Sending boot file done. -I- === Load the u-boot in the next sectors === -I- Send File u-boot-sama5d4_xplained_nandflash.bin at address 0x00040000 GENERIC::SendFile u-boot-sama5d4_xplained_nandflash.bin at address 0x40000 -I- File size : 0x4B7E8 byte(s) -I- Complete 0% -I- Writing: 0x40000 bytes at 0x40000 (buffer addr : 0x20024DF4) -I- 0x40000 bytes written by applet -I- Complete 84% -I- Writing: 0xB7E8 bytes at 0x80000 (buffer addr : 0x20024DF4) -I- 0xB7E8 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_hdmi.dtb at address 0x00180000 GENERIC::SendFile at91-sama5d4_xplained_hdmi.dtb at address 0x180000 -I- File size : 0x4648 byte(s) -I- Complete 0% -I- Writing: 0x4648 bytes at 0x180000 (buffer addr : 0x20024DF4) -I- 0x4648 bytes written by applet -I- Send File zImage-sama5d4 at address 0x00200000 GENERIC::SendFile zImage-sama5d4 at address 0x200000 -I- File size : 0x2CA7F8 byte(s) -I- Complete 0% ... -I- Complete 99% -I- Writing: 0x40000 bytes at 0xB740000 (buffer addr : 0x20024DF4) -I- 0x40000 bytes written by applet -I- Complete 99% -I- Writing: 0x40000 bytes at 0xB780000 (buffer addr : 0x20024DF4) -I- 0x40000 bytes written by applet -I- === DONE. ===
That's it. After rebooting I got this version info:
Linux version 3.10.0+ (josh@melon) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #1 Wed Nov 5 17:30:56 CST 2014
I can use Putty to SSH into linux, and WinSCP to transfer files.
You just have to accept the server signature the first time you log on, and you're done.
And that's it. Another step to getting executable code on the board.
I'll now focus on building a first C program ("Hello, world!") and test my cross-compile skills - my development pc is a Windows machine.