User:Mrueg/Radxa Rock

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is still work-in-progress. I'll continue the documentation, when I get time to work on it.

Running Gentoo on Radxa

Radxa Rock[1] is a small development board using a quad core Rockchip RK3188 (ARMv7) processor and 2 GByte DDR3 memory. The operating system can be installed either on internal NAND (/dev/mtdblock), an external USB device or microSD card (/dev/mmcblk).

As you can see in the speed comparison below, the best choice is to use a USB flash drive.

Speed comparison (based on [2]):

  • USB flash drive: Corsair Voyager 3.0 32GB
  • MicroSD: FlashRaptor 32GB Class10
NAND MicroSD USB
Read 13.8 MB/s 12.4 MB/s 27.4 MB/s
Write 12.1 MB/s 13.4 MB/s 30.7 MB/s


Installing Gentoo

Preliminaries

Before proceeding with the installation make sure you meet these preconditions:

Recommendations

FILE /proc/cpuinfo
Features        : swp half thumb fastmult vfp edsp neon vfpv3

Set according CFLAGS:

FILE /etc/portage/make.conf
CHOST="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -fomit-frame-pointer -O2 -pipe"
CXXFLAGS="${CFLAGS}"

Installation process

TODO

Updating kernel

Create boot partition as a file:

root #mkbootimg-rockchip --kernel linux/arch/arm/boot/zImage --ramdisk initrd-5e2481b72e48d473e8de913f92fe86b77437141e.img -o boot.img.new

Copy this file to the boot partition:

root #dd if=boot.img.new of=/dev/block/mtd/by-name/boot bs=16384 conv=sync,fsync

External Resources