CHAPTER
THREE
BUILDING THE BSP
This section will guide you through the general build process of the i.MX 93 BSP using Yocto and the
phyLinux script. For more information about our meta-layer or Yocto in general visit: Yocto Reference
Manual (mickledore).
3.1 Basic Set-Up
If you have never created a Phytec BSP with Yocto on your computer, you should take a closer look at the
chapter BSP Workspace Installation in the Yocto Reference Manual (mickledore).
3.2 Get the BSP
There are two ways to get the BSP sources. You can download the complete BSP sources from our download
page: BSP-Yocto-i.MX93; or you can fetch and build it yourself with Yocto. This is particularly useful if
you want to make customizations.
The phyLinux script is a basic management tool for PHYTEC Yocto BSP releases written in Python. It is
mainly a helper to get started with the BSP structure.
• Create a fresh project folder, get phyLinux, and make the script executable:
host:~$ mkdir ~/yocto
host:~$ cd yocto/
host:~/yocto$ wget https://download.phytec.de/Software/Linux/Yocto/Tools/phyLinux
host:~/yocto$ chmod +x phyLinux
Warning
A clean folder is important because phyLinux will clean its working directory. Calling phyLinux
from a directory that isn’t empty will result in a warning.
• Run phyLinux:
host:~/yocto$ ./phyLinux init
Note
On the rst initialization, the phyLinux script will ask you to install the Repo tool in your /usr/
local/bin directory.
11