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

Prepare bootloader images

openSUSE JeOS images are distributed without preinstalled bootloader, because there is no complete rock64 support in upstream u-boot yet. The bootloader consisted of opensource ITB image (available in u-boot-rock64-rk3328 package), opensource SPL image, and binary TPL image.

  1. Install u-boot-tools package for your host architecture:
     zypper in u-boot-tools
  2. Download and unpack u-boot-rock64-rk3328 package with precompiled bootloader:
     osc getbinaries openSUSE:Factory:ARM u-boot:rock64-rk3328 standard aarch64
     rpm2cpio binaries/u-boot-rock64-rk3328-2019.07-153.1.aarch64.rpm | cpio -id
    

    A new directory ./boot containing bootloader binaries will be created in the current directory.

  3. Download binary TPL binary:
     git clone https://github.com/rockchip-linux/rkbin.git
  4. Convert TPL binary into Rockchip image format:
     mkimage -n rk3328 -T rksd -d rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin idbloader.img

    mkimage tool is available in u-boot-tools package in your host system.

  5. Append SPL binary to the end of idbloader.img image:
     cat boot/u-boot-spl.bin >> idbloader.img

    Use u-boot-spl.bin binary, not u-boot-spl.rksd.

Checklist

Now we have the following bootloader files ready to be deployed to SD card:

  • idbloader.img -- TPL/SPL image
  • boot/u-boot.itb - ITB image

Writing a disk image to the SD card

  1. Download the image you want (Leap is stable, Tumbleweed is rolling) from here:
    Susemini.png
    Version:
    Tumbleweed
    JeOS image E20 image XFCE image LXQT image KDE image X11 image

    If the direct links above do not work for you (as we are constantly building new images), please check the general download directory for the images.

  2. As root extract the image onto your SD card (replace sdX with the device name of your SD card).
    WARNING: all previous data on the SD card will be lost. Check first if the device you have selected is really your SD card!
     xzcat [image].raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct; sync
  3. As root write the bootloader onto your SD card:
     dd if=idbloader.img of=/dev/sdX seek=64 conv=notrunc
     dd if=boot/u-boot.itb of=/dev/sdX seek=16384 conv=notrunc
     sync
    
  4. Insert the SD card with the openSUSE image into your board.
  5. Connect the board to your PC via serial port (optional, but helpful for debugging; USB-TTL serial cable needed).
  6. Connect the board to your monitor (via DVI/HDMI, optional).
  7. Power on the board.
  8. Walk through the first boot steps.
  9. Ethernet is configured to request an IP via DHCP, check your DHCP server for the board IP if used.
  10. Have a lot of fun...
Default login is root:linux, works on serial console, via ssh, GUI.


See also