FPGARM4ULinux U-boot
From Fpga4u
FPGARM4U Bootloader
Untar and patch the U-Boot source files
Go to the root directory.
# cd /root/
Untar the sources of U-boot and go into the sources directory.
# tar xjf prog-patch/u-boot-1.1.5.tar.bz2 # cd u-boot-1.1.5
Apply the patches. Be careful, the order is important !
# cat ../prog-patch/u-boot-1.1.5_atmel_1.6.diff | patch -p1 # cat ../prog-patch/u-boot-1.1.5_atmel_1.6-Fpgarm4U.patch | patch -p1
Compile the bootloader for the ARM architecture
Before compiling, clean the sources.
# make distclean
Prepare the sources for compiling them for the FPGARM4U target.
# make Fpgarm4U_config
Compile.
# make CROSS_COMPILE=arm-linux-gnu-
At the end, two new binaries should have been generated.
- u-boot.bin, which is the bootloader, in the root directory of the bootloader.
- mkimage in the tools directory. This binary will be used later to add information into the Linux kernel.
Copy u-boot.bin to the final directory.
# cp u-boot.bin /root/final/bootloader.bin