Introduction
How to compile Yocto 5.2 on the new Advantech NXP BSP? Based on NXP Yocto 5.2-6.12.20 version + Advantech Meta Layer
ENV
Docker env $ docker pull advrisc/u22.04-imx9lbv1
Step 1: Initialize Yocto Environment
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ git config --list
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
-----------------------------------------------------
### If you suffer "server certificate verification failed", you can use the following command to disable SSL verification in git repositories with self-signed certificates
### If you get "The unauthenticated git protocol on port 9418 is no longer supported.", you can try "git config --global url."https://".insteadOf git://"
-----------------------------------------------------
$ export GIT_SSL_NO_VERIFY=1
$ git config --global http.sslverify false
$ git config --global url."https://".insteadOf git://
-----------------------------------------------------
$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-walnascar -m imx-6.12.20-2.0.0.xml
$ repo sync
Check sources folders:
sources/
├── base
├── meta-arm
├── meta-browser
├── meta-clang
├── meta-freescale
├── meta-freescale-3rdparty
├── meta-freescale-distro
├── meta-imx
├── meta-nxp-connectivity
├── meta-nxp-demo-experience
├── meta-openembedded
├── meta-qt6
├── meta-security
├── meta-timesys
├── meta-virtualization
└── poky
Step 2: Get Advantech Meta Layer
$ cd sources
$ git clone https://AIM-Linux@dev.azure.com/AIM-Linux/meta-advantech-nxp/_git/meta-advantech-nxp -b walnascar-6.12.20
$ mv meta-advantech-nxp meta-advantech
Updated sources folder:
sources/
├── base
├── meta-advantech
├── meta-arm
├── meta-browser
├── meta-clang
├── meta-freescale
├── meta-freescale-3rdparty
├── meta-freescale-distro
├── meta-imx
├── meta-nxp-connectivity
├── meta-nxp-demo-experience
├── meta-openembedded
├── meta-qt6
├── meta-security
├── meta-timesys
├── meta-virtualization
└── poky
Step 3: Compile Yocto
Example for XWayland and imx8mprsb3720a2 board:
$ MACHINE=imx8mprsb3720a2 DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b rsb3720
Enabling the Advantech BSP Layer
To enable the layer, add the following line to the end of conf/bblayers.conf:
BBLAYERS += "${BSPDIR}/sources/meta-advantech"
Then start the build:
Send command : (7hr)
$ bitbake imx-image-full
or
Send command : (1hr)
$ bitbake imx-image-core