Cubieboard 2

The Cubieboard 2 is an Allwinner A20 dual core based developer board, with a very wide range of IO options. The board is set apart by offering SATA and an extended pin interface for low level access to the SOC.

Board features:

  • Mali400mp2, OpenGL ES GPU
  • 1GB DDR3 @480MHz
  • HDMI 1080p Output
  • 10/100 Ethernet
  • 4Gb Nand Flash
  • 2 USB Host, 1 micro SD slot, 1 SATA, 1 IR
  • Headers exposing I2C, SPI, RGB/LVDS, CSI/TS, FM-IN, ADC, CVBS, VGA, SPDIF-OUT, R-TP

Install to a micro SD card
Replace sdX in the following instructions with the device name for the SD card as it appears on your computer.

  1. Zero the beginning of the SD card:
    dd if=/dev/zero of=/dev/sdX bs=1M count=8
  2. Start fdisk to partition the SD card:
    fdisk /dev/sdX
  3. At the fdisk prompt, delete old partitions and create a new one:
    1. Type o. This will clear out any partitions on the drive.
    2. Type p to list partitions. There should be no partitions left.
    3. Now type n, then p for primary, 1 for the first partition on the drive, 2048 for the first sector, and then press ENTER to accept the default last sector.
    4. Write the partition table and exit by typing w.
  4. Create and mount the ext4 filesystem:
    mkfs.ext4 /dev/sdX1 mkdir mnt mount /dev/sdX1 mnt
  5. Download and extract the root filesystem:
    wget http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz bsdtar -xpf ArchLinuxARM-sun7i-latest.tar.gz -C mnt sync
  6. Install the U-Boot bootloader:
    wget http://archlinuxarm.org/os/sunxi/boot/cubieboard2/u-boot-sunxi-with-spl.bin dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8 wget http://archlinuxarm.org/os/sunxi/boot/cubieboard2/boot.scr -O mnt/boot/boot.scr wget http://archlinuxarm.org/os/sunxi/boot/cubieboard2/script.bin -O mnt/boot/script.bin umount mnt sync
  7. Insert the micro SD card into the Cubieboard 2, connect ethernet, and apply 5V power.
  8. Use the serial console or SSH to the IP address given to the board by your router. The default root password is 'root'.


Install the U-Boot package

  1. In order to receive updates to the U-Boot bootloader, after logging into the system type:
    pacman -Syu uboot-cubieboard2
  2. When prompted, press y and hit enter to flash the bootloader to the SD card.
  3. Merge any pacnew files created by the package overwriting the manually installed bootloader files.


Install to USB or SATA
Replace sdX in the following instructions with the device name for the SD card as it appears on your computer.
Replace sdY in the following instructions with the device name for the USB or SATA drive as it appears on your computer.

  1. Zero the beginning of the SD card:
    dd if=/dev/zero of=/dev/sdX bs=1M count=8
  2. Install the U-Boot bootloader:
    wget http://archlinuxarm.org/os/sunxi/boot/cubieboard2/u-boot-sunxi-with-spl.bin dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8 sync
  3. Start fdisk to partition the USB or SATA drive:
    fdisk /dev/sdY
  4. At the fdisk prompt, delete old partitions and create a new one:
    1. Type o. This will clear out any partitions on the drive.
    2. Type p to list partitions. There should be no partitions left.
    3. Now type n, then p for primary, 1 for the first partition on the drive, 2048 for the first sector, and then press ENTER to accept the default last sector.
    4. Write the partition table and exit by typing w.
  5. Create and mount the ext4 filesystem:
    mkfs.ext4 /dev/sdY1 mkdir mnt mount /dev/sdY1 mnt
  6. Download and extract the root filesystem:
    wget http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz bsdtar -xpf ArchLinuxARM-sun7i-latest.tar.gz -C mnt
  7. Install the U-Boot bootloader boot files:
    wget http://archlinuxarm.org/os/sunxi/boot/cubieboard2/boot.scr -O mnt/boot/boot.scr wget http://archlinuxarm.org/os/sunxi/boot/cubieboard2/script.bin -O mnt/boot/script.bin umount mnt sync
  8. Insert the micro SD card into the Cubieboard 2, connect the USB or SATA drive, connect ethernet, and apply 5V power.
  9. Use the serial console or SSH to the IP address given to the board by your router. The default root password is 'root'.
  10. Follow the previous section to install the U-Boot package.


Mainline Kernel

  1. Install the new kernel, which will remove the linux-sun7i package:
    pacman -Syu linux-armv7
  2. Reboot the system:
    reboot

Architecture

ARMv7l Cortex-A7

Processor

Allwinner A20 1GHz Dual-core

RAM

1024MB

NAND

4096MB

SD

Micro SD

USB

2

SATA

1

Ethernet

10/100