FPGARM4U U-boot

From Fpga4u

Jump to: navigation, search
Get source file and patches for the bootloader

The U-Boot sources used are the one from the official Denx repository ftp://ftp.denx.de/pub/ (http://www.denx.de/wiki/UBoot/WebHome) .

# wget ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.5.tar.bz2

The U-Boot patch for the AT91 architecture are from http://www.linux4sam.org .

# wget ftp://www.linux4sam.org/pub/uboot/u-boot-1.1.5_atmel_1.6/u-boot-1.1.5_atmel_1.6.diff

The U-Boot patch for the FPGARM4U board are to be used against Atmel's one.

# wget ... u-boot-1.1.5_atmel_1.6-Fpgarm4U.patch ...
Untar and patch the U-Boot source files

Untar the source tarball

# tar xjf u-boot-1.1.5.tar.bz2

Copy the patch files in the working directory

# cp u-boot-1.1.5_atmel_1.6.diff u-boot-1.1.5/
# cp u-boot-1.1.5_atmel_1.6-Fpgarm4U.patch u-boot-1.1.5/

Enter in the working directory

# cd u-boot-1.1.5/

Apply the two patches:

# cat u-boot-1.1.5_atmel_1.6.diff ¦ patch -p1
# cat u-boot-1.1.5_atmel_1.6-Fpgarm4U.patch ¦ patch -p1


Compile the bootloader for the ARM architecture

Compile the u-boot binary

# make distclean

Create the config files related to the Fpgarm4U board

# make Fpgarm4U_config

Start the compiler work on thte cource files:

# make CROSS_COMPILE=arm-linux-gnu-

At the end of the process the binary file of the bootloader is "FPGARM4U - u-boot.bin" in the main directory.

In the "tools" directory you can find the binary file "mkimage" that will be used later to add some header information to the Linux Kernel Image file.

Personal tools