element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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 4331 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…
Parents
  • 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
  • Jan Cumps
    Jan Cumps over 10 years ago in reply to Former Member

    JokerZ, if you create a blog with the steps, I'll link to it at the top of this thread.

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

    downloading it now, i will try as soon as I can

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

    Thank you for the help, I think we all have been working on trying to get this up and running. It is great that our group works together like this and share knowledge. Well done!!!

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

    I think I am close to using the HDMI under various distros. The key as Ralph JokerZ said, it is a frame buffer and not a TTY. There are demos using QT and I am looking inside for clues.

    Clem

    PS I am using what you sent in dropbox. Looking at the framebuffer and trying to send TTYS1 to it.

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

    Yeah Ralph. :-)

    I actually got kde to load up (well KDM I think it was) and got it to display, but I did have some keyboard and mouse issues.

    I might revisit it this week now that i have a few new microSD cards. I can run the OS in various states across a few different cards and see what works as far as

    the display goes.  It's definitely a nice board to work with, especially with Ubuntu on it.

    I got mono running on it yesterday. Compiled a C# app and then transferred the program over to a Windows machine and had it successfully execute.

    For me, having a tool chain on the device I am working with is just awesome. GCC installs perfectly after I 'Ubuntu'ed' the machine.

     

    Did anyone try the image I made over the weekend?

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

    To send TTYS1 output to /dev/fb0 it is going to require some work.

    It's not a simple matter as a redirection, as you need to manually build the 'image' that gets sent to the frame buffer.

     

    This of course could be done, but would require some intermediary software in between.

     

    Try this from the unix shell cat /dev/urandom > /dev/fb0

    You should get a lovely coloured display on the HDMI output.

    You will need to be using an OS install where the framebuffer is enabled and I found to make

    it work I had to reset the HDMI, usually by unplugging and plugging the cable back in again.

     

    I was going to investigate some of those software libraries I have seen around which control bit mapped

    LCD's. They might hold some ideas about how to address the FB via graphics libraries. Most of them revolve around

    I2C or 4/8 bit data transfers vs writing data to /dev/fb0  but again could be handy for clues as to how to solve the issue

    of displaying material.

     

    I don't actually need the HDMI for my project, but its kind of fun to drill into how the board works and what I can make it do. image

     

    Rob

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

    Here is my fbset:

    ubuntu@arm:~$ fbset -i

     

     

    mode "1024x768"

        geometry 1024 768 1024 768 24

        timings 0 0 0 0 0 0 0

        accel true

        rgba 8/16,8/8,8/0,0/0

    endmode

     

     

    Frame buffer device information:

        Name        :

        Address     : 0x3e900000

        Size        : 2359296

        Type        : PACKED PIXELS

        Visual      : TRUECOLOR

        XPanStep    : 1

        YPanStep    : 1

        YWrapStep   : 0

        LineLength  : 3072

        Accelerator : No

     

    I get Mode not support on display. Can I change this to ??? to avoid the problem?

    Thanks,

    Clem

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

    I've updated the first post with your blog.

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

    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 weekend!

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to Former Member

    So mine is now printing unreadable text ONLY in the area where the prompt telling me the user name and password, the rest prints perfectly... go figure, and to make things worse I cant remember the loging name or password... Please can you enlighten me

     

    I had spent hours loading GNOME and TIGHTVNCSERVER just to find it is not enough for a remote graphical console but now I cant log in again either without the UNAME and PWD


    Thanks

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

    So mine is now printing unreadable text ONLY in the area where the prompt telling me the user name and password, the rest prints perfectly... go figure, and to make things worse I cant remember the loging name or password... Please can you enlighten me

     

    I had spent hours loading GNOME and TIGHTVNCSERVER just to find it is not enough for a remote graphical console but now I cant log in again either without the UNAME and PWD


    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • clem57
    clem57 over 10 years ago in reply to Robert Peter Oakes

    Name: ubuntu

    Pwd: temppwd

    Clem

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

    Hi Peter,

     

    Was the corruption in the console (via serial port)

    or was the corruption on the LCD? ie. was it treating the LCD as a console?

     

    I did have a problem once where I managed to corrupt the SD card while I was experimenting

    with the OS builds. I probably popped it in and out once too many times without running

    the sync command first.  What it did was corrupt my keyboard so I could no longer type properly.. image

     

    Regards

    Rob

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

    I keep trying to reply via email and its still busted, so you wont have seen my responses

     

    I resolved it by re-loading the SD card. It was only the part at the login prompt where it shows the user name and password, the rest was ok

     

    I am currently trying to get beta MONO 4.0.0 up and running for forms apps, and also some kind of Xserver, no luck so far

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

    Hi Peter,

    be interesting to see where the mono 4.0 is failing, is it during the build process?

    I assume that it being alpha/beta you have to make it yourself. image

     

    I am about to go on two weeks holiday, so won't be able to try anything with the board.

    Happy to give the mono build a shot when I get back though.

     

    For X, I got a lot of blank screen greeting me whenever I tried to start it.

    I got closer with KDE where I had an actual login prompt on the hdmi screen, but had

    trouble after that.  It may have been due to all the messing around I did with settings. So I'll be giving it another

    go when I return with a clean setup to see just how far I can get.

    • Cancel
    • Vote Up 0 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