idea/alpine-rock64.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# installing alpine linux on a rock64 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 https://www.alpinelinux.org/downloads wget https://dl-cdn.alpinelinux.org/alpine/v3.12/releases/aarch64/alpine-uboot-3.12.3-aarch64.tar.gz 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 https://trash.j3s.sh/rock64-boot.scr -O boot.scr download the u-boot dtb ????? unmount umount root # this will take awhile download and install the uboot bootloader # wget https://trash.j3s.sh/u-boot-rockchip.bin # dd if=u-boot-rockchip.bin of=/dev/sdX seek=64 conv=notrunc wget http://os.archlinuxarm.org/os/rockchip/boot/rock64/rksd_loader.img wget http://os.archlinuxarm.org/os/rockchip/boot/rock64/u-boot.itb 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! #todo try /Image next in boot.scr TODO: check this out - https://github.com/krjdev/rock64_openbsd