blob: a883ddbb3d14c3f152087a12a2ff7b24a7f888d4 [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
24* rk3288
Walter Lozano22186f32020-05-22 11:14:55 -030025 - Rockchip Evb-RK3288 (evb-rk3288)
26 - Firefly-RK3288 (firefly-rk3288)
27 - MQmaker MiQi (miqi-rk3288)
28 - Phytec RK3288 PCM-947 (phycore-rk3288)
29 - PopMetal-RK3288 (popmetal-rk3288)
30 - Radxa Rock 2 Square (rock2)
31 - Tinker-RK3288 (tinker-rk3288)
32 - Google Jerry (chromebook_jerry)
33 - Google Mickey (chromebook_mickey)
34 - Google Minnie (chromebook_minnie)
35 - Google Speedy (chromebook_speedy)
36 - Amarula Vyasa-RK3288 (vyasa-rk3288)
Jagan Teki338b86c2020-01-10 00:16:22 +053037* rk3328
Walter Lozano22186f32020-05-22 11:14:55 -030038 - Rockchip Evb-RK3328 (evb-rk3328)
39 - Pine64 Rock64 (rock64-rk3328)
Jagan Teki338b86c2020-01-10 00:16:22 +053040* rk3368
Walter Lozano22186f32020-05-22 11:14:55 -030041 - GeekBox (geekbox)
42 - PX5 EVB (evb-px5)
43 - Rockchip Sheep (sheep-rk3368)
44 - Theobroma Systems RK3368-uQ7 SoM - Lion (lion-rk3368)
Jagan Teki338b86c2020-01-10 00:16:22 +053045* rk3399
Walter Lozano22186f32020-05-22 11:14:55 -030046 - 96boards RK3399 Ficus (ficus-rk3399)
47 - 96boards Rock960 (rock960-rk3399)
48 - Firefly-RK3399 (firefly_rk3399)
49 - Firefly ROC-RK3399-PC
50 - FriendlyElec NanoPC-T4 (nanopc-t4-rk3399)
51 - FriendlyElec NanoPi M4 (nanopi-m4-rk3399)
52 - FriendlyARM NanoPi NEO4 (nanopi-neo4-rk3399)
53 - Google Bob (chromebook_bob)
54 - Khadas Edge (khadas-edge-rk3399)
55 - Khadas Edge-Captain (khadas-edge-captain-rk3399)
56 - Khadas Edge-V (hadas-edge-v-rk3399)
57 - Orange Pi RK3399 (orangepi-rk3399)
58 - Pine64 RockPro64 (rockpro64-rk3399)
59 - Radxa ROCK Pi 4 (rock-pi-4-rk3399)
60 - Rockchip Evb-RK3399 (evb_rk3399)
61 - Theobroma Systems RK3399-Q7 SoM - Puma (puma_rk3399)
Jagan Teki338b86c2020-01-10 00:16:22 +053062
63Building
64--------
65
66TF-A
67^^^^
68
69TF-A would require to build for ARM64 Rockchip SoCs platforms.
70
71To build TF-A::
72
73 git clone https://github.com/ARM-software/arm-trusted-firmware.git
74 cd arm-trusted-firmware
75 make realclean
76 make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399
77
78Specify the PLAT= with desired rockchip platform to build TF-A for.
79
80U-Boot
81^^^^^^
82
83To build rk3328 boards::
84
85 export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
86 make evb-rk3328_defconfig
87 make
88
89To build rk3288 boards::
90
91 make evb-rk3288_defconfig
92 make
93
94To build rk3368 boards::
95
96 export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
97 make evb-px5_defconfig
98 make
99
100To build rk3399 boards::
101
102 export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
103 make evb-rk3399_defconfig
104 make
105
106Flashing
107--------
108
109SD Card
110^^^^^^^
111
112All rockchip platforms, except rk3128 (which doesn't use SPL) are now
113supporting single boot image using binman and pad_cat.
114
115To write an image that boots from an SD card (assumed to be /dev/sda)::
116
117 sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64
118 sync
119
Jagan Teki7e013632020-05-24 23:02:13 +0530120eMMC
121^^^^
122
123eMMC flash would probe on mmc0 in most of the rockchip platforms.
124
125Create GPT partition layout as defined in configurations::
126
127 mmc dev 0
128 gpt write mmc 0 $partitions
129
130Connect the USB-OTG cable between host and target device.
131
132Launch fastboot at target::
133
134 fastboot 0
135
136Upon successful gadget connection,host show the USB device like::
137
138 lsusb
139 Bus 001 Device 020: ID 2207:330c Fuzhou Rockchip Electronics Company RK3399 in Mask ROM mode
140
141Program the flash::
142
143 sudo fastboot -i 0x2207 flash loader1 idbloader.img
144 sudo fastboot -i 0x2207 flash loader2 u-boot.itb
145
146Note: for rockchip 32-bit platforms the U-Boot proper image
147is u-boot-dtb.img
148
Jagan Teki338b86c2020-01-10 00:16:22 +0530149TODO
150----
151
152- Add rockchip idbloader image building
153- Add rockchip TPL image building
154- Document SPI flash boot
Jagan Teki338b86c2020-01-10 00:16:22 +0530155- Add missing SoC's with it boards list
156
157.. Jagan Teki <jagan@amarulasolutions.com>
Jagan Teki7e013632020-05-24 23:02:13 +0530158.. Sunday 24 May 2020 10:08:41 PM IST