DESK-MX9-L/Development/Building Boot Image

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2024/01/30 DESK-MX9-L-5.0.0 release


Building Boot Image[edit | edit source]

Quick reference[edit | edit source]

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 image[edit | edit source]

To build the boot binary are pretty complex, are need too much component and it could be change if are using the optee features or other security features.

To make an easier boot binary build use yocto build system.

Before execute the setup of yocto, see there.

Each time there are some changes on u-boot update the reference of u-boot on yocto recipe, you can 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 update the follow variables:

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

to use different repository/branch and revision.

After to update the u-boot sources execute the build of boot binary with follow step

  • Setup yocto environment if not already up.
  • Execute the build of boot binary with follow command bitbake imx-boot.
  • The binary generated are on tmp/deploy/images/<machine-name>/imx-boot.


Flash boot image[edit | edit source]

To flash the boot image on uSD execute the follow step:

  • 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)