Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to compile an i.MX8M Plus image with chromium, please follow these steps:. Please notice that building Yocto takes around 300GByte of disk storage and requires 64GByte system memory or 32GByte with a tweak to build first rust-native as described below.

Info

These steps were tested on a Ubuntu 22.04 build machine.

...

  • Make sure your git username and email is configured; and then clone the ‘repo’ tool and initialize the sources tree -

Code Block
breakoutModewide
mkdir imx-yocto
cd imx-yocto
wget https://storage.googleapis.com/git-repo-downloads/repo
chmod +x repo
./repo init -u https://github.com/SolidRun/meta-solidrun-arm-imx8 -b kirkstone-imx8m -m sr-imx-5.15.71-2.2.0.xml
./repo sync
DISTRO=fsl-imx-xwayland MACHINE=imx8mpsolidrun EULA=1 source imx-setup-release.sh -b build-xwayland-imx8mpsolidrun

...

Code Block
CORE_IMAGE_EXTRA_INSTALL += "chromium-ozone-wayland"
MIRRORS += " \
    git://source.codeaurora.org/external/imx/ git://github.com/nxp-imx/;protocol=https \n \
    https://source.codeaurora.org/external/imx/ https://github.com/nxp-imx/ \n \
    http://source.codeaurora.org/external/imx/ http://github.com/nxp-imx/ \n \
    gitsm://source.codeaurora.org/external/imx/ gitsm://github.com/nxp-imx/;protocol=https \n \
"
BB_NUMBER_THREADS = "4"

First build corerust-image-minimal native and then imx-image-full; do not build . The reason that rust-native is built first since it might fail on systems with less than 64GByte system memory.

If your machine does have available 64GByte system memory you can skip building rust-native and go ahead built imx-image-full from first build to avoid some dependency issue with rust package -directly.

Code Block
bitbake core-image-minimalC compile rust-native
bitbake imx-image-full

Using Chromium

...