Outils pour utilisateurs

Outils du site


francois:i.mx8

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
francois:i.mx8 [2026/03/28 15:22] – créée francoisfrancois:i.mx8 [2026/03/28 16:02] (Version actuelle) – francois
Ligne 1: Ligne 1:
 ====== I.MX8 related information ====== ====== I.MX8 related information ======
  
-===== Yocto =====+===== Boot switch =====
  
-Docker pour yocto+{{:francois:imx8:capture_d_ecran_du_2026-03-28_16-58-36.png?400|}}
  
 +===== Docker pour yocto =====
 +
 +Site: https://github.com/ADLINK/meta-adlink-nxp/wiki/Building-Yocto-for-LEC%E2%80%90IMX8MP
 +
 +<code>
 +# 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"]
 +</code>
 +
 +Construction
 +
 +  docker buildx build \
 +    --build-arg USER_ID=$(id -u) \
 +    --build-arg GROUP_ID=$(id -g) \
 +    -t imx8-yocto-builder .
  
 Run Run
Ligne 12: Ligne 54:
         --name imx8-builder \         --name imx8-builder \
         imx8-yocto-builder         imx8-yocto-builder
 +
 +===== bitbake =====
 +
 +configure env
 +
 +  MACHINE=lec-imx8mp DISTRO=fsl-imx-xwayland source adlink-imx-setup-release.sh -b build
 +
 +
francois/i.mx8.1774711362.txt.gz · Dernière modification : de francois

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki