How to build U-Boot and Kernel in standalone environment
Generate an SDK from the Yocto Project build environment
cd ${BUILDDIR}
DISTRO=fsl-imx-fb MACHINE=cl-som-imx8 bitbake core-image-minimal -c populate_sdk
Kernel/U-Boot Source Code
| Kernel |
U-Boot |
export TARGET=linux-imx |
export TARGET=u-boot-imx |
export DEFCONFIG=cl-som-imx8_defconfig |
export DEFCONFIG=cl-som-imx8_defconfig |
Retrieve the target information
bitbake -c devshell ${TARGET}
mkdir -p ${BUILDDIR}/../ooye/${TARGET}
${BUILDDIR}/../sources/meta-compulab-imx8/bb-tools/getenv > ${BUILDDIR}/../ooye/${TARGET}/.rc
exit
Clone the target source code & patch it
cd ${BUILDDIR}/../ooye/${TARGET}
source ${BUILDDIR}/../ooye/${TARGET}/.rc
git clone ${ORIGIN} src
git -C src checkout -b development ${HEAD}
git -C src am ${PATCHES}/*.patch
- For i.MX 8 builds on the host machine, set the environment with the following command before building.
source /opt/fsl-imx-fb/4.9.51-mx8-ga/environment-setup-aarch64-poky-linux
- Issue build for the target this way:
make -C src ${DEFCONFIG}
make -C src -j8