Sign inSign up

elinkengineering/yocto

By elinkengineering

•Updated almost 4 years ago

Repository for IMX Yocto Building

Image
0

374

elinkengineering/yocto repository overview

⁠Quick reference

Refer to IMX_YOCTO_PROJECT_USERS_GUIDE.pdf for source code downloading

Note: This image includes repo and git packages. You can download source code within docker environment. See step 3, or ignore if you already downloaded.

⁠Build steps

⁠1. Enter imx source directory

    $cd <path-to>/imx-yocto-bsp

⁠2. Start docker

    $docker run \
    --rm \
    --user=$(id -u):$(id -g) \
    --init \
    --hostname=$(hostname) \
    --volume $(pwd):$(pwd) \
    --volume /etc/passwd:/etc/passwd:ro \
    --volume /etc/group:/etc/group:ro \
    --workdir $(pwd) -it elinkengineering/yocto:ubuntu-18.04 /bin/bash

It is possible to use your own repo and git config files in docker environment. Add -v <home>/.repoconfig:<home>/.repoconfig:ro and -v <home>/.gitconfig:<home>/.gitconfig:ro to docker run command as below:

    $docker run \
    --rm \
    --user=$(id -u):$(id -g) \
    --init \
    --hostname=$(hostname) \
    --volume $(pwd):$(pwd) \
    --volume /etc/passwd:/etc/passwd:ro \
    --volume /etc/group:/etc/group:ro \
    -v <home>/.repoconfig:<home>/.repoconfig:ro \
    -v <home>/.gitconfig:<home>/.gitconfig:ro\
    --workdir $(pwd) -it elinkengineering/yocto:ubuntu-18.04 /bin/bash

⁠3. Download source code

Setup Git config if you didn't add .repoconfig and .gitconfig file to the container

    $ git config --global user.name "Your Name"
    $ git config --global user.email "Your Email"
    $ # Pull source code
    $repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b <branch name> -m <manifest file name>
    $repo sync

⁠3. Continue chapter 5.1 to build the yocto image

    $ DISTRO=<distro name> MACHINE=<machine name> source imx-setup-release.sh -b <build dir>
    <build dir>$ bitbake core-image-minimal

In case you did already start bitbake server without docker before. You may get a conflict hosttools symlinks. To resolve, just remove that hosttools directory. The build process will automatically create it again.

This docker image supports running command bitbake linux-imx -c menuconfig

Tag summary

Content type

Image

Digest

sha256:3926ada4b…

Size

326.9 MB

Last updated

almost 4 years ago

docker pull elinkengineering/yocto