BSP

"BSP" means Board Support Package.

= Requirements =

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

apt-get update apt-get upgrade apt-get install build-essential u-boot-tools uboot-mkimage gcc-arm-linux-gnueabihf \ libusb-1.0-0-dev git wget fakeroot \ kernel-package zlib1g-dev libncurses5-dev pkg-config

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 images
Rootfs images can be downloaded from Linaro's site:


 * https://releases.linaro.org/

In addition, Ubuntu Core is a rootfs image for Ubuntu, available at


 * http://cdimage.ubuntu.com/ubuntu-core/releases/

Read more about the Ubuntu Core rootfs images for armhf at https://wiki.ubuntu.com/Core

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 on nanda (FAT partition).