another pufferfish drawn by rekka yet another pufferfish drawn by rekka yet another pufferfish drawn by rekka
installing alpine linux on a rock64 (notes)

note: these instructions do not work yet, this
document is still alive (and may be for quite awhile).

alpine version: 3.12.3
pine64 rock64: rock64-rk3328
uboot build via: void linux

note: /dev/sdx is assumed to be the device
  that represents a microsd chip, adjust accordingly

zero the sd card

    dd if=/dev/zero of=/dev/sdX bs=1M count=32

start fdisk to partition the sd card

    fdisk /dev/sdX

at the fdisk prompt, create a single partition

- type o to clear out partitions
- type p to list partitions, there should be 0
- type n, then p, then 1, then 32768, then ENTER to make a single huge partition
- type w to exit and save changes

create the ext4 fs

    mkfs.ext4 /dev/sdX1

mount the fs (i do this as root)

    mkdir root
    mount /dev/sdX1 root

download & extract the genericARM image from

    bsdtar -xpf alpine-uboot-3.12.3-aarch64.tar.gz -C root
    # remove irrelevant dirs
    rm -rf root/u-boot
    rm -rf root/efi

#    wget -O boot.scr

download the u-boot dtb


    umount root # this will take awhile

download and install the uboot bootloader

#    wget
#    dd if=u-boot-rockchip.bin of=/dev/sdX seek=64 conv=notrunc

dd if=rksd_loader.img of=/dev/sdX seek=64 conv=notrunc
dd if=u-boot.itb of=/dev/sdX seek=16384 conv=notrunc

insert the microsd card and boot!


try /Image next in boot.scr

TODO: check this out -