...
http://gitlab.keith-koep.com/imx/imx-manifest
http://gitlab.keith-koep.com/imx/meta-fsl-bsp-release
Yocto Images
Date | Description | Download |
---|---|---|
26.05.2021 | Yocto Sumo with 4.14.98 kernel and chromium browser | |
26.05.2021 | Yocto Sumo with 4.14.98 kernel and chromium browser Update 12.8 Bootloader Devtree | |
26.05.2021 | Yocto Sumo with 4.14.98 kernel and chromium browser Update 12.8 Bootloader Devtree | |
12.08.2019 | Yocto Sumo with 4.14.98 kernel | |
08.05.2019 | Yocto Sumo with 4.14.78 kernel |
Yocto Project Setup
This is only a quick-reference on how to setup and build a Yocto image.
For details please view the Linux and NXP i.MX8M documentation. Especially the „i.MX_Yocto_Project_User's_Guide“.
...
Code Block |
---|
$ mkdir <project-dir> $ cd <project-dir> $ repo init -u http://gitlab.keith-koep.com/imx/imx-manifest.git -b <Branch> -m <Manifest-File> $ repo sync |
Example
Code Block |
---|
$ mkdir imx-yocto-bsp $ cd imx-yocto-bsp $ repo init -u http://gitlab.keith-koep.com/imx/imx-manifest.git -b kuk_imx-linux-sumo -m kuk_imx-p9.0.0_2.3.4.xml $ repo sync |
...
Code Block |
---|
$ DISTRO=<Distribution> MACHINE=<Machine> source fsl-setup-release.sh -b <build-dir> |
Example
Code Block |
---|
$ DISTRO=fsl-imx-wayland MACHINE=imx8mm_trizeps8mini source fsl-setup-release.sh -b build-wayland |
Image Build
After the setup of the build-environment, you can start to run bitbake to build the image.
...
Code Block |
---|
$ source setup-environment <build-dir> |
Example
Code Block |
---|
$ source setup-environment ./build-wayland $ bitbake fsl-image-qt5-validation-imx |
After a build is complete, the image can be found at <build-dir>/tmp/deploy/images.
The image_name will be <Project-Image>-<Machine>.sdcard.bz2; i.e. fsl-image-qt5-validation-imx-imx8mm_trizeps8mini.sdcard.bz2.
The bootloader will be imx-boot-<Machine>-sd.bin-flash_<Module>; i.e. imx-boot-imx8mm_trizeps8mini-sd.bin-flash_trizeps8mini.
Deploy Image
How to deploy the image depends on wether you have a module with eMMC oder uSD-card-slot.
For a module with eMMC you will use the NXP Universal Update Utility (UUU) to update the files while the module is in USB Serial Download Mode.
For a module with uSD-Slot you can either use NXP Universal Update Utility (UUU) or deploy the image directly to the uSD-card using an uSD-card-reader with your PC.
Flash Image to SD card
Identify the uSD-card plugged to your PC; i.e. by using „lsblk | grep disk“
Code Block |
---|
$ bunzip2 -dk -f <image_name>.sdcard.bz2 $ sudo dd if=<image_name>.sdcard of=/dev/sd<disk> bs=1M conv=fsync |
Flash Image to eMMC
Put the module into USB Serial Download Mode and run:
Code Block |
---|
$ sudo ./uuu -b emmc_all <bootloader> <image_name>.sdcard |
Select Device-Tree
After flashing the image you will need to select the correct device-tree for your device.
This can be done in two ways:
Through the bootloader-console (115k2, 8N1):
Code Block |
---|
u-boot=> env set fdt_file kuk-trizeps8mini-pconxs-edt7.dtb u-boot=> env save |
You can get a list of installed *.dtb files by calling „fatls mmc 0“.
Rename the wished device-tree file (.dtb) to the default fdt_file setting:
Module | Default fdt_file setting |
---|---|
Trizeps VIII | kuk-trizeps8.dtb |
Trizeps VIII Mini | kuk-trizeps8mini.dtb |
Myon II | kuk-trizeps8mini.dtb |
(Myon II and Trizeps VIII Mini use the same bootloader )
Using a Deployment-Package
Yocto-Images uploaded to the wiki can be supplied in different formats.
The current format is a zip-file which contains the images and scripts.
...
Connect Serial Port 1 (115k2, 8N1) and USB-OTG with PC and enter Serial-Download-Mode
Run
Code Block $ sudo ./uuu package.zip
Use 'ctrl-c' to enter bootloader-console and run
Code Block u-boot=> ums 0 mmc 0
Copy contents of '.\boot' to Boot-FAT-partition of module; i.e.:
Code Block $ cp -r ./boot/* "/media/imx6/Boot imx8mq"/
Copy contents of '.\root' to Ext4-partition of module; i.e.:
Code Block $ cp -r ./root/* "/media/imx6/2695102b-264f-4b1f-b58b-6bdd5a04db3a"/
Unmount store and use 'ctrl-c' to re-enter bootloader-console.
Select device-tree to use; i.e.:
Code Block u-boot=> env set fdt_file kuk-trizeps8-pconxs-edt7.dtb u-boot=> env save
Restart system.
Notes on Build
Yocto | Configuration | Space needed after 'repo sync' | Space needed after 'bitbake' | Build-Time |
---|---|---|---|---|
imx-4.14.98-2.0.0_ga | fsl-image-qt5-validation-imx | 462 MByte | 136 GByte | 2h20min (30 cores i9 in VM) |