Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

  1. Linux host requirements:
    Ubuntu 20.04 with the recommended amount of free space of 200 GB.

  2. Prepare the Linux host for the build:

    $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
         build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
         xz-utils debianutils iputils-ping libbz2-dev libz-dev python2.7 dfu-util libusb-1.0.0-dev
    $ sudo dpkg-reconfigure dash # Say "No" to not use "dash" as the default system shell.
    $ wget https://storage.googleapis.com/git-repo-downloads/repo
    $ chmod 755 repo
    $ sudo cp repo /usr/local/bin/

3. Clone build script:

$ git clone -b imx-5.15-32-vb https://github.com/voxelbotics/meta-vb-imx8mp.git

4. Checkout the release tag (e.g. 1.0.5-213)

$ cd meta-vb-imx8mp
$ git checkout 1.0.5-213

5. Create directories for Yocto cache and downloads:

$ sudo mkdir -p /home/cache/CACHE/5.15.32/sstate-cache
$ sudo mkdir -p /home/cache/CACHE/5.15.32/downloads
$ sudo chmod 777 /home/cache/CACHE/5.15.32/sstate-cache /home/cache/CACHE/5.15.32/downloads

6. Run the build script and buildthe release images:

$ sh meta-vb-imx8mp/scripts/build5-15-32.sh -t 1.0.5-213
...

7. The script will build from the 1.0.5-213 release tag in the source repositories https://github.com/voxelbotics/meta-vb-imx8mp , https://github.com/voxelbotics/linux-imx , https://github.com/voxelbotics/u-boot-imx.

8. After the build, the build artifacts will be located in the build-desktop/ directory:

$ ls -l build-desktop/builddir/tmp/deploy/images/imx8mpnavq/
...
-rwxr-xr-x 1 build build   7054552 Sep 25 10:49 uuu
-rw-r--r-- 1 build build   1508656 Sep 25 10:49 imx-boot-imx8mpnavq-sd.bin-flash_evk
-rw-r--r-- 1 build build      1605 Sep 25 10:54 navq-install-desktop.uuu
lrwxrwxrwx 1 build build        58 Sep 25 10:59 imx-image-desktop-imx8mpnavq.wic.bz2 -> imx-image-desktop-imx8mpnavq-20220925084849.rootfs.wic.bz2
lrwxrwxrwx 1 build build        52 Sep 25 10:54 navq-install-initrd.uImage -> navq-install-initrd-imx8mpnavq-20220925084849.uImage
-rw-r--r-- 1 build build       258 Sep 25 10:54 partitions.sfdisk
lrwxrwxrwx 2 build build        63 Sep 25 10:51 Image -> Image--5.15.32+git0+7035788108-r0-imx8mpnavq-20220925084849.bin
lrwxrwxrwx 2 build build        69 Sep 25 10:51 imx8mp-navq.dtb -> imx8mp-navq--5.15.32+git0+7035788108-r0-imx8mpnavq-20220925084849.dtb

If you want to build from the top-of-the trunk of the imx-5.15.32-vb development branches, run the script as below:

$ cd meta-vb-imx-8mp
$ git checkout imx-5.15.32-vb
$ cd ..
$ sh meta-vb-imx8mp/scripts/build5-15-32.sh -b imx-5.15.32-vb
...

  • No labels