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
Atmel Xplained Boards
  • Products
  • Dev Tools
  • Atmel Xplained Boards
  • More
  • Cancel
Atmel Xplained Boards
Blog yocto sama5d4-xplained's image with Qt5, wayland, 3d, opengl ...
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Atmel Xplained Boards to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: rzr
  • Date Created: 8 May 2015 11:44 PM Date Created
  • Views 1455 views
  • Likes 3 likes
  • Comments 0 comments
  • qtwayland
  • sama5d4
  • 3d
  • yocto
  • mesa
  • gallium
  • opengl
  • dri
  • qt
  • wayland
  • sama
  • arm
  • atmel
  • tizen
Related
Recommended

yocto sama5d4-xplained's image with Qt5, wayland, 3d, opengl ...

rzr
rzr
8 May 2015

Note, I had in mind to write a longer tutorial but due to Miracast Sink for Tizen priority it was postponed. Anyway let me share some info to community who dare to port they favorite OS (Tizen?) to this platform.

 

 

WAYLAND AND OPENGL

First, there is no GPU on this board, but you can try to use a software opengl implementation of Mesa3d's gallium (swrast), don't expect lightspeed but at least you can display frames. Check this video demo of OpenGL support in wayland :

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

https://www.youtube-nocookie.com/embed/fWTCJd0i2Y0?list=PLzQ3SYrvd0O2eHEs_kgShUSpL33Ezqm4k#sama5d4-xplained-wayland-20150415rzr.mp4.mkv

 

 

QT5 : QTWAYLAND AND QML

Now let's see how behave Qt5 toolkit which can make use of virtual GPU for QML (declarative module) :

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

https://www.youtube-nocookie.com/embed/KejU2h9IkFY?list=PLzQ3SYrvd0O2eHEs_kgShUSpL33Ezqm4k#qtwayland-sama5d4-xplained-20150428rzr_mp4

 

As you can see Qt5's QtQuick-2 is using 3D rendering and performance is weak, but 2D rendering is smooth using QtQuick-1. The other and better option is to use QtQuick2DRenderer's available under certain Qt licenses. If curious I may bring and show the device at Qt Contributors' Summit in Olso on 2015-06-06, find me also to talk about Qt for Tizensince I know members' project do not plan to be there.

BUILDING

Anyway, all setup tricks are shared into my repo, and you can rebuild it all from scratch using yocto. To setup your hardware just do those operations : Plug your board on USB port, short jumper : BOOT_DIS, press reset button, open jumper and then run those command it should build and flash, once finished press reset again and ssh server is ready to let you in if you have no display connected to it :

  url="https://github.com/rzr/meta-sama5d4-xplained"
  branch="dizzy"
  basename=$(basename -- "$url")
  git clone "$url" -b "$branch" && make demo V=1 -C "${basename}"

It worked for me on dizzy branch (2015-04-29), since atmel released new version after I started this project, I'll tag a version, so double check is welcome.

 

HARDWARE PLATFORM

We mostly talked about graphics today, but this board has lot of I/O capabilities, to illustrate this watch previous demo made for  Maison mix event in Rennes France (thank you JBM and DB from fablabfr), we'll may talk about this again later.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

https://www.youtube-nocookie.com/embed/nf5YiHHTgfM?list=PLzQ3SYrvd0O2eHEs_kgShUSpL33Ezqm4k#iotivity-atmel-20150328rzr.mp4.mkv

 

Now I have one question, do you know if there are power issue with 5v pin or USB ? I am asking because I fear mine is not working anymore...  I need to investigate more on that this in annoying for using this atmel board as an/IoT SmartHome platform. Hope this is useful , now if you have any project related to this platform don't hesitate to contact us for sharing the effort, since we enjoyed working with it.

 

RESOURCES :

Before leaving here are some random resources to look for

  • http://www.at91.com/linux4sam/bin/view/Linux4SAM/
  • http://elinux.org/Atmel
  • http://www.atmel.com/Images/Atmel-44005-32-bit-Cortex-A5-Microcontroller-SAMA5D4-Xplained-Ultra_User-Guide.pdf
  • https://wiki.qt.io/QtWayland
  • http://www.mesa3d.org/systems.html

 

Source: https://dockr.eurogiciel.fr/blogs/embedded/qtwayland-sama5d4-xplained/

Keywords: mesa, qtwayland, opengl, gl, qml, arm, atmel

Copyleft: CC-BY-SA ~pcl

How to build your Qt5, wayland, 3d, opengl image for sama5d4-xplained using yocto

  • 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