How to compile the Allwinner A10 u-boot

From wiki
Jump to: navigation, search

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:
   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 it's own wiki at

   git clone git://
   cd u-boot

Android / NAND:

   git clone
   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-
Personal tools