Yocto Build U-Boot

From Variscite Wiki
Revision as of 14:26, 3 May 2017 by Admin (talk | contribs) (Created page with "{{PageHeader|Yocto Build U-Boot from source code}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME|DART-6UL}}}} __toc__ = Toolchain installation for out of Yocto bui...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Yocto Build U-Boot from source code

1 Toolchain installation for out of Yocto builds

To install the toolchain, follow DART-6UL Morty Yocto Toolchain installation.

Reply to all defaults 'y'
The toolchain name depend on your build machine and may change.

2 Build U-Boot out of Yocto tree

Obtain sources:

$ cd ~/var-fslc-yocto
$ git clone https://github.com/varigit/uboot-imx.git 
$ git checkout -b imx_v2015.10_dart_6ul_var1 origin/imx_v2015.10_dart_6ul_var1


  • follow above procedure for installing the toolchain

Build U-Boot:

$ source /opt/fsl-imx-x11/4.1.15-2.0.1/environment-setup-cortexa7hf-neon-poky-linux-gnueabi


$ cd ~/var-fslc-yocto/uboot-imx/
$ make mrproper
Choose build for SD card or NAND flash:
$ make make mx6ul_var_dart_mmc_defconfig
or
$ make make mx6ul_var_dart_nand_defconfig
$ make -j4


Flash U-Boot to the SD card:

$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1; sync
$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69; sync
(Replace /dev/sdX with the correct device)

In case of UBI copy it to the SD card (assuming you are using our recovery SD card):

$ sudo cp SPL /media/rootfs/opt/images/Yocto/SPL-nand
$ sudo cp u-boot.img /media/rootfs/opt/images/Yocto/u-boot-nand-2015.04-r0.img
or (depend on your build):
$ sudo cp SPL /media/rootfs/opt/images/Yocto/SPL-sd
$ sudo cp u-boot.img /media/rootfs/opt/images/Yocto/u-boot-sd-2015.04-r0.img


And eject the SD card gracefully from host machine.

3 Update your U-Boot out of Yocto tree

$ git fetch origin
$ git pull