How to compile the Allwinner A10 u-boot
This documentation assumes that you are using a debian system. Currently u-boot used in A10 as a secondary bootloader. More information about A10 boot, See a10 boot process
Note that there currently is two versions of u-boot for A10 depending on usage. lichee-dev for Android / NAND usage. sun4i for SD-card boot.
Installing an ARM cross-compiler and tools
- first read this: http://emdebian.org/crosstools.html
- edit /etc/apt/sources.list as approriate and advised above (may need to run apt-get install emdebian-archive-keyring also)
- apt-get install gcc-4.4-arm-linux-gnueabi (or appropriate: gcc-4.3 or 4.5)
- apt-get build-essential git
Getting the source code
SD-Card: see also its own wiki at https://github.com/hno/u-boot/wiki
- git clone git://github.com/linux-sunxi/u-boot-sunxi.git
- cd u-boot-sunxi
Android / NAND:
- git clone http://git.hands.com/u-boot.git
- cd u-boot
- git checkout lichee-dev (Branch lichee-dev set up to track remote branch lichee-dev from origin. Switched to a new branch 'lichee-dev')
Compiling the source code
(in the u-boot directory)
- make sun4i CROSS_COMPILE=arm-linux-gnueabi-