Open main menu

DAVE Developer's Wiki β

DESK-MX9-L/Development/Building Boot Image

< DESK-MX9-L
Revision as of 10:11, 1 February 2024 by U0007 (talk | contribs)

History
Issue Date Notes
2024/01/30 DESK-MX9-L-5.0.0 release



Contents

Building Boot ImageEdit

Quick referenceEdit

Repository Information
URL git@git.dave.eu:desk-mx-l/u-boot-imx.git
stable branch desk-mx9-l-5.x.x
stable tag desk-mx9-l-5.0.0

Build boot imageEdit

To build the binary boot Image is pretty complex. Too much component are needed and the image structure may change if the optee or other security features are used.

To make an easier boot Image build we strongly suggest to use the Yocto build system.

Before execute the setup of Yocto, see this page.

Each time there are some changes on u-boot, the u-boot references in the Yocto recipes have to be changed. Edit the u-boot reference on:

  • sources/meta-desk-mx/recipes-bsp/u-boot/u-boot-desk_git.bb
  • sources/meta-desk-mx/conf/machine/include/desk-common-mx93.inc
  • build-*/conf/local.conf

Remember to update the follow variables:

  • SRCREV:pn-u-boot-desk
  • SRCBRANCH:pn-u-boot-desk
  • UBOOT_SRC:pn-u-boot-desk

to use the different repository/branch and revision.

After the u-boot sources has been updated, execute the build of boot binary with the following steps

  • setup the Yocto environment if not already up
  • execute the build of boot binary with follow command bitbake imx-boot.
  • the binary generated is present on tmp/deploy/images/<machine-name>/imx-boot.


Flash boot imageEdit

To flash the boot image on uSD execute the following steps:

  • connect the uSD to the MVM
  • get the device name with lsblk command.
  • flash the binary to the uSD with follow command sudo dd if=imx-boot.bin of=/dev/sdX bs=1k seek=32 conv=fsync (replace sdX with your device)