VAR-SOM-MX6 Yocto Fido R3 Build u-boot out of tree: Difference between revisions
From Variscite Wiki
Line 22: | Line 22: | ||
$ cd uboot-imx/ | $ cd uboot-imx/ | ||
</pre> | </pre> | ||
* | *Follow above procedure for installing the toolchain | ||
Build u-boot: | Build u-boot: | ||
Line 29: | Line 29: | ||
$ make mrproper | $ make mrproper | ||
Choose build for SD | Choose build for SD card or NAND Flash: | ||
$ make mx6var_som_sd_defconfig | $ make mx6var_som_sd_defconfig | ||
or | or | ||
$ make mx6var_som_nand_defconfig | $ make mx6var_som_nand_defconfig | ||
Build U- | Build U-Boot: | ||
$ make | $ make -j4 | ||
</pre> | </pre> | ||
Flash | Flash U-Boot to the SD card (change /dev/sdX to your correct device): | ||
<pre>$ sudo dd if=SPL of=/dev/ | <pre> | ||
$ sudo dd if=u-boot.img of=/dev/ | $ 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 | |||
</pre> | </pre> | ||
If you want to use the SD card to flash the built U-Boot to NAND, then copy it to the appropriate location in the SD card: | |||
<pre>$ sudo cp SPL /media/rootfs/opt/images | <pre> | ||
$ sudo cp u-boot.img /media/rootfs/opt/images | $ sudo cp SPL /media/rootfs/opt/images/... | ||
$ sudo cp u-boot.img /media/rootfs/opt/images/... | |||
</pre> | </pre> | ||
Eject SD | Eject SD card gracefully from host machine.<br/> | ||
{{note|Note:<br/>Refer to [[VAR-SOM-MX6 NAND Flash Burning|NAND Flash Burning]] for a complete description.|info}} |
Revision as of 16:16, 14 March 2016
VAR-SOM-MX6 - Yocto fsl-3.14.38_6qp Fido R3 u-boot out of tree
Toolchain installation for out of Yocto builds
Build the toolchain by:
$ bitbake meta-ide-support $ bitbake meta-toolchain
The output will be located at tmp/deploy/sdk/. On a 64 bit Ubuntu you will get:
sdk/poky-eglibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.8.sh
Install the tools by running:
$ tmp/deploy/sdk/poky-eglibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.8.sh
Reply to all defaults 'y'
The toolchain name depend on your build machine and may change.
Build U-Boot out of Yocto tree
Note:
This is a single u-boot image that supports all VAR-SOM-MX6 SOMs.
This is a single u-boot image that supports all VAR-SOM-MX6 SOMs.
Obtain sources:
$ cd ~/var-som-mx6-yocto-fido $ git clone https://github.com/varigit/uboot-imx $ cd uboot-imx/
- Follow above procedure for installing the toolchain
Build u-boot:
$ source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
clean tree: $ make mrproper Choose build for SD card or NAND Flash: $ make mx6var_som_sd_defconfig or $ make mx6var_som_nand_defconfig Build U-Boot: $ make -j4
Flash U-Boot to the SD card (change /dev/sdX to your correct device):
$ 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
If you want to use the SD card to flash the built U-Boot to NAND, then copy it to the appropriate location in the SD card:
$ sudo cp SPL /media/rootfs/opt/images/... $ sudo cp u-boot.img /media/rootfs/opt/images/...
Eject SD card gracefully from host machine.
Note:
Refer to NAND Flash Burning for a complete description.
Refer to NAND Flash Burning for a complete description.