Installing Ubuntu Server 14.04 on the ARM Allwinner A80 Optimusboard or pcDuino8 Arches

posted in: A80, ARM Servers | 6

Previously in this series, we investigated building and running a minimal linux server on the Allwinner A80 Optimusboard.  While that was a great exercise in learning about the A80 and its SDK, the output of that work was not all that useful.  Additionally, we were still missing major hardware components such as ethernet, wi-fi, and NAND.  More recently, the pcDuino team released both a Fedora and a Lubuntu beta image for the pcDuino8 board (recently renamed Arches).  Their Lubuntu build is made up of two pieces: a kernel image and a rootfs image.  The kernel image is 3.4.39, and it simply boots the board and then points over to the rootfs.  However, they utilized an older Lubuntu 12.10 image, which also inherently provides the LXDE desktop, neither of which is optimal when looking to deploy a server.

To build an ideal microserver, we really needed a bare minimum Ubuntu LTS system.  Thus, we kept the 3.4.39 kernel they provided, but we swapped in a freshly built Ubuntu 14.04 LTS file system created by mk-sbuild.  There is no window manager, no video acceleration, and no packages above and beyond what is needed to bring up the system.  It is up to the user to install whatever software they want, whether that is a LAMP stack, nodejs, ruby, FTP, DNS, Gnome, VNC, etc, etc.

Here is how to make use of this image:

First and foremost, you’ll need to download 3 files that we are going to use.  One file will be used by LiveSuit, and the other 2 files we are going to place on a microSD card.  Here are our downloads:

After they are finished downloading, we need to uncompress the ubuntu-trusty-arm-mininodes-20141227.img.gz image file.

gzip -d ubuntu-trusty-arm-mininodes-20141227.img.gz

Next, copy update.sh and ubuntu-trusty-arm-mininodes-20141227.img to a microSD card and then set it aside, we’re going to need it later in the process.

Now, we are ready to start.  First, load LiveSuit and select the kernel file so that it is ready to format / flash when the board is powered up.

install-ubuntu-on-allwinner-a80-optimusboard-1

Next, we need to connect the serial cable to the Optimusboard, open up a screen session (or use Putty if on Windows), and apply power.  Quickly press any key to interrupt its boot process and drop to the u-boot shell.  Type ‘efex’ (without the quotes) and press Enter.

install-ubuntu-on-allwinner-a80-optimusboard-2

LiveSuit will now find the board, and flash the kernel to the NAND (/dev/nanda to be exact).  It only takes a moment, because we are simply flashing the kernel at this point.

install-ubuntu-on-allwinner-a80-optimusboard-3

Once finished, the Optimusboard will reboot itself, and attempt to boot, but it fail with an error of “No valid rootfs found”.  Now it is time for the micro SD card.

install-ubuntu-on-allwinner-a80-optimusboard-4

Place the micro SD card in the slot, and the board will recognize that it contains an update.sh file.  It will immediately begin copying the contents of ubuntu-trusty-arm-mininodes-20141227.img to the NAND (/dev/nandd).

install-ubuntu-on-allwinner-a80-optimusboard-5

After approximately 5 minutes it will finish copying the data, and we can safely remove the SD card.

install-ubuntu-on-allwinner-a80-optimusboard-6

Once it’s removed, press the Reset button on the Optimusboard, and we should now boot up cleanly, and after a moment arrive at an Ubuntu login prompt.  The default username / password combo is ubuntu / ubuntu.

The build script only gets us to a minimal working state, so, let’s finish bringing the system all the way up and prepare it for use.  First, lets expand the filesystem to use all of the available space on the NAND (roughly 8gb):

resize2fs /dev/nandd

Then to verify the results:

df -h

Obviously we’ll want to change the passwords, for security purposes:

passwd

su root

passwd

Finally, lets bring up the ethernet port and grab a DHCP ip address, so we can access the internet.

ifconfig eth0 up

dhclient eth0

If all goes according to plan, you should now have a minimal Ubuntu 14.04 LTS ARMv7 install running on your Allwinner A80 Optimusboard! From here, you can customize the system to best suit your needs!

6 Responses

  1. Thanks very much for this, that’s great!

    I don’t suppose you have the exact kernel source that was used to create the kernel image? I’ve tried building against the kernel from the official kernel here: http://linux-sunxi.org/A80 but get invalid module layout errors.

    • mininodes

      George, Sorry but we do not. Because this came directly from the pcDuino team, they would be the ones to have the source. Try reaching out to them though, they are very helpful! Thanks!

  2. Need your help!
    I’v tried to do as you’ve describer above, but at the copy FS to nandd step I’ve got message
    “dd: writing ‘/dev/nandd’: No space left on device
    152+0 records in
    150+1 records out
    Command exited with non-zero status 1 ”
    Please help!
    And one more question – is your image support GPU?

    • Hi there Sergio, no this image does not have GPU support. In fact, it doesn’t even have a desktop, since it is intended for use as a server. Command Line and SSH only here. =)

  3. Dear,

    I am getting the same message:

    “dd: writing ‘/dev/nandd’: No space left on device
    152+0 records in
    150+1 records out
    Command exited with non-zero status 1 ”

    How can I copy the image on the NANDD ?

  4. After the phoenixsuite kernel upgrade I don’t get the “No valid rootfs found” but the system keeps looping forever. There is a “NAND driver disabled” in the messages.

Leave a Reply