- Copy SD Card Image to an SD Card
- Copy Software to the Board via SSH and SCP
- Getting and Running the PHYTEC VM
- Install FTDI Driver on Windows
- Set Static IP Address in Ubuntu 20.04 LTS
- Setup a Second Network Interface in the Virtual Machine
- Setup qbee Device Management on phyBOARD-Polis
- Using phyLinux to build a yocto BSP with a build-container
- Using thingsboard.io to connect phyBOARD-Polis to the Cloud
Create a BSP using phyLinux
Goal
Create a PHYTEC BSP Build Folder in the PHYTEC Virtual Machine.
Information
This tutorial shows you how to create a BSP using the PHYTEC Virtual Machine, using the phyBOARD-Pollux Development Kit (https://www.phytec.de/produkte/development-kits/phyboard-pollux-kit/) as an example.
The version of the BSP used for this tutorial is "BSP-Yocto-NXP-i.MX8MP-PD22.1.1".
You can download the correct virtual machine under: https://download.phytec.de/Products/i.MX8M-plus/SO-558v5_22.1.1/Virtual_Machine/?_ga=2.223830687.544006199.1690192375-745538766.1672820265&_gac=1.225011304.1687504303.CjwKCAjwhdWkBhBZEiwA1ibLmJU2zMLdkqMD0Rsn4yXqCF8IslDlSsRZq_9YciEHzkO_aZfTlbjrVxoC_aYQAvD_BwE
This procedure is similar for all other PYHTEC products.
Preconditions
- The PHYTEC VM is on the host system and boots correctly:Getting and Running the PHYTEC VM
Tutorial
- Boot the virtual machine, e.g. using Virtual Box
- Log in to the virtual machine when it has finished booting (username: phyvm, password: phytec)
- Open a terminal
Create a new folder (for this tutorial we will use a phytec folder on the desktop)
Create folder for BSP$ mkdir Desktop/phytec $ cd Desktop/phytec
Copy the phyLinux script into the folder
Copy phyLinux and init folder$ cp /opt/phyLinux /home/phyvm/Desktop/phytec $ chmod +x /home/phyvm/Desktop/phytec/phyLinux $ cd /home/phyvm/Desktop/phytec $ ./phyLinux init # this command will init the setup process for a bsp build folder
When you init a folder for the first time, the script will start to download the repo (https://gerrit.googlesource.com/git-repo) that is needed by the script.
How to Get the Correct BSP Version for a Board
- Go to our website: https://www.phytec.de/produkte/development-kits/phyboard-pollux-kit/#downloads/
- Expand the section: "Linux BSP-Releases using Yocto"
- Choose a release version and click on the name, e.g. PD22.1.1
- On the new page, you will find an area named: "Supported Machines", like in the following screenshot:
The information given in the column "Description" can be found on your delivery note. - The phyLinux script needs some input from you to set the correct build, the necessary information is:
- Platform:
Here you can select the correct platform for which you want to create a BSP. For this tutorial, we will use "imx8mp", as shown in the screenshot above in the "Machine Name" column. - Release:
Here you need to select the correct release for your kit. For this tutorial, we will use "BSP-Yocto-NXP-i.MX8MP-PD22.1.1". - Build:
This information can be found on our website, as shown in the screenshot above.
- Platform:
- If everything is correct, you will see the following line:Source the env
. sources/poky/oe-init-build-env
You can also type:
alternativ commandsource sources/poky/oe-init-build-env
- Insert the codeline into your terminal and see the output:
The lines starting with "bitbake" will be different for each platform/release/build combination. You may see other commands, but they will all start with "bitbake". - Before you can build a BSP using the bitbake command, you must accept the licenses specified in ./conf/local.conf (accepting means uncommenting the line with ACCEPT_FSL or LICENSE_FLAG_WHITELIST).
- Accept the EULA license by uncommenting this file and saving it.
- You may need to accept more licenses (for the PHYTEC BSPs, all required licenses are specified in the local.conf file). See examples:
- Accept the EULA license by uncommenting this file and saving it.
- Once you have accepted the required licenses, you can type the bitbake command (for the given example: bitbake phytec-qt5demo-image) and press Enter.
- You will then need to wait for the process to complete, which may take several hours.
- The created image will be stored in the ./deploy/images/phyboard-pollux-imx8mp-3/ folder (the phyboard-pollux-imx8mp-3 folder will have a different name if you created a different BSP).