Wiki

Clone wiki

itron-bsp-manual / build-the-u-boot-out-of-tree

TX SOFTWARE PLATFORM MANUAL

BUILD THE U-BOOT OUT OF TREE


######<< back to Home


Index


###### << . 1 . >>

Obtain sources and the toolchain

Obtain and install the toolchain

To build the U-Boot you have to use the appropriate toolchain.

You can build and install the toolchain by using the follow Yocto toolchain guide:

The Yocto toolchain

Obtain U-Boot sources

To get U-Boot sources you have to clone or download the U-Boot repository.

Below there is instruction how to clone the repository by using the git software:

$ git clone git@bitbucket.org:noritake-itron/uboot-imx.git
$ cd uboot-imx
$ git checkout imx_v2017.03_4.9.11_1.0.0_ga_itron

Update U-Boot sources

To update the U-Boot please use the git command:

$ cd uboot-imx
$ git pull

###### << . 2 . >>

Setup and build the U-Boot

Source the environment setup script

You can have two version of the toolchain: Framebuffer or X11.

For the U-Boot, it doesn't matter which version you will use.

Framebuffer (console-only) version

$ source /opt/fslc-framebuffer/2.4.1/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi

or

X11 (desktop) version

$ source /opt/fslc-x11/2.4.1/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi

Build the U-Boot

Clean build

$ make mrproper

Choose one of the following configurations:

TX070S

For booting from SD card/eMMC:
$ make tx070s_sd_defconfig
For booting from NAND flash:
$ make tx070s_nand_defconfig

TX101S

For booting from SD card/eMMC:
$ make tx101s_sd_defconfig
For booting from NAND flash:
$ make tx101s_nand_defconfig

TX070L

For booting from SD card/eMMC:
$ make tx070l_mmc_defconfig
For booting from NAND flash:
$ make tx070l_nand_defconfig

TX070U

For booting from SD card/eMMC:
$ make tx070u_mmc_defconfig
For booting from NAND flash:
$ make tx070u_nand_defconfig

Build the U-Boot

$ make -j4

###### << . 3 . >>

Deploy the U-Boot to an SD card

If you want to install the built U-Boot on an 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
Note: Replace /dev/sdX with the correct device

If you want to use our recovery SD card to flash the built U-Boot to NAND flash/eMMC, then copy it to the appropriate location in the SD card:

$ sudo cp SPL /media/rootfs/opt/images/Yocto/
$ sudo cp u-boot.img /media/rootfs/opt/images/Yocto/

###### << . 4 . >>

Customise the U-Boot

Disable the splash screen

A splash screen is enabled by default and is shown on the LVDS LCD.

To disable the splash screen, enter the following in the U-Boot command line interface:

=> run disable_splash
=> saveenv && reset

And to re-enable it:

=> run enable_splash
=> saveenv && reset
The splash image is taken from /boot/splash.bmp in the root file system.

Change the splash source

The splash image will be taken from whichever rootfs that is going to be mounted later at boot. To enable the automatic selection (already enabled by default):

=> setenv splashsourceauto yes
=> saveenv && reset
To disable the automatic selection:

=> setenv splashsourceauto no
=> setenv splashsource YOUR_SELECTION
=> saveenv && reset

YOUR_SELECTION should be one of {sd, emmc, nand} (nand means UBIFS)

######Note: In case the rootfs is a UBIFS, mounting it in order to load the splash file will add a few seconds to the boot time.


######<< back to Top

######<< back to Home


Updated