summaryrefslogtreecommitdiff
path: root/board/pine64/rock64/readme.txt
blob: 029c67641e99f92f235cc3e5e8b5267bc51cfdae (plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Intro
=====

This default configuration will allow you to start experimenting with the
buildroot environment for the Rock64. With this default configuration you
can log in into board via uart and look around.

Board homepage: https://www.pine64.org/?page_id=7147

Build
=====

First, load rock64 config for buildroot

  $ make rock64_defconfig

Optionally make changes to buildroot config (to install more programs)

  $ make menuconfig

And then build everything

  $ make

When completed, following files will be generated in output/images directory:

  .
  ├── Image
  ├── bl31.bin
  ├── bl31.elf
  ├── rk3328-rock64.dtb
  ├── rootfs.ext2
  ├── rootfs.ext4 -> rootfs.ext2
  ├── rootfs.tar
  ├── sdcard.img
  ├── u-boot-spl.bin
  ├── u-boot-tpl-spl.img
  ├── u-boot-tpl.bin
  ├── u-boot-tpl.img
  ├── u-boot.bin
  └── u-boot.itb

Creating bootable SD card
=========================

!!! THIS COMMAND MAY WIPE YOUR DISK!
!!! MAKE SURE YOU PASSED CORRECT DEVICE!
!!! OR IT THIS WILL WIPE YOUR DISK!

Simply invoke (as root)

  # dd if=output/images/sdcard.img of=/dev/sdX && sync

Where X is your SD card device (not partition), of= argument may also be
/dev/mmcblk0 if you are using built-in sd card reader.

Runtime
=======

Login
-----

By default, buildroot has no password, just type 'root' as login user, and
you will be logged in.

Serial console
--------------

Serial console needs to be connected to pins (into 40pin rpi compatible part)

pin 6:  gnd
pin 8:  tx
pin 10: rx

Pin numbers are printed on board.

Uart configuration is not standard. Rock64 uses 1500000 (1,5M) baudrate
with standard 8n1.

Ethernet
--------

To enable ethernet you need to load modules for it:

# modprobe stmmac
# modprobe dwmac-rk

and since by default there is no dhcp installed, you need to configure ip
address, remember to change address to fit your network.

# ifconfig eth0 up
# ip addr add 10.1.1.180/24 dev eth0
# ping 10.1.1.1
PING 10.1.1.1 (10.1.1.1): 56 data bytes
64 bytes from 10.1.1.1: seq=0 ttl=64 time=0.695 ms