全部博文(776)
分类: LINUX
2013-07-26 22:37:30
This document is old. Please refer to: for updated version.
The following steps are done on a regular computer instead of the pcDuino. The kernel is compiled on another computer and later used to install on pcDuino.
Ubuntu:
Install following packages using apt-get
$ sudo apt-get install build-essential git u-boot-tools texinfo texlive ccache zlib1g-dev gawk
$ sudo apt-get install bison flex gettext uuid-dev ia32-libs
Download the recommended linaro toolchain , (choose the “arm hf crosscompiler for Linux”)
$ tar jzxf -C your-path
$ export PATH=$PATH:your-path/gcc-linaro-arm-linux-gnueabihf-xxx_linux/bin/
Get the source code
Git the sunxi-bsp source code:
$ git clone
Git the sunxi-linux source code:
$ cd kernel
$ make
The Makefile script will git the linux and uboot source code from and compile it.
The output file, a livesuitable image and a HW_pack will be in the output folder.
Q&A:
Q1: Make failed.
Hint : the linux-sunxi is not clean, suggest to call “make mrproper” first.
> As suggested:
Before compile, please clean the build files (now you are in the kernel folder).
$ rm build/sun4i_defconfig-linux/* -rf
$ cd linux-sunxi
$ make mrproper
$ cd ..
Q2: Build the uImage of linux kernel only.
$ make help
$ make linux
You can also get some help from the