Cubieboard 2

Overview

Cubieboard 2 comes with AllWinnerTech SOC A20,ARM® Cortex™-A7 Dual-Core ARM® Mali400 MP2 Complies with OpenGL ES 2.0/1.1

  1. 1GB DDR3 @480M
  2. 3.4GB internal NAND flash, up to 64GB on SD slot, up to 2T on 2.5 SATA disk
  3. 5VDC input 2A or USB otg input
  4. 1x 10/100 ethernet, support usb wifi
  5. 2x USB 2.0 HOST, 1x mini USB 2.0 OTG, 1x micro sd
  6. 1x HDMI 1080P display output
  7. 1x IR, 1x line in, 1x line out
  8. 96 extend pin interface, including I2C, SPI, RGB/LVDS, CSI/TS, FM-IN, ADC, CVBS, VGA, SPDIF-OUT, R-TP, and more

MuBox on Cubieboard 2

Some features in MuBox is tuned for Cubieboard2:

  1. Using 3.4.67 kernel from linux-sunxi
  2. MPD binds to a single core while leaving another core for interrupts, etc.

Installation

Please note that MuBox only supports Cubieboard2. You are on your own if you uses Cubieboard.

Pre-requisite

1. You need a Linux machine (could be x86, ARM based or any architecture)
2. a uSD card and a compatible card reader

uSD card creation by script

Download the installation script to your Linux machine, insert uSD card to card reader attached to your Linux machine, login as root, and run

# ./install-mubox-cubieboard2.sh /dev/sdX

where /dev/sdX is your SD card device. If you are unsure, type "cat /proc/partitions" to list all available disk devices and partitions. The script will format your card, download and install rootfs, install kernel and bootloader, etc.

After the installation completes, eject the card, re-insert the card to Cubieboard2 and power-up the board. Be sure to read our getting started guide in cookbook section if you use MuBox for the first time!

uSD card creation manually

If you feel uncomfortable to the above script, you can create the SD card manually. At first, you need to create the partition on a SD card. Replace sdX in the following instructions with the device name for the SD cards.

  1. Login as root
  2. Clean-up the card:
    dd if=/dev/zero of=/dev/sdX bs=1024 seek=544 count=128
    dd if=/dev/zero of=/dev/sdX bs=1M count=1
    
  3. Start fdisk to partition the SD card:
    fdisk -u /dev/sdX
    
  4. At fdisk prompt:
    1. Type o. This will clear out any partitions on the drive.
    2. Type n to create new partition, 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.
    3. Write the partition table and exit by typing w.
  5. Create ext4 filesystem, set no mount checking, assign volume label and disable journal.
    mkfs.ext4 /dev/sdX1
    tune2fs -i 0 -c 0 /dev/sdX1 -L voyage-mubox -O ^has_journal
    mount /dev/sdX1 /tmp/cf
    
  6. Download and extract root file system on-the-fly:
    curl http://mirror.voyage.hk/download/voyage-mubox/voyage-mubox-current.tar.xz | tar --numeric-owner -Jxf - -C /tmp/cf
    
  7. Download and install bootloader:
    curl http://mirror.voyage.hk/download/voyage-mubox/cubieboard2/boot-cubieboard2-latest.tar.xz| tar --numeric-owner -Jxf - -C /tmp/cf
    dd if=/tmp/cf/boot/sunxi-spl.bin of=/dev/sdX bs=1024 seek=8
    dd if=/tmp/cf/boot/u-boot.bin    of=/dev/sdX bs=1024 seek=32
    
  8. Download and install kernel and modules:
    curl http://mirror.voyage.hk/download/voyage-mubox/cubieboard2/kernel-cubieboard2-latest.tar.xz | tar --numeric-owner -Jxf - -C /tmp/cf
    sync
    umount /tmp/cf
    sync
    
  9. Done.