HCL:Rock64

Jump to: navigation, search

The Pine64 ROCK64 is a single-board computer.

Technical details

  • Rockchip RK3328 SoC
    • 4x ARM Cortex-A53 CPU
    • ARM Mali-450 MP2 GPU
  • 1 / 2 / 4 GB RAM
  • 16 MB SPI flash
  • Micro SD card slot
  • eMMC module option
  • 1 Gb Ethernet
  • 1x USB 3.0 host, 2x USB 2.0 host
  • 40-pin Raspberry Pi compatible GPIO

Manual installation

How to create bootloader images

Prerequisites:

  • u-boot-rock64 rpm package
  • u-boot tools
  • RockChip Firmware and tools

Process

First, clone RockChip proprietary binaries (x86_64 only):

git clone https://github.com/rockchip-linux/rkbin.git
cd rkbin

Then, extract prebuild u-boot image and tools:

rpm2cpio ../u-boot-rock64-2017.09-5.1.aarch64.rpm | cpio -id
rpm2cpio ../u-boot-tools-2017.09-5.1.x86_64.rpm | cpio -id
cp boot/u-boot.bin .
cp usr/bin/mkimage .

Produce flashable images:

./tools/loaderimage --pack --uboot ./u-boot.bin uboot.img 0x2000000
dd if=./rk33/rk3328_ddr_786MHz_v1.06.bin of=ddr.img bs=4 skip=1
./mkimage -n rk3328 -T rksd -d ddr.img idbloader.img
cat ./rk33/rk3328_miniloader_v2.43.bin >> idbloader.img
cp ./rk33/rk3328_loader_ddr786_v1.06.243.bin .
cat >trust.ini <<EOF
[VERSION]
MAJOR=1
MINOR=2
[BL30_OPTION]
SEC=0
[BL31_OPTION]
SEC=1
PATH=./rk33/rk3328_bl31_v1.34.bin
ADDR=0x10000
[BL32_OPTION]
SEC=0
[BL33_OPTION]
SEC=0
[OUTPUT]
PATH=trust.img
EOF
./tools/trust_merger trust.ini

Checklist

Now you should have four following files to be flashed onto SD card:

  • idbloader.img
  • rk3328_loader_ddr786_v1.06.243.bin
  • uboot.img
  • trust.img

Preparing SD card

Take empty SD card and do the following

dd if=idbloader.img of=sdX seek=64
dd if=uboot.img of=sdX seek=16384
dd if=trust.img of=sdX seek=24576

See also