Assuming you have started with Yocto and Wandboard (see Getting_started_with_Yocto_on_Wandboard if not)..
In my pretty standard Yocto build I have the openssh included. Its configuration file, /etc/ssh/sshdconfig, should naturally be different for production and development images (for example one would like root login on development image and not on production one).The production and the development images are different recipes (.bb files) in recipes-core/images under my layer, which includes. WolfSSL maintains a Yocto and OpenEmbedded (OE) layer including recipes for wolfSSL products (wolfSSL, wolfSSH, wolfMQTT, wolfTPM), examples, and support for building other Open Source recipes with wolfSSL support. This layer is named “ meta-wolfssl ”, and is available on GitHub.
These instructions where tested with Yocto Dizzy
- 5Cross compile Qt5 for QtCreator
Clone meta-qt5
Grab the latest stable meta-qt5 inside the yocto/sources directory:
Be sure to clone the same branch for meta-qt5 as you are using for the other layers! (here we are using dizzy, so replace 'dizzy' with your preferred branch.)
Yocto Openssh-sftp-server
Edit your yocto configuration files
1. Edit yocto/build/conf/bblayers.conf to add the meta-qt5 layer at the end:
2. Edit yocto/build/conf/local.conf and add:
We include ssh-server-openssh in EXTRA_IMAGE_FEATURES and the openssh-sftp-server in IMAGE_INSTALL_append for rapid deploying using QtCreator
- Note: qtquickcontrols-qmlplugins fails in master branch
If you plan on using the 'core-image-minimal' image, then you must add 'dbus' to the IMAGE_INSTALL_append list.
If you plan to use Qt5 eglfs plugin for accelerated graphics using the framebuffer, you need to discard X11 and wayland so the proper graphics drivers get included:
- The Wandboard Linux Kernel 3.10.17 comes configured with 24 bit depth for HDMI and LCD displays in the device tree. If you experience problems running Qt5 applications with the eglfs platform, change the bit depth to 32 bits in your own kernel fork or use the fbset (fbset [w] [h] [w] [h] 32) BEFORE running any egl application.
Bitbake!
Bitbake an image like core-image-minimal (you need to be in your yocto/build directory):
Note: If bitbake fails with an error regarding cmake or drm recipes, locate their directories, delete them and try again.
Test your image
Boot your image and test your Qt5 installation with the CinematicExperience (these parameters if using eglfs and a touchscreen):
Cross compile Qt5 for QtCreator
It is now very easy to build an environment for cross compilation using QtCreator. Visual studio code cheat sheet mac. Version 1.7 in paths refers to Yocto Dizzy branch, if you are using different branch please use corresponding paths.
bitbake a meta-toolchain-qt5
Bitbake a poky toolchain (you need to be in your yocto/build directory):
Install your new toolchain
Run the new installer that has been generated in yocto/build/tmp/deploy/sdk
This will install a cross compiler and its needed environment including the Qt5 arm libraries.
Configure Qt creator
![Yocto openssh password Yocto openssh password](/uploads/1/3/7/4/137408096/489291116.jpg)
Run qtcreator from the terminal after running the setup environment script located in /opt/poky/1.7
In QtCreator go to Tools > Options > Devices and add your Wandboard as a generic linux device.
go to Tools > Options > Build & Run and:
- Add a new compiler. Select your poky compiler: /opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-cpp
- Add your new cross compiled Qt version by selecting the qmake located in /opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/qt5
- Add a new kit selecting your new Qt5 version and compiler and setting the sysroot to /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi and leave the Qt mkspec empty. Finally select your wandboard for the device.
Yocto Openssh
Retrieved from 'http://wiki.wandboard.org/index.php?title=Building_Qt5_using_yocto_on_Wandboard&oldid=6'