BSP

"BSP" means "Board Support Package".

= Installing requirements needed for using Sunxi-BSP and cross-compiling.=

Those three steps are only required if you are planning to Create your own hwpack or configure kernel on an x86PC running Linux and will install all packages required. (Tested and working on Linux Mint 13/14, Ubuntu 12.04/12.10)

apt-get update apt-get upgrade apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf gcc-4.7-arm-linux-gnueabihf-base \ g++-4.7-arm-linux-gnueabihf gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev libncurses5-dev

The git project is available at https://github.com/linux-sunxi/sunxi-bsp

To download it:

git clone git://github.com/linux-sunxi/sunxi-bsp.git

= Usage =

Build an SD-card from a hwpack and a root FS
./scripts/sunxi-media-create.sh [device] [hwpack] [rootfs]

Update an SD-card from a hwpack
./scripts/sunxi-media-create.sh [device] [hwpack] norootfs

Create your own hwpack
./configure # to list all currently supported boards ./configure make

Change kernel configuration
make linux-config
 * 1) Following command calls 'make menuconfig' with correct O= parameter

rootfs
Rootfs images can be downloaded in Linaro's site:

https://releases.linaro.org/

For example the latest Linaro nano is:

https://releases.linaro.org/13.04/ubuntu/quantal-images/nano/linaro-quantal-nano-20130422-342.tar.gz

LiveSuit image
Requires 64bit linux.

sunxi-bsp supports generating android and linux livesuit images. You can generate linux livesuit image by following next steps. ./configure # to list all currently supported boards ./configure make linux # generate kernel and modules wget  make livesuit ROOTFS= Flash and boot. Kernel modules can be found from nanda (FAT partition).