Cubieboard/FirstSteps

Note: This is the FirstSteps for Cubieboard users. If you are interested for the general FirstSteps page for A10 devices, please see FirstSteps.

Which is your Cubieboard model?
Currently, there are two batches of the Cubieboard developer board available.


 * 1) First batch, sold around August/September 2012. The Cubieboard in this batch has 512MB RAM.
 * 2) Second batch, sold through the Indiegogo campaign (November 2012), Shopify (January 2013), Miniand (January 2013). The Cubieboard in this batch has 1GB RAM.

It is important to identify which batch your Cubieboard is from, because the amount of memory has (currently) to be specified in your system image settings.

Unpacking the box
The Cubieboard is available in two packages, the Standard package and the Rich package.

According to the image shown above, the Rich package contains (from top left and counter-clockwise):


 * 1) SATA data cable and SATA power cable
 * 2) Back with screws (for transparent case)
 * 3) USB Serial cable
 * 4) USB to DC power cable
 * 5) Cubieboard carton box
 * 6) Transparent plastic case
 * 7) The Cubieboard developer board

Also checkout Cubieboard Unboxing and Quick Start Guide by CNXSoft.

Connecting the parts
Some of the Cubieboards may not have a suitable DC to USB cable. If it fails to start with the USB to DC cable, then try to power through the USB OTG port.

You can power your Cubieboard from either


 * the USB to DC cable (provided) (requires power supply that offers USB port, as most mobile phones provide)
 * a USB to microUSB cable. You plug the USB cable to your computer (5V/500mA) and the microUSB end to the OTG port on the Cubieboard.

Connect the Cubieboard to your HDMI display/TV using an HDMI cable. Note that there has been some issues with HDMI to DVI adapters. Also, if your HDMI TV cannot display 720p, then it might not be able to display properly on the screen.

You can connect a USB hub to the Cubieboard and then attach a keyboard and mouse. Note that if you connect several devices to the Cubieboard, then you will need to provide more power (for example, 500mA will probably be not enough).

You can also look for a PSP power supply (PSP is a Sony game console), which has a compatible barrel plug and provides 5V/2A, just like the Cubieboard needs.

First startup
You powered the Cubieboard using either a USB to DC power cable or a powered USB to microUSB cable. The Cubieboard should power on - the red POWER and green LED2 LEDs should light up.

If you start the Cubieboard without attaching a microSD card, then it will boot from the NAND flash memory. The Cubieboard has 4GB of internal memory (NAND Flash), which comes pre-loaded with Android 4.0 (ICS). Therefore, if you start the Cubieboard without a microSD card, then it will will boot into Android.

Power Off and On
You can use the power button to power on and off the Cubieboard.

When you press the power button next to power jack for a few seconds the system should print a message to the console and power down. The power led is then dimly lit and the LED1 and LED2 are off. Pressing the power button for a few seconds again powers the board on again.

Booting sequence
If a microSD card is present, then the Cubieboard will try to boot from the microSD card. If there is no microSD card present, then the Cubieboard will boot from the internal memory (NAND flash), which by default has Android 4.0.

It is possible to boot the Cubieboard from the network, or from a SATA disk.

You can find more details on the boot sequence at http://linux-sunxi.org/BROM

Installing images on the microSD card with BerryBoot
Berryboot is a simple operating system installation utility and boot selection screen, that allows you to put multiple Linux distributions on a single microSD card. To install it, you first need to copy the Berryboot system files to the microSD card. This can be done using the Android app or using a normal desktop computer.

Preparing the Berryboot microSD card using the Android SD card writer app

 * 1) Start your Cubieboard, and point the Android webbrowser to http://get.berryboot.com/
 * 2) Download, open and install the .apk you find there.
 * 3) Insert an empty SD card in your Cubieboard and press the "write image to SD card" button.
 * 4) After it has done writing, it will prompt you to reboot the Cubie and proceed with the main installation.

Preparing the Berryboot microSD card on a Windows computer
See also: Installing Ubuntu on the Cubieboard with Berryboot (video tutorial)


 * 1) Put the microSD card into an adapter, and attach it to your computer.
 * 2) Download the Berryboot-cubieboard-beta.zip from http://www.berryterminal.com/doku.php/berryboot_a10
 * 3) Download “win32diskimager-binary.zip” from https://launchpad.net/win32-image-writer/+download
 * 4) Extract both .zip archives.
 * 5) Start Win32DiskImager.exe
 * 6) Click on the browse icon under "image file" -> go to the folder where you downloaded Berryboot -> select the *.* filter to see all files -> select Berryboot-cubieboard-beta.ddimg
 * 7) Important: Double check that the correct disk drive corresponding to your SD card writer is selected under "device"
 * 8) Press "write".
 * 9) Once finished, put the microSD card into your Cubieboard, and apply power.

Main installation

 * 1) In the first screen of the installation procedure you will be prompted for your timezone and keyboard layout settings. If the Cubie is connected to the Internet by network cable it will try to detect the settings automatically based on your location.
 * 2) Next you will be asked where you want to install the files of your operating systems. This can be on the microSD card itself, on a SATA harddisk, on an USB stick or on a NAS device such as those made by Synology and QNAP. In all cases having the microSD card inserted into the Cubie is still necessary to boot the system.
 * 3) Finally you can select which "operating system" you wish to install, such as Ubuntu, Puppy Linux or Debian. The files will be downloaded automatically over the Internet.
 * 4) Once the download finishes you will be directed to the Berryboot boot menu editor, where you can install additional operating systems, or press "exit" to reboot and start using your freshly installed operating system!

More information

 * Adding your own Linux distributions to Berryboot
 * Main Berryboot site

Trying more bootable images
See the page Bootable_OS_images for additional bootable OS images. If you cannot find your favorite bootable image in the BerryBoot menu, you can install it manually to your microSD card. These image files (not to be confused with pictures) should be written directly to the memory of the microSD card, which removes all data on that card. If you use a Linux distribution, you would use dd (after you unmount the microSD card using palimptest or gnome-disks). Help expand this section with more detailed instructions!

What went wrong? Kernel logs!
If your board comes with a serial cable, you can connect to see the cubieboard u-boot and kernel messages.

If not, then you can get yourself an appropriate serial cable (normally a USB to Serial dongle which allows connection to the individual pins).

You can troubleshoot the Cubieboard by making use of the serial console. See Cubieboard/TTL for detailed instructions and an example output.

External

 * - Whats in the Box? CubieBoard photos & OS photos
 * Cubieboard photos on Flickt