Odroid xu3-lite Quick Install Guide

Installing Gentoo onto an Odroid XU3-Lite is not a difficult task. To do it in an easy way, we will need two micro SD memory cards of 8GB. We will use a hard disk of 40GB via USB. We will use the disk to improve speed; but actually you can not use it at all.

Starting up the main board
Download the appropriate Ubuntu image and copy it to the micro SD card.

If there is another image, normally you can use the new one.

Activate boot from micro SD using the corresponding switch

You can get more information about this procedure using this link

Insert the card into the card reader and switch on the PC

Getting more resources
Because I will not need the graphical user interface I will get rid of it. You can login using ssh or the UART terminal, ssh is recommended.

user: root password: odroid.

Partitioning the disk
Connect the disk and make a partition with ext4 to hold on the Ubuntu File System, 6GB should be enough more will be better ;-).

Installing gentoo
In this part I will go really fast it is just the normal gentoo installation process.

Downloading the files
We will need some files to do the installation. The stage 3 for arm, the last portage, the kernel binary and the kernel source. Actually we do not need the whole tree of the kernel but I do not know git very well. I used the kernel 3.10.63 with date 31 de diciembre del 2014. Yes, I was working that day.

Installing packages
We will emerge some key packages, the rest you can do it later.

Configuring NTP
This is really important!!!.

This motherboard does not have any real time clock (RTC), so we will need some software to do de job.

Edit the contents of /etc/ntp.conf and /etc/conf.d/ntp-client with nano if you know what to put in.

In may case, dhclient, set up my ntp.conf. ntp-client is not essential, but for me it helps a lot ;-)

The network
Nothing new here, but remember, we will set up the mac address in the file "boot.ini"

Edit the contents of /etc/udev/rules.d/70-persistent-net.rules and /etc/conf.d/net to setup the behavior of the network interface

Other configuration files
We should define the hostname of our workstation

our keymap

I change the syslog-ng configuration to avoid the use of the filesystem. You could not do this, but I did it.

Because we do not have a RTC, we need to avoid fsck to verify the system time. With this setting e2fsck will always assume that the system clock can not be trusted.

Setting the root password
This will be the password for our new environment

We are done here. We will now close the chroot and finish installation.

Chroot exit
We are in ubuntu land again. A few more steps to complete the installation.

Preparing the media for Gentoo
Now we need to connect the second micro SD card using an USB interface to the computer. In my case /dev/sdb I will create a new partition table and put two new primary partitions. One for the kernel and some boot files and the other one for the system. We need 2MiB free before the firs partition, you will know later why.

Universal boot
We need to install the u-boot into the same space we let free in our last step. For this:

Follow the instructions and be careful with the name of the device.

Mounting the file system
We have now two partitions, but they are empty. To fix that we will use the kernel binaries and the Gentoo's file system tree that we already did.

Extracting the kernel binaries
We will use this time the kernel binaries. We will use the kernel source in another tutorial.

Preparing the files
What do we do now?

We copy the "boot" folder from the kernel binaries to the micro SD boot partition. We copy the "lib" folder to the Gentoo's file system tree. We copy the Gentoo's file system tree to the microSD card.

Preparing the boot.ini file
I will copy the boot.ini from ubuntu to my micro SD card. Then, I will modify the root devide (It did not work for me using UUID). In this file you will find also the mac address to be assigned to the ethernet card.

Preparing fstab
Using UUID for the fstab is normally a god thing to do. You can modify this file using device names or volume labels. It is your choice.

Optimizing our gentoo
In my case I will use this computer as server. I will not use screen, mouse or keyboard on it. I will claim back some resources optimizing rootFS/etc/inittab.

Finally
Shutdown the whole system

exchange the cards ubuntu <-> gentoo.

In the next start up, you should see a pretty fast Gentoo up and running :-)

Other Thoughts
I would like to share some facts about this main board. It is just my own experience nothing else.

The purchase of
I bought this motherboard through the web site of hardkernel. I have to say that I did not receive any kind of confirmation from the web site when I did it.

I tried to contact the support by mail, with the confirmation from paypal, but they consider yahoo as spam!!! I tried then from gmail and that time, they answered me.

They shipped the parcel using UPS. It was really fast but extremely expensive.

The hardware was really good. The package content was exactly as described. Actually, I recommended it.

In my case, the power source got lock into my electrical extension cord. Now I can not pull out the power source and I can not use the extension for any other use.

The fan is really noisy, even if they have some kind of smart controller. I would prefer a bigger one but more silent.

The software support is really good. You can find whatever you need online. Hardkernel provides a kernel and some binary tools with the correct documentation.