[LS104x] Starting with Yocto
Yocto with LSDK Components
Yocto with LSDK components provides recipes for the last Yocto release to use the latest and greatest components from LSDK as they get released. This eventually makes its way into the next community Yocto release at yoctoproject.org. The NXP holds the Github pages on the https://www.nxp.com/design/software/embedded-software/nxp-github:NXP-GITHUB or https://github.com/nxp-imx/meta-nxp-desktop#readme
Prepare build environment
To make sure the build host is prepared for Yocto running and build, please follow this guide to prepare the build environment.
Install 'repo' tool
To use this manifest repo, the 'repo' tool must be installed first:
Download Yocto Layers
The following is the step of how to use the repo utility to download all Yocto layers according to the repo manifest. Replace with the real name (see Yocto branch and version below).
Yocto branch and version:
Building images
We should be mindful of the Linux shell usage, the bash
should be applied to the setup-env rather than zsh
. Take ls1046ardb as an example:
or:
Images will be found under tmp/deploy/images/ls1046ardb/.
Some Pits
Q1: BitBake error if it can't find www.example.com?
BitBake fails for me because it can't find https://www.example.com.
This is the response I get when I run BitBake:
Solution:
Modifying /conf/local.conf was the only solution that worked for me. Simply add one of the two options:
Q2: DISTRO 'fsl-qoriq' not found.
I have tried to pull yocto project repo according to the NXP Layerscape latest user guide from https://www.nxp.com/docs/en/user-guide/LLDPUG_RevL6.1.22_2.0.0.pdf
(Refer to the section 4.5.2 Download Yocto bitbake)
The bitbake returns the error outlined below:
Solution:
Before you executed, bitbake ls-image-main did you execute DISTRO=fsl-qoriq-distro MACHINE= source distro-setup-env for the specific board.
The root cause is that the oh-my-bash
is used in my Ubuntu console. it worked when I changed to raw bash.
Q3: QEMU or other libs cannot be downloaded
The prompted error is caused by network, you can solve the problem by ma
最后更新于