Build the U Boot out of tree - noritake-itron/itron-bsp-manual GitHub Wiki
Noritake-Itron Board Support Platform User Manual
Build the U-Boot out of tree
<< back to Home
Index
- Obtain sources and the toolchain
- Setup and build the U-Boot
- Deploy the U-Boot to an SD card
- Customise the U-Boot
Obtain sources and the toolchain
<< . 1 . >>
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:
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 [email protected]: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
Setup and build the U-Boot
<< . 2 . >>
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:
TX10
For booting from SD card/eMMC:
make tx10_defconfig
Build the U-Boot
make -j4
Deploy the U-Boot to an SD card
<< . 3 . >>
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/
Customise the U-Boot
<< . 4
*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)