element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog Review 6: Atmel SMART SAMA5D4 Xplained Ultra - LINUX Distro with SSH support
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 12 Apr 2015 6:52 PM Date Created
  • Views 715 views
  • Likes 3 likes
  • Comments 0 comments
  • sama5d4
  • enchanted_player
  • enchanted_objects
  • putty
  • ssh
  • winscp
  • telnet
  • scp
  • xplained_ultra
  • atmel
Related
Recommended

Review 6: Atmel SMART SAMA5D4 Xplained Ultra - LINUX Distro with SSH support

Jan Cumps
Jan Cumps
12 Apr 2015

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 Robert Peter Oakes 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

 

 

image

 

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.

 

image

 

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.

Attachments:
logfile.log.zip
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube