This prepares a very minimal Cubieboard2 rootfs. At the moment it is configured for a cubieboard2 with DVK521 board + LCD 7".

Requirements

Preparations

  • Put kernel in the same directory of this script with uImage name.
  • Put kernel modules tree in lib directory in the same directory. If you don't need modules, then you will have a very small rootfs.
export PATH=$PATH:/path/to/sunxi-tools
./build.sh

You will have a cubieboard2-blankon.img and ready to be put into your SD card with dd:

dd if=cubieboard2-blankon.img of=/dev/SDCARD bs=1M

Adjust /dev/SDCARD to your sd card path.