Template:Build Bootloader
From OMAPpedia
[edit] Bootloader
For more information regarding bootloader visit the Bootloader Project
The OMAP4 dedicated instructions are described below:
- Version tagging into u-boot and x-loader trees: some stable release are tagged into u-boot and x-loader trees. It is advised to use the most recent (higher number) of these stable tags, and the same number for u-boot and x-loader (this will guarantee they are aligned). The tags to use for OMAP4 are: L24.x (with x being the highest value). Note that these tags are applied in the omap4_dev branch of the u-boot and x-loader trees.
- setup folders:
mkdir bootloader cd bootloader
- Get u-boot and checkout the omap4_dev branch:
git clone git://git.omapzoom.org/repo/u-boot.git cd u-boot git checkout <latest L24.x tag>
- Build u-boot for OMAP4
make ARCH=arm distclean make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap4430sdp_config make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
=> Generates: ./u-boot.bin
- get x-loader and checkout the omap4_dev branch:
cd .. git clone git://git.omapzoom.org/repo/x-loader.git cd x-loader git checkout <latest L24.x tag>
(note that both u-boot and x-loader folders must be at the same directory level)
- build x-loader for OMAP4:
make ARCH=arm distclean make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap4430sdp_config make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- ift
=> Generates ./MLO
The generated MLO and u-boot.bin files will have to be copied on the SD card.
Note: To get the list of L24.x tags, once in the cloned u-boot or x-loader folder, type:
git tag | grep L24