Linaro 14.04 on Radxa Rock

If linaro 13.09 from the Radxa Rock Image doesn’t get new security updates anymore, it is time to move on to 14.04 Trusty Tahr a long term support version.

and replace the content with:

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports trusty-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports trusty-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports trusty-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports trusty-security universe
deb http://ports.ubuntu.com/ubuntu-ports trusty-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports trusty-security multiverse

then:

and when done:

Configure Radxa Rock

The Radxa Rock is a cheap and powerful quadcore ARM9 board, which is perfect for home servers or mobile robotic applications.

Here are some tipps how to set up the Radxa Rock:

By default, the Radxa Rock boots into Android. In the application folder you can find an app for booting into Ubuntu.

First configure your keyboard layout if needed:

And get wireless network access:

The content should look like:

Now you can manage several WPA keys in the wpa_supplicant.conf:

For each network add a definition like:

If you have several Radxa Rocks, you should change their mac addresses by modifying the parameter file and flashing it in loader mode:

And replace de:ad:de:ad:be:ef with a valid MAC address of your choice e.g. from this MAC generator:

you may also want to change their hostnames:

Now restart the networking:

Now that your Radxa Rock should be successfully connected to your wireless network, you can login via ssh by:

and the default root password „root“

You should directly change that password to something less easy to guess with:

remove the user rock:

and add an ordinary user:

and add him to the sudoers:

and then upgrade your Ubuntu installation:

Install zsh and some other useful tools:

Pick an agreeable theme (optional):

and set ZSH_THEME=“af-magic“

then source the changes:

Allow SSH authentication with certificate:
On the rock:

And copy the public key from your computer into the list of authorized keys on the rock

If you can now connect via ssh without being asked for a password you can force ssh to only accept authentication with certificate:

and make sure the following values are set:
PasswordAuthentication no
RSAAuthentication yes
PubkeyAuthentication yes

If you are using Macs, you might want to install netatalk to simplify file sharing:

Additional folders can be shared by editing AppleVolumes.default:

and adding a line like

/media/microsd/media „Media“

and restarting the netatalk service with:

You can also access the board via its UART Interface, connect the cables as follows:
RX -> Green
TX -> White
GND -> Black

For more see my post about OSX and USB to TTL

Flashing new Images:
First install rkflashtool:

Get into recovery mode:

When the board is connected with the USB OTG cable, press and hold the left recovery key and press and let got the right reset key. The board will reboot and stay on recovery mode waiting for commands.

TODO
For now use RK_BatchTool under Windows…