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
Forum Enchanted Objects: Let's work together to tame the ATMEL SMART SAMA5D4 Xplained Ultra kit
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 40 replies
  • Subscribers 10 subscribers
  • Views 4175 views
  • Users 0 members are here
  • atmel_sama5d4
  • enchanted_objects
Related

Enchanted Objects: Let's work together to tame the ATMEL SMART SAMA5D4 Xplained Ultra kit

Jan Cumps
Jan Cumps over 10 years ago

Pinging my fellow enchanted_objects participants

Workshopshed, Jan Cumps, kidiccurus, RParkerE, amgalbu, tanah, christiann22, JokerZ, nikil511, Robert Peter Oakes, iayanpahwa, coolbox, crjeder, doca, dwinhold

to work together on getting us to the point where we can build and run code for the The specified item was not found. SMART SAMA5D4 Xplained Ultra .

 

This board is rather tough to crack. It would be great if we could all share the small steps that work here.

If you get one step further than anyone else, let's document our progress here.

It would be great to document it in reproducible steps.

 

I tried to create a Document, but that's not available in this section of the element14 website. So it's a Discussion.

 

Loading images, binaries and Pre-compiled Demos

Robert Peter Oakes has created a step by step guide to load binaries to the board using SAM-BA.

The embedded video is easy to following along step-by-step.

SAMA5D4 Xplained Ultra - Tips and Tricks #1 - Getting Displays up and Running

SAMA5D4 Xplained Ultra - Tips and Tricks #2 - Using the built in IO and external devices

 

JokerZ compiled an Ubuntu 14.x; including the toolchain and a mesage queue service loaded to the board.

The image he created is available from his blog post:

SAMA5D4 and my Ubuntu experience. Blog Post #2 - A place in the cloud

 

Jan Cumps documentation on getting TCP/IP, SSH and SCP running using Robert Peter Oakes' technique:

Review 5: Atmel SMART SAMA5D4 Xplained Ultra - TCP/IP running

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

 

Jan Cumps documentation on transfering files to the linux distro over the USB port (for those cases where your board isn't connected to the network):

Sending Files to SAMA5D4 over USB


 

 

Tool Chain

JokerZ compiled an Ubuntu 14.x; and loaded the toolchain on the board itself using apt-get.

SAMA5D4 and my Ubuntu experience. Blog Post #2 - A place in the cloud

 

Jan Cumps installed a tool chain that compiles the bare metal libraries from SAMA5D4 Software Package.

Review 2: Atmel SMART SAMA5D4 Xplained Ultra - Building the Libraries from Source

 

Jan Cumps cross-compiled a C++ program from source and executed it on linux:

Run my own C++ Program on the SAMA5D4



 

TODO
  • Build, Load and Run any example  from source
  • Build, Load and Run an OS from source
  • Make an example that talks to the peripherals (IO, ADC, protocols)
  • Install a software package
  • Debug your application
  • Whatever we come up with during the challenge
  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago in reply to Jan Cumps +6
    I am not sure that distro with HDMI opens up the display as much as we'd like it to. I was able to print random garbage to the HDMI screen today, but my attempts at loading graphics of any type weren't…
  • Former Member
    Former Member over 10 years ago +5
    Just a really quick note here as it is after 2:30am I finally managed to get the SAMA5D4 to boot with an ubuntu kernel :-) Version is 14.04 This includes a base ubuntu root file structure and I am currently…
  • Former Member
    Former Member over 10 years ago in reply to Jan Cumps +3
    Thanks for the updates to the thread Jan. I really want to get around to making a youtube video showing the boot process. It's cool to see it all happen, hopefully I'll get it done tomorrow or over the…
  • crjeder
    crjeder over 10 years ago

    Great idea. I am in.

    I want to try network booting with the rootfs on a NFS server. I let you know if and how it works.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago

    I don't know if I'll have the time to help with this, since I almost have no time for the project itself and it doesn't involve the board. Sorry image

     

    However, if I manage to do something new with it, I'll post it right away.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago

    Jan, a good suggestion but like @tanah I was never planning to include that board in my project. I am including the Yun and hope to have my first piece on getting going with that next week.

    Cheers

    Andy

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago

    Just a really quick note here as it is after 2:30am

     

    I finally managed to get the SAMA5D4 to boot with an ubuntu kernel :-)  Version is 14.04

     

    This includes a base ubuntu root file structure and I am currently running apt-get update.

    Ok that worked and it updated its core files.

     

    Just trying a sudo apt-get install ruby

    and it also appears to be working.. finally. :-)

     

    What I will try and do tomorrow, is make an image of the SD card and make it available for download.

    I'll also compile some notes on exactly what I did to get it functional.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to Former Member

    Great news!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kidiccurus
    kidiccurus over 10 years ago in reply to Jan Cumps

    I got a the built in Ubuntu running quite a while back with the help of a more software minded helper, but it was just after the start of the test so I don't remember most of the steps. I got to the point where I could access the command line via a serial terminal on my PC. Does anybody know how to get a GUI running on this thing via the HDMI, or even if it is possible to do this? As I am not using it for my project, so I have not given much time to it after the initial setup, but it is an interesting sub project. Heck, it might even replace one of my older PCs (a pentium 4 unit with 512 Meg of ram is definitely near the end of its life). A GUI would also make it an interesting candidate for wearable computing. It may be larger than a raspberry pi, but the better CPU should offset the extra size.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to kidiccurus

    The built in unix on the SAMA5D4 Xplained s not quite the same thing as Ubuntu. It's the Yocto release and it is really a very vanilla flavoured unix implementation designed to power up an embedded SBC. You would probably have a great deal of trouble trying to address it directly and use it to implement a solution.

    It has no precompiled package management support (well it does actually have something but it seems to have already installed all 350ish packages it knows) that I could find which immediately restricts it's usefulness.

     

    Sure you can hop on and gain access to the device via the serial port, but thats about its limitation as far as application build goes. It does have a neat web server on it, so you could use it for that.

    But if you want to add any other functionality you can't easily build it, as the OS doesn't contain the toolchain you need and there seems to be no way to get it onto the device, other than use dev tools on a separate platform and then uploading it to the SAMA5D4.

     

    By creating an Ubuntu boot disk for it, we can bypass Yocto and use an operating system that most of us are more familiar with (due to Pi and the familiarity most of us have with Ubuntu & Debian). It allows the installation of all these

    tools we are lacking and will boost our productivity.

     

    I did notice that there was a HDMI dts. I haven't tried loading it yet, but soon.

    I want to see if it will give me a terminal/console type HDMI output. I am guessing not, but I'll find out later today.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • kidiccurus
    kidiccurus over 10 years ago in reply to Former Member

    Sorry, it was the Unix, it was quite late when. I posted and I was very tired. I did spend a little while trying to upload new firmware, but I had some issues getting it to run properly and eventually gave up.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to kidiccurus

    We've got a distro running at the moment that supports SSH for terminal access, HTTP server and SCP for file transfer.

    I'll try to wrap up the details, but in essence it's the HTMI distro that Robert Peter Oakes describes in his video from SAMA5D4 Xplained Ultra - Tips and Tricks #1 - Getting Displays up and Running

     

    I think that with these protocools up and running, and the cross-compilation chain working, we'll be able to build programs, load them to the linux distro and execute them on the board.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Jan Cumps

    I am not sure that distro with HDMI opens up the display as much as we'd like it to.

    I was able to print random garbage to the HDMI screen today, but my attempts at loading graphics of any type

    weren't a success.  I drilled in further and tried both xwindows and kde and had some limited success.

    I actually got the OS to display visually but then ran into trouble where my keyboard and mouse were non

    responsive.  Either I am not running enough power through the board (I am just leeching off my USB port in my laptop).

    Or there are some config elements I was missing, nothing I did though would make it recognize and react to the mouse or keyboard

    in KDE.

     

    Getting it to act as a console display was a non event.

    It's basically a frame buffer, so it wants to be addressed as a framebuffer and not as a TTY or virtual TTY device.

    Which makes me sad.

     

    I did manage to install a native GCC toolchain onto the board and was able to do some coding there.

    Right now I am writing out an image file of my 8Gb Ubuntu 14.04.1 LTD for Sama5d4.

     

    Once I figure out where to upload it, I'll post a link. Zipped its about 195Mb. It's an image for an 8Gb microSD card, I've got a 16Gb one

    here as well in case anyone is interested. Ok the upload is done for the 8Gb image.

     

    You can grab the zip file from dropbox.

    Burn the image to your microSD card using Windows Image Writer or similar.

    Once you boot it up, you can see the default login name and password.

    Once into the shell you should  sudo apt-get update

     

    After that you are pretty much free to install your favourite tools.

    try sudo apt-get install htop

     

    It's a nicer version of top. :-)

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Cancel
>
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