Build the U Boot boot loader - FrankBau/meta-marsboard-bsp GitHub Wiki

Prerequisites:

You can build U-Boot in several ways. The recommended way is to use a bitbake recipe which is already included in the meta-marsboard-bsp layer.

Open a bitbake shell and enter:

bitbake virtual/bootloader 

This will build U-boot and the final result u-boot.imx can be found in the deployment folder $(BSPDIR)/build/tmp/deploy/images/marsboard/u-boot.imx

You may now

  • directly download and execute this file by using USB-OTG boot or
  • put the file on a microSD card (lets say to the boot partition), insert the card into the MarS Board and Update U-Boot in SPI Flash using the existing U-Boot from SPI Flash.

Note: a recent U-Boot version (which can handle the device tree blob) is needed to boot Linux.