Monday, 20 January 2014

Build the U-boot

Hi folks !!

Today we'll build the U-boot bootloader image. So I am following some of the steps which mentioned in the site of embedded artist board to build U-boot loader.


Steps:Follow these steps on linux platform, I m doing these on Ubuntu 12.04

1)Download all these packages:
 -u-boot-1.1.6.tar.bz2 
 -u-boot-1.1.6-ea_v1_9_1.diff.gz
 -u-boot-1.1.6-ea_v1_9_1_incr1.diff.gz

2) Go where you downloaded all u-boot tar packages
   $ cd /home/<user>/download 

3) untar U-boot package in the same folder
   $ tar –xjvf  u-boot-1.1.6.tar.bz2

4) Change directory to the u-boot directory.
   $ cd u-boot-1.1.6

5) Apply the u-boot patch
   $ gunzip –c ../u-boot-1.1.6-ea_v1_9_1.diff.gz | patch –p1

6) Apply incremental patches
   $ gunzip –c ../u-boot-1.1.6-ea_v1_9_1_incr1.diff.gz | patch –p1

7) Select board configuration. In this example we will select the configuration for the
LPC2478 OEM Board with 16-bit data bus.
   $ make LPC2478OEM_Board_16bit_config

8) Now it is time to compile the u-boot.
   $ make

9) When the build has finished successfully a binary file named u-boot.bin will be
available in the u-boot-1.1.6 directory.

10) Convert the bin file to a hex file.
   $ arm-linux-objcopy –I binary –O ihex u-boot.bin u-boot.hex

This u-boot.hex is a final image of u-boot loader... yes we got it !!

In my next post i'll show you how to flash this u-boot.hex file into LPC2468 machine and how to run....

That's all... njoy!!

Abhishek Mourya

No comments:

Post a Comment