Cross compile in ubuntu environment.
1) Download required arm compiler.
I choose the most common one for testing only (not the optimized one).
sudo apt-get install gcc-arm-linux-gnueabi
ncurses-dev is required if you want to config the option by using 'make menuconfig'.
sudo apt-get install ncurses-dev
Get the u-boot package
2) git clone git://git.denx.de/u-boot.git
build the u-boot backage
3) make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- rpi_2_defconfig
Optional) make menuconfig
4) make -j8 V=1
Option) make -j8 V=1 2>&1 | tee build.log | less
Option) make -j8 SHELL='sh -x'
V=1: Output more message during build
u-boot.bin will be generated under the u-boot root directory.
Copy the u-boot.bin to the micro SD-CARD
沒有留言:
發佈留言