Kernel Building

From Low cost, low power, android ARM system board by - pico WiKi
Revision as of 09:48, 23 February 2012 by Npavel (Talk | contribs)
Jump to: navigation, search

How to compile a new kernel for pico-SAM9G45

Other toolchains like Codesourcery can be used.

   git clone git://

and checkout the branch that you with to use with:

   git checkout <branchname>

Replace <branchname> with:


   If you are using the 2.6.x kernel branch make sure you checkout the picopc-bootstrap-2.6 branch from picopc-bootstrap

Commands to produce a kernel image for Android:

 mkdir ~/picosam9
 cd ~/picosam9
 git clone git://
 git clone git://
 cd kernel
 cp arch/arm/configs/picosam9g45-android_defconfig .config
 ./ oldconfig && ./ uImage
 ls -l arch/arm/boot/uImage

NOTE If you aren't using our toolchain, make sure you have mkimage from u-boot sources installed in your path. Although pico-SAM9G45 bootstrap doesn't use u-boot it expects a kernel in the uImage format. mkimage tool can be compiled from u-boot sources from the tools directory [1]

Personal tools