Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:arm:tqma8xx:linux:yocto:how_to [2019/10/21 17:41] – Added sections SSH and Qt Creator liedmannen:arm:tqma8xx:linux:yocto:how_to [2022/08/04 15:02] – external edit 127.0.0.1
Line 1: Line 1:
-~~NOCACHE~~+ ~~NOCACHE~~
 ~~NOTOC~~ ~~NOTOC~~
-<WRAP round important>WORK IN PROGRESS</WRAP>   +<embed en:templates:tabs_yocto_bootstrap>
-<embed en:templates:tabs_yocto>+
   <label product_type>Embedded module</label>   <label product_type>Embedded module</label>
   <label lang>en</label>   <label lang>en</label>
Line 16: Line 15:
 \\ \\
  
 +<nav type="tabs" justified="true">
 +  * [[.:how_to:target|Target]]
 +  * [[.:how_to:development_host|Development Host]]
 +  * [[.how_to:yocto_build_system|Yocto Build System]]
 +</nav>
  
  
-===== SSH connection on STKa8Xx ===== 
  
-<WRAP round important>Please keep in mind that the following instructions focus on simplicity, not on security.</WRAP>  
- 
-<WRAP round info>For the sake of simplicity password authentification can be used for SSH.</WRAP> 
- 
-=== Setup Yocto build environment === 
- 
-The OpenSSH sftp server is not installed into the image by default, add the following to your local.conf to install it. 
- 
-<code>IMAGE_INSTALL_append = “openssh-sftp-server”</code> 
- 
- 
-=== Setup on Target === 
- 
-To setup a password for the default user root,  
-execute the command **passwd root** and set your password. 
- 
-=== Modify SSH configuration === 
- 
-Uncomment the following options in **/etc/ssh/sshd_config** to allow that the user root can authenticate  
-with a password on the STKa8Xx. 
- 
-<code>PermitRootLogin yes 
-PasswordAuthentication yes 
-</code> 
- 
-===== Setup Qt Creator with Yocto build environment ===== 
- 
-==== Building Yocto SDK ==== 
- 
-Building the toolchain requires a Yocto build environment configured for meta-tq or ci-meta-tq  
-The setup of the build environment is described on the corresponding Yocto quickstart of the module.  
- 
-<WRAP round important> The meta-qt5 Yocto layer has to be added to the Yocto build environment when using meta-tq</WRAP>  
- 
-After the Yocto build environment the SDK can be built by the following command: 
-<code>bitbake meta-toolchain-qt5</code> 
-\\   
-<WRAP round info>Building meta-toolchain-qt5 may take several hours, depending on your hardware configuration</WRAP> 
- 
- 
- 
-==== Installing Yocto SDK ==== 
- 
-After building meta-toolchain-qt5 the SDK file is located in the following path of the build directory **tmp/deploy/sdk/fsl-imx-wayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh**   
- 
-Execute the *sh file to install the SDK, the default path is set to **/opt/fsl-imx-wayland/4.14-sumo** 
- 
-==== Set Up Qt Creator ==== 
- 
-Download [[https://download.qt.io/archive/qt/5.10/5.10.1/qt-opensource-linux-x64-5.10.1.run|Qt Opensource 5.10.1]]\\ 
-After downloading make the Qt installer file executable and run the Qt installer. Follow the installation wizard instructions.\\ 
- 
-The next step is to add the environment setup of the Yocto SDK to the first line (above the shebang) of the file qtcreator.sh script.\\ 
-If the install location has not been changed the qtcreator.sh is located in **~/Qt5.10.1/Tools/QtCreator/bin/qtcreator.sh** 
- 
-<code>source /opt/fsl-imx-wayland/4.14-sumo/environment-setup-aarch64-poky-linux</code> 
- 
-==== Run Qt Creator ==== 
- 
-change to the directory where the qtcreator.sh file is located and execute the following command:  
-<code>sudo sh qtcreator.sh</code> 
- 
-<WRAP round important>If qtcreator.sh returns source: not found, before sudo sh qtcreator.sh, enter sudo dpkg-reconfigure dash and choose no.</WRAP> 
- 
- 
-==== Configure Qt creator ==== 
- 
-=== Setup SSH connection === 
- 
-  - Go to **Tools > Options > Devices**  
-  - Click **Add > Generic Linux Device > Start Wizard** 
-  - Change the name to "STKa8Xx" and set up the connection. 
- 
-{{:en:general_information:yocto_qt_ssh.png?nolink&800|}} 
- 
- 
- 
- 
- 
- <WRAP round info>Click Test to test the network connection of the target device.</WRAP> 
- 
-=== Add compiler === 
- 
-  - Go to **Tools > Options > Build & Run> click Compilers** 
-  - Click **Add** and select **GCC** 
-  - Change Name to **TQMa8Xx** 
-  - Set **Compiler path** to  /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ 
-  - Set the following values for **ABI** from the dropdwon menus: 
- 
-^  processor architecture  ^  operating system  ^  OS flavor  ^  binary format  ^  system architecture  ^ 
-|  arm  |  linux  |  generic  |  elf  |  64bit  | 
- 
- 
-{{:en:general_information:yocto_qt_compiler.png?nolink&800|}} 
- 
-=== Add new Cross Compiled Qt Version === 
- 
-  - Click **Qt Versions** on the **Build & Run** panel 
-  - Click **Add** 
-  - Locate the qmake file in /opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake 
-<WRAP round info> If the qmake file has been auto-detected by Qt Creator qmake has not to be added manually.</WRAP> 
- 
-{{:en:general_information:yocto_qt_qmake.png?nolink&800|}} 
- 
-=== Add new Kit === 
- 
-  - Click on **Kits** in the **Build & Run** panel 
-  - Click **Add** and set the following: 
- 
-**Name** STKa8Xx\\   
-**Device Type** Generic Linux Device\\   
-**Device** STKaXx (default for Generic Linux)\\   
-**Sysroot** /opt/fsl-wayland/4.14-sumo/sysroots/aarch64-poky-linux\\   
-**Compiler** STKa8Xx\\   
-**Qt version** Qt 5.10.1\\   
- 
- 
-{{:en:general_information:yocto_qt_kit.png?nolink&800|}} 
- 
-<WRAP hide> 
-==== Hello World Application ==== 
- 
-  * Open **File** menu and click **New Project** 
-  * Select **Qt Console Application** 
-  * Specify the location for the project and name it hello_world 
-  * Select the Kit STKa8Xx  
-  
- 
-  * Edit main.cpp 
-<code> 
-#include <QCoreApplication> 
-#include <iostream> 
-#include <stdlib.h> 
- 
-using namespace std; 
-int main(int argc, char *argv[]) 
-{ 
-    QCoreApplication a(argc,argv); 
-    cout<<"Hello World"<<endl; 
-    return a.exec(); 
-} 
-</code> 
-</WRAP> 
  • Last modified: 2022/09/17 12:58