Kernel Building

From Low cost, low power, android ARM system board by Mini-Box.com - pico WiKi
Jump to: navigation, search

How to compile a new kernel for pico-SAM9G45

   git clone git://gitorious.org/picopc-kernel/kernel.git

and checkout the branch that you with to use with:

   git checkout  remotes/origin/<branchname> -b localbranchname


Important:

   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://gitorious.org/picopc-kernel/toolchain.git
 git clone git://gitorious.org/picopc-kernel/kernel.git
 cd kernel
 cp arch/arm/configs/picosam9g45-android_defconfig .config
 ./compile.sh oldconfig && ./compile.sh 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
Namespaces
Variants
Actions
Toolbox