Table des matières

I.MX8 related information

Boot switch

Docker pour yocto

Site: https://github.com/ADLINK/meta-adlink-nxp/wiki/Building-Yocto-for-LEC%E2%80%90IMX8MP

# syntax=docker/dockerfile:1
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Use BuildKit cache mounts for faster package installation
RUN --mount=type=cache,target=/var/cache/apt \
    apt-get update && apt-get install -y \
    gawk wget git diffstat unzip texinfo gcc build-essential \
    chrpath socat cpio python3 python3-pip python3-pexpect \
    xz-utils debianutils iputils-ping python3-git python3-jinja2 \
    libegl1-mesa libsdl1.2-dev pylint xterm bsdmainutils \
    libssl-dev libgmp-dev libmpc-dev lz4 zstd locales \
    vim bc curl rsync file

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8

# Match the UID/GID of your Arch user to avoid permission issues in mounted volumes
ARG USER_ID=1000
ARG GROUP_ID=1000

RUN groupadd -g ${GROUP_ID} yocto && \
    useradd -u ${USER_ID} -g yocto -ms /bin/bash yoctouser

USER yoctouser
WORKDIR /home/yoctouser/imx8

CMD ["/bin/bash"]

Construction

docker buildx build \
  --build-arg USER_ID=$(id -u) \
  --build-arg GROUP_ID=$(id -g) \
  -t imx8-yocto-builder .

Run

docker run -it --rm \
      -v /home/$(whoami)/Projets/imx8/imx8mp-yocto-bsp/:/home/yoctouser/imx8 \
      --name imx8-builder \
      imx8-yocto-builder

bitbake

configure env

MACHINE=lec-imx8mp DISTRO=fsl-imx-xwayland source adlink-imx-setup-release.sh -b build