Name Date Size #Lines LOC

..--

patches/uboot/H05-Jun-2025-3328

extlinux.confH A D05-Jun-2025146 54

genimage.cfgH A D05-Jun-2025402 2420

post-build.shH A D05-Jun-2025338 105

readme.txtH A D05-Jun-20252.1 KiB9666

readme.txt

1Intro
2=====
3
4This default configuration will allow you to start experimenting with the
5buildroot environment for the Rock64. With this default configuration you
6can log in into board via uart and look around.
7
8Board homepage: https://www.pine64.org/?page_id=7147
9
10Build
11=====
12
13First, load rock64 config for buildroot
14
15  $ make rock64_defconfig
16
17Optionally make changes to buildroot config (to install more programs)
18
19  $ make menuconfig
20
21And then build everything
22
23  $ make
24
25When completed, following files will be generated in output/images directory:
26
27  .
28  ├── Image
29  ├── bl31.bin
30  ├── bl31.elf
31  ├── rk3328-rock64.dtb
32  ├── rootfs.ext2
33  ├── rootfs.ext4 -> rootfs.ext2
34  ├── rootfs.tar
35  ├── sdcard.img
36  ├── u-boot-spl.bin
37  ├── u-boot-tpl-spl.img
38  ├── u-boot-tpl.bin
39  ├── u-boot-tpl.img
40  ├── u-boot.bin
41  └── u-boot.itb
42
43Creating bootable SD card
44=========================
45
46!!! THIS COMMAND MAY WIPE YOUR DISK!
47!!! MAKE SURE YOU PASSED CORRECT DEVICE!
48!!! OR IT THIS WILL WIPE YOUR DISK!
49
50Simply invoke (as root)
51
52  # dd if=output/images/sdcard.img of=/dev/sdX && sync
53
54Where X is your SD card device (not partition), of= argument may also be
55/dev/mmcblk0 if you are using built-in sd card reader.
56
57Runtime
58=======
59
60Login
61-----
62
63By default, buildroot has no password, just type 'root' as login user, and
64you will be logged in.
65
66Serial console
67--------------
68
69Serial console needs to be connected to pins (into 40pin rpi compatible part)
70
71pin 6:  gnd
72pin 8:  tx
73pin 10: rx
74
75Pin numbers are printed on board.
76
77Uart configuration is not standard. Rock64 uses 1500000 (1,5M) baudrate
78with standard 8n1.
79
80Ethernet
81--------
82
83To enable ethernet you need to load modules for it:
84
85# modprobe stmmac
86# modprobe dwmac-rk
87
88and since by default there is no dhcp installed, you need to configure ip
89address, remember to change address to fit your network.
90
91# ifconfig eth0 up
92# ip addr add 10.1.1.180/24 dev eth0
93# ping 10.1.1.1
94PING 10.1.1.1 (10.1.1.1): 56 data bytes
9564 bytes from 10.1.1.1: seq=0 ttl=64 time=0.695 ms
96