blob: 7b72fab496cf7d2c01437667a865bef92d06fe79 [file] [log] [blame]
Jagan Teki338b86c2020-01-10 00:16:22 +05301.. SPDX-License-Identifier: GPL-2.0+
2.. Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
3
4ROCKCHIP
5========
6
7About this
8----------
9
10This document describes the information about Rockchip supported boards
11and it's usage steps.
12
13Rockchip boards
14---------------
15
16Rockchip is SoC solutions provider for tablets & PCs, streaming media
17TV boxes, AI audio & vision, IoT hardware.
18
19A wide range of Rockchip SoCs with associated boardsare supported in
20mainline U-Boot.
21
22List of mainline supported rockchip boards:
23
Walter Lozanocbd75f62020-05-22 11:14:56 -030024* rk3036
25 - Rockchip Evb-RK3036 (evb-rk3036)
26 - Kylin (kylin_rk3036)
27* rk3128
28 - Rockchip Evb-RK3128 (evb-rk3128)
29* rk3229
30 - Rockchip Evb-RK3229 (evb-rk3229)
Jagan Teki338b86c2020-01-10 00:16:22 +053031* rk3288
Walter Lozano22186f32020-05-22 11:14:55 -030032 - Rockchip Evb-RK3288 (evb-rk3288)
33 - Firefly-RK3288 (firefly-rk3288)
34 - MQmaker MiQi (miqi-rk3288)
35 - Phytec RK3288 PCM-947 (phycore-rk3288)
36 - PopMetal-RK3288 (popmetal-rk3288)
37 - Radxa Rock 2 Square (rock2)
38 - Tinker-RK3288 (tinker-rk3288)
39 - Google Jerry (chromebook_jerry)
40 - Google Mickey (chromebook_mickey)
41 - Google Minnie (chromebook_minnie)
42 - Google Speedy (chromebook_speedy)
43 - Amarula Vyasa-RK3288 (vyasa-rk3288)
Walter Lozanocbd75f62020-05-22 11:14:56 -030044* rk3308
45 - Rockchip Evb-RK3308 (evb-rk3308)
46 - Roc-cc-RK3308 (roc-cc-rk3308)
Jagan Teki338b86c2020-01-10 00:16:22 +053047* rk3328
Walter Lozano22186f32020-05-22 11:14:55 -030048 - Rockchip Evb-RK3328 (evb-rk3328)
49 - Pine64 Rock64 (rock64-rk3328)
Walter Lozanocbd75f62020-05-22 11:14:56 -030050 - Firefly-RK3328 (roc-cc-rk3328)
Jagan Teki338b86c2020-01-10 00:16:22 +053051* rk3368
Walter Lozano22186f32020-05-22 11:14:55 -030052 - GeekBox (geekbox)
53 - PX5 EVB (evb-px5)
54 - Rockchip Sheep (sheep-rk3368)
55 - Theobroma Systems RK3368-uQ7 SoM - Lion (lion-rk3368)
Jagan Teki338b86c2020-01-10 00:16:22 +053056* rk3399
Walter Lozano22186f32020-05-22 11:14:55 -030057 - 96boards RK3399 Ficus (ficus-rk3399)
58 - 96boards Rock960 (rock960-rk3399)
59 - Firefly-RK3399 (firefly_rk3399)
60 - Firefly ROC-RK3399-PC
61 - FriendlyElec NanoPC-T4 (nanopc-t4-rk3399)
62 - FriendlyElec NanoPi M4 (nanopi-m4-rk3399)
63 - FriendlyARM NanoPi NEO4 (nanopi-neo4-rk3399)
64 - Google Bob (chromebook_bob)
65 - Khadas Edge (khadas-edge-rk3399)
66 - Khadas Edge-Captain (khadas-edge-captain-rk3399)
67 - Khadas Edge-V (hadas-edge-v-rk3399)
68 - Orange Pi RK3399 (orangepi-rk3399)
69 - Pine64 RockPro64 (rockpro64-rk3399)
70 - Radxa ROCK Pi 4 (rock-pi-4-rk3399)
71 - Rockchip Evb-RK3399 (evb_rk3399)
72 - Theobroma Systems RK3399-Q7 SoM - Puma (puma_rk3399)
Walter Lozanocbd75f62020-05-22 11:14:56 -030073* rv1108
74 - Rockchip Evb-rv1108 (evb-rv1108)
75 - Elgin-R1 (elgin-rv1108)
76* rv3188
77 - Radxa Rock (rock)
Jagan Teki338b86c2020-01-10 00:16:22 +053078
79Building
80--------
81
82TF-A
83^^^^
84
85TF-A would require to build for ARM64 Rockchip SoCs platforms.
86
87To build TF-A::
88
89 git clone https://github.com/ARM-software/arm-trusted-firmware.git
90 cd arm-trusted-firmware
91 make realclean
92 make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399
93
94Specify the PLAT= with desired rockchip platform to build TF-A for.
95
96U-Boot
97^^^^^^
98
99To build rk3328 boards::
100
101 export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
102 make evb-rk3328_defconfig
103 make
104
105To build rk3288 boards::
106
107 make evb-rk3288_defconfig
108 make
109
110To build rk3368 boards::
111
112 export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
113 make evb-px5_defconfig
114 make
115
116To build rk3399 boards::
117
118 export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
119 make evb-rk3399_defconfig
120 make
121
122Flashing
123--------
124
125SD Card
126^^^^^^^
127
128All rockchip platforms, except rk3128 (which doesn't use SPL) are now
129supporting single boot image using binman and pad_cat.
130
131To write an image that boots from an SD card (assumed to be /dev/sda)::
132
133 sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64
134 sync
135
Jagan Teki7e013632020-05-24 23:02:13 +0530136eMMC
137^^^^
138
139eMMC flash would probe on mmc0 in most of the rockchip platforms.
140
141Create GPT partition layout as defined in configurations::
142
143 mmc dev 0
144 gpt write mmc 0 $partitions
145
146Connect the USB-OTG cable between host and target device.
147
148Launch fastboot at target::
149
150 fastboot 0
151
152Upon successful gadget connection,host show the USB device like::
153
154 lsusb
155 Bus 001 Device 020: ID 2207:330c Fuzhou Rockchip Electronics Company RK3399 in Mask ROM mode
156
157Program the flash::
158
159 sudo fastboot -i 0x2207 flash loader1 idbloader.img
160 sudo fastboot -i 0x2207 flash loader2 u-boot.itb
161
162Note: for rockchip 32-bit platforms the U-Boot proper image
163is u-boot-dtb.img
164
Jagan Teki338b86c2020-01-10 00:16:22 +0530165TODO
166----
167
168- Add rockchip idbloader image building
169- Add rockchip TPL image building
170- Document SPI flash boot
Jagan Teki338b86c2020-01-10 00:16:22 +0530171- Add missing SoC's with it boards list
172
173.. Jagan Teki <jagan@amarulasolutions.com>
Jagan Teki7e013632020-05-24 23:02:13 +0530174.. Sunday 24 May 2020 10:08:41 PM IST