Template:Build Bootloader

= 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.

mkdir bootloader cd bootloader
 * setup folders:

git clone git://git.omapzoom.org/repo/u-boot.git cd u-boot git checkout 
 * Get u-boot and checkout the omap4_dev branch:

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
 * Build u-boot for OMAP4

cd .. git clone git://git.omapzoom.org/repo/x-loader.git cd x-loader git checkout  (note that both u-boot and x-loader folders must be at the same directory level)
 * get x-loader and checkout the omap4_dev branch:

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
 * build x-loader for OMAP4:

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