2020-01-09 18:46:22 +00:00
|
|
|
.. SPDX-License-Identifier: GPL-2.0+
|
|
|
|
.. Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
|
|
|
|
|
|
|
|
ROCKCHIP
|
|
|
|
========
|
|
|
|
|
|
|
|
About this
|
|
|
|
----------
|
|
|
|
|
|
|
|
This document describes the information about Rockchip supported boards
|
|
|
|
and it's usage steps.
|
|
|
|
|
|
|
|
Rockchip boards
|
|
|
|
---------------
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Rockchip is a SoC solutions provider for tablets & PCs, streaming media
|
2020-01-09 18:46:22 +00:00
|
|
|
TV boxes, AI audio & vision, IoT hardware.
|
|
|
|
|
2021-08-20 17:27:59 +00:00
|
|
|
A wide range of Rockchip SoCs with associated boards are supported in
|
2020-01-09 18:46:22 +00:00
|
|
|
mainline U-Boot.
|
|
|
|
|
2021-08-20 17:27:59 +00:00
|
|
|
List of mainline supported Rockchip boards:
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:51 +00:00
|
|
|
* px30
|
|
|
|
- Rockchip Evb-PX30 (evb-px30)
|
|
|
|
- Engicam PX30.Core C.TOUCH 2.0 (px30-core-ctouch2-px30)
|
|
|
|
- Engicam PX30.Core C.TOUCH 2.0 10.1 (px30-core-ctouch2-of10-px30)
|
|
|
|
- Engicam PX30.Core EDIMM2.2 Starter Kit (px30-core-edimm2.2-px30)
|
|
|
|
- Firefly Core-PX30-JD4 (firefly-px30)
|
2023-01-09 10:36:45 +00:00
|
|
|
- Theobroma Systems PX30-µQ7 SoM - Ringneck (ringneck-px30)
|
2020-05-22 14:14:56 +00:00
|
|
|
* rk3036
|
|
|
|
- Rockchip Evb-RK3036 (evb-rk3036)
|
|
|
|
- Kylin (kylin_rk3036)
|
2022-04-16 15:09:52 +00:00
|
|
|
* rk3066
|
|
|
|
- Rikomagic MK808 (mk808)
|
2020-05-22 14:14:56 +00:00
|
|
|
* rk3128
|
|
|
|
- Rockchip Evb-RK3128 (evb-rk3128)
|
2021-08-20 17:27:58 +00:00
|
|
|
* rk3188
|
|
|
|
- Radxa Rock (rock)
|
2020-05-22 14:14:56 +00:00
|
|
|
* rk3229
|
|
|
|
- Rockchip Evb-RK3229 (evb-rk3229)
|
2020-01-09 18:46:22 +00:00
|
|
|
* rk3288
|
2020-05-22 14:14:55 +00:00
|
|
|
- Rockchip Evb-RK3288 (evb-rk3288)
|
|
|
|
- Firefly-RK3288 (firefly-rk3288)
|
|
|
|
- MQmaker MiQi (miqi-rk3288)
|
|
|
|
- Phytec RK3288 PCM-947 (phycore-rk3288)
|
|
|
|
- PopMetal-RK3288 (popmetal-rk3288)
|
|
|
|
- Radxa Rock 2 Square (rock2)
|
|
|
|
- Tinker-RK3288 (tinker-rk3288)
|
|
|
|
- Google Jerry (chromebook_jerry)
|
|
|
|
- Google Mickey (chromebook_mickey)
|
|
|
|
- Google Minnie (chromebook_minnie)
|
|
|
|
- Google Speedy (chromebook_speedy)
|
|
|
|
- Amarula Vyasa-RK3288 (vyasa-rk3288)
|
2020-05-22 14:14:56 +00:00
|
|
|
* rk3308
|
|
|
|
- Rockchip Evb-RK3308 (evb-rk3308)
|
|
|
|
- Roc-cc-RK3308 (roc-cc-rk3308)
|
2022-04-16 15:09:51 +00:00
|
|
|
* rk3326
|
|
|
|
- ODROID-GO Advance (odroid-go2)
|
2020-01-09 18:46:22 +00:00
|
|
|
* rk3328
|
2020-05-22 14:14:55 +00:00
|
|
|
- Rockchip Evb-RK3328 (evb-rk3328)
|
|
|
|
- Pine64 Rock64 (rock64-rk3328)
|
2020-05-22 14:14:56 +00:00
|
|
|
- Firefly-RK3328 (roc-cc-rk3328)
|
2020-05-31 16:02:11 +00:00
|
|
|
- Radxa Rockpi E (rock-pi-e-rk3328)
|
2020-01-09 18:46:22 +00:00
|
|
|
* rk3368
|
2020-05-22 14:14:55 +00:00
|
|
|
- GeekBox (geekbox)
|
|
|
|
- PX5 EVB (evb-px5)
|
|
|
|
- Rockchip Sheep (sheep-rk3368)
|
|
|
|
- Theobroma Systems RK3368-uQ7 SoM - Lion (lion-rk3368)
|
2020-01-09 18:46:22 +00:00
|
|
|
* rk3399
|
2020-05-22 14:14:55 +00:00
|
|
|
- 96boards RK3399 Ficus (ficus-rk3399)
|
|
|
|
- 96boards Rock960 (rock960-rk3399)
|
|
|
|
- Firefly-RK3399 (firefly_rk3399)
|
|
|
|
- Firefly ROC-RK3399-PC
|
|
|
|
- FriendlyElec NanoPC-T4 (nanopc-t4-rk3399)
|
|
|
|
- FriendlyElec NanoPi M4 (nanopi-m4-rk3399)
|
2021-03-26 12:37:10 +00:00
|
|
|
- FriendlyElec NanoPi M4B (nanopi-m4b-rk3399)
|
2020-05-22 14:14:55 +00:00
|
|
|
- FriendlyARM NanoPi NEO4 (nanopi-neo4-rk3399)
|
|
|
|
- Google Bob (chromebook_bob)
|
rockchip: rk3399: Add support for chromebook_kevin
Add support for Kevin, an RK3399-based convertible chromebook that is
very similar to Bob. This patch is mostly based on existing support for
Bob, with only minor changes for Kevin-specific things.
Unlike other Gru boards, coreboot sets Kevin's center logic to 925 mV,
so adjust it here in the dts as well. The rk3399-gru-kevin devicetree
has an unknown event code reference which has to be defined, set it
to the Linux counterpart. The new defconfig is copied from Bob with the
diffconfig:
DEFAULT_DEVICE_TREE "rk3399-gru-bob" -> "rk3399-gru-kevin"
DEFAULT_FDT_FILE "rockchip/rk3399-gru-bob.dtb" -> "rockchip/rk3399-gru-kevin.dtb"
VIDEO_ROCKCHIP_MAX_XRES 1280 -> 2400
VIDEO_ROCKCHIP_MAX_YRES 800 -> 1600
+TARGET_CHROMEBOOK_KEVIN y
With this Kevin can boot from SPI flash to a usable U-Boot prompt on the
display with the keyboard working, but cannot boot into Linux for
unknown reasons.
eMMC starts in a working state but fails to re-init, microSD card works
but at a lower-than-expected speed, USB works but causes a hang on
de-init. There are known workarounds to solve eMMC and USB issues.
Cc: Marty E. Plummer <hanetzer@startmail.com>
Cc: Simon Glass <sjg@chromium.org>
[Alper: commit message, resync config with Bob, update MAINTAINERS,
add to Rockchip doc, add Kconfig help message, set regulator]
Co-developed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
2021-12-24 13:43:46 +00:00
|
|
|
- Google Kevin (chromebook_kevin)
|
2020-05-22 14:14:55 +00:00
|
|
|
- Khadas Edge (khadas-edge-rk3399)
|
|
|
|
- Khadas Edge-Captain (khadas-edge-captain-rk3399)
|
|
|
|
- Khadas Edge-V (hadas-edge-v-rk3399)
|
|
|
|
- Orange Pi RK3399 (orangepi-rk3399)
|
|
|
|
- Pine64 RockPro64 (rockpro64-rk3399)
|
2023-04-26 02:23:56 +00:00
|
|
|
- Radxa ROCK 4C+ (rock-4c-plus-rk3399)
|
2023-07-19 16:33:57 +00:00
|
|
|
- Radxa ROCK 4SE (rock-4se-rk3399)
|
2023-04-26 02:23:56 +00:00
|
|
|
- Radxa ROCK Pi 4A/B/A+/B+ (rock-pi-4-rk3399)
|
|
|
|
- Radxa ROCK Pi 4C (rock-pi-4c-rk3399)
|
2020-05-22 14:14:55 +00:00
|
|
|
- Rockchip Evb-RK3399 (evb_rk3399)
|
|
|
|
- Theobroma Systems RK3399-Q7 SoM - Puma (puma_rk3399)
|
board: rockchip: Add Edgeble Neural Compute Module 6
Neural Compute Module 6(Neu2) is a 96boards SoM-CB compute module
based on Rockchip RK3588 from Edgeble AI.
General features:
- Rockchip RK3588
- up to 32GB LPDDR4x
- up to 128GB eMMC
- 2x MIPI CSI2 FPC
On module WiFi6/BT5 is available in the following Neu6 variants.
Neural Compute Module 6(Neu6) IO board is an industrial form factor
ready-to-use IO board from Edgeble AI.
IO board offers plenty of peripherals and connectivity options and
this patch enables basic eMMC and UART which is enough to successfully
boot Linux.
Neu6 needs to mount on top of this IO board in order to create a
complete Edgeble Neural Compute Module 6(Neu6) IO platform.
Boot log for the record,
DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x6
CH0 RX Vref:31.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:22.8%,23.8%
CH2 RX Vref:30.7%, TX Vref:22.8%,22.8%
CH3 RX Vref:30.7%, TX Vref:21.8%,21.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL 2023.01-00952-g1d1785a516-dirty (Jan 30 2023 - 19:53:55 +0530)
Trying to boot from MMC1
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-391-g856309329:derrick.huang
NOTICE: BL31: Built : 14:15:50, Jul 18 2022
INFO: ext 32k is not valid
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9
U-Boot 2023.01-00952-g1d1785a516-dirty (Jan 30 2023 - 19:53:55 +0530)
Model: Edgeble Neu6A IO Board
DRAM: 7.5 GiB (effective 3.7 GiB)
Core: 71 devices, 15 uclasses, devicetree: separate
MMC: mmc@fe2c0000: 0
Loading Environment from nowhere... OK
In: serial@feb50000
Out: serial@feb50000
Err: serial@feb50000
Model: Edgeble Neu6A IO Board
Net: No ethernet found.
Hit any key to stop autoboot: 0
=>
Add support for Edgeble Neu6 Model A IO Board.
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-01-30 14:57:49 +00:00
|
|
|
|
2023-04-21 15:59:19 +00:00
|
|
|
* rk3566
|
|
|
|
- Anbernic RGxx3 (rgxx3-rk3566)
|
|
|
|
|
2023-02-25 19:01:34 +00:00
|
|
|
* rk3568
|
|
|
|
- Rockchip Evb-RK3568 (evb-rk3568)
|
2023-07-22 14:02:15 +00:00
|
|
|
- Hardkernel ODROID-M1 (odroid-m1-rk3568)
|
board: rockchip: Add Pine64 Quartz64-A Board
The Pine64 Quartz64 Model A is a single-board computer based on the
Rockchip RK3566 SoC. The board features USB3, SATA, PCIe, HDMI, USB2.0,
CSI, DSI, eDP, eMMC, SD, and an e-paper parallel port, as well as a
20 pin GPIO header.
Features tested on a Quartz64-A 8GB v2.0 2021-04-27:
- SD-card boot
- eMMC boot
- PCIe/NVMe/AHCI
- USB host
Device tree is imported from linux v6.4.
Co-developed-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-07-30 12:26:42 +00:00
|
|
|
- Pine64 Quartz64-A Board (quartz64-a-rk3566_defconfig)
|
2023-07-30 12:26:44 +00:00
|
|
|
- Pine64 Quartz64-B Board (quartz64-b-rk3566_defconfig)
|
2023-07-30 12:26:47 +00:00
|
|
|
- Pine64 SOQuartz on Blade (soquartz-blade-rk3566_defconfig)
|
2023-07-30 12:26:45 +00:00
|
|
|
- Pine64 SOQuartz on Model A (soquartz-model-a-rk3566_defconfig)
|
board: rockchip: Add Edgeble Neural Compute Module 6
Neural Compute Module 6(Neu2) is a 96boards SoM-CB compute module
based on Rockchip RK3588 from Edgeble AI.
General features:
- Rockchip RK3588
- up to 32GB LPDDR4x
- up to 128GB eMMC
- 2x MIPI CSI2 FPC
On module WiFi6/BT5 is available in the following Neu6 variants.
Neural Compute Module 6(Neu6) IO board is an industrial form factor
ready-to-use IO board from Edgeble AI.
IO board offers plenty of peripherals and connectivity options and
this patch enables basic eMMC and UART which is enough to successfully
boot Linux.
Neu6 needs to mount on top of this IO board in order to create a
complete Edgeble Neural Compute Module 6(Neu6) IO platform.
Boot log for the record,
DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x6
CH0 RX Vref:31.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:22.8%,23.8%
CH2 RX Vref:30.7%, TX Vref:22.8%,22.8%
CH3 RX Vref:30.7%, TX Vref:21.8%,21.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL 2023.01-00952-g1d1785a516-dirty (Jan 30 2023 - 19:53:55 +0530)
Trying to boot from MMC1
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-391-g856309329:derrick.huang
NOTICE: BL31: Built : 14:15:50, Jul 18 2022
INFO: ext 32k is not valid
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9
U-Boot 2023.01-00952-g1d1785a516-dirty (Jan 30 2023 - 19:53:55 +0530)
Model: Edgeble Neu6A IO Board
DRAM: 7.5 GiB (effective 3.7 GiB)
Core: 71 devices, 15 uclasses, devicetree: separate
MMC: mmc@fe2c0000: 0
Loading Environment from nowhere... OK
In: serial@feb50000
Out: serial@feb50000
Err: serial@feb50000
Model: Edgeble Neu6A IO Board
Net: No ethernet found.
Hit any key to stop autoboot: 0
=>
Add support for Edgeble Neu6 Model A IO Board.
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-01-30 14:57:49 +00:00
|
|
|
|
|
|
|
* rk3588
|
2023-03-02 07:12:57 +00:00
|
|
|
- Rockchip EVB (evb-rk3588)
|
2023-06-11 06:57:09 +00:00
|
|
|
- Edgeble Neural Compute Module 6A SoM - Neu6a (neu6a-io-rk3588)
|
2023-06-11 06:57:13 +00:00
|
|
|
- Edgeble Neural Compute Module 6B SoM - Neu6b (neu6b-io-rk3588)
|
2023-02-22 09:05:12 +00:00
|
|
|
- Radxa ROCK 5B (rock5b-rk3588)
|
board: rockchip: Add Edgeble Neural Compute Module 6
Neural Compute Module 6(Neu2) is a 96boards SoM-CB compute module
based on Rockchip RK3588 from Edgeble AI.
General features:
- Rockchip RK3588
- up to 32GB LPDDR4x
- up to 128GB eMMC
- 2x MIPI CSI2 FPC
On module WiFi6/BT5 is available in the following Neu6 variants.
Neural Compute Module 6(Neu6) IO board is an industrial form factor
ready-to-use IO board from Edgeble AI.
IO board offers plenty of peripherals and connectivity options and
this patch enables basic eMMC and UART which is enough to successfully
boot Linux.
Neu6 needs to mount on top of this IO board in order to create a
complete Edgeble Neural Compute Module 6(Neu6) IO platform.
Boot log for the record,
DDR Version V1.08 20220617
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x6
CH0 RX Vref:31.7%, TX Vref:21.8%,21.8%
CH1 RX Vref:30.7%, TX Vref:22.8%,23.8%
CH2 RX Vref:30.7%, TX Vref:22.8%,22.8%
CH3 RX Vref:30.7%, TX Vref:21.8%,21.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL 2023.01-00952-g1d1785a516-dirty (Jan 30 2023 - 19:53:55 +0530)
Trying to boot from MMC1
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-391-g856309329:derrick.huang
NOTICE: BL31: Built : 14:15:50, Jul 18 2022
INFO: ext 32k is not valid
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9
U-Boot 2023.01-00952-g1d1785a516-dirty (Jan 30 2023 - 19:53:55 +0530)
Model: Edgeble Neu6A IO Board
DRAM: 7.5 GiB (effective 3.7 GiB)
Core: 71 devices, 15 uclasses, devicetree: separate
MMC: mmc@fe2c0000: 0
Loading Environment from nowhere... OK
In: serial@feb50000
Out: serial@feb50000
Err: serial@feb50000
Model: Edgeble Neu6A IO Board
Net: No ethernet found.
Hit any key to stop autoboot: 0
=>
Add support for Edgeble Neu6 Model A IO Board.
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-01-30 14:57:49 +00:00
|
|
|
|
2020-05-22 14:14:56 +00:00
|
|
|
* rv1108
|
|
|
|
- Rockchip Evb-rv1108 (evb-rv1108)
|
|
|
|
- Elgin-R1 (elgin-rv1108)
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-12-14 17:51:11 +00:00
|
|
|
* rv1126
|
|
|
|
- Edgeble Neural Compute Module 2 SoM - Neu2/Neu2k (neu2-io-r1126)
|
|
|
|
|
2020-01-09 18:46:22 +00:00
|
|
|
Building
|
|
|
|
--------
|
|
|
|
|
|
|
|
TF-A
|
|
|
|
^^^^
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
TF-A is required when building ARM64 Rockchip SoCs images.
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
To build TF-A:
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
git clone --depth 1 https://github.com/ARM-software/arm-trusted-firmware.git
|
2020-01-09 18:46:22 +00:00
|
|
|
cd arm-trusted-firmware
|
|
|
|
make realclean
|
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399
|
2022-04-16 15:09:50 +00:00
|
|
|
cd ..
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2021-08-20 17:27:59 +00:00
|
|
|
Specify the PLAT= with desired Rockchip platform to build TF-A for.
|
2020-01-09 18:46:22 +00:00
|
|
|
|
|
|
|
U-Boot
|
|
|
|
^^^^^^
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
git clone --depth 1 https://source.denx.de/u-boot/u-boot.git
|
|
|
|
cd u-boot
|
|
|
|
|
2022-04-16 15:09:51 +00:00
|
|
|
To build px30 boards:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
export BL31=../arm-trusted-firmware/build/px30/release/bl31/bl31.elf
|
|
|
|
make evb-px30_defconfig
|
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu-
|
|
|
|
|
2022-04-16 15:09:52 +00:00
|
|
|
To build rk3066 boards:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
make mk808_defconfig
|
|
|
|
make CROSS_COMPILE=arm-linux-gnueabihf-
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
To build rk3288 boards:
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-01-09 18:46:22 +00:00
|
|
|
|
|
|
|
make evb-rk3288_defconfig
|
2022-04-16 15:09:50 +00:00
|
|
|
make CROSS_COMPILE=arm-linux-gnueabihf-
|
|
|
|
|
|
|
|
To build rk3328 boards:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
export BL31=../arm-trusted-firmware/build/rk3328/release/bl31/bl31.elf
|
|
|
|
make evb-rk3328_defconfig
|
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu-
|
|
|
|
|
|
|
|
To build rk3368 boards:
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
export BL31=../arm-trusted-firmware/build/rk3368/release/bl31/bl31.elf
|
2020-01-09 18:46:22 +00:00
|
|
|
make evb-px5_defconfig
|
2022-04-16 15:09:50 +00:00
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu-
|
|
|
|
|
|
|
|
To build rk3399 boards:
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
export BL31=../arm-trusted-firmware/build/rk3399/release/bl31/bl31.elf
|
2020-01-09 18:46:22 +00:00
|
|
|
make evb-rk3399_defconfig
|
2022-04-16 15:09:50 +00:00
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu-
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2023-02-25 19:01:34 +00:00
|
|
|
To build rk3568 boards:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2023-02-13 22:27:42 +00:00
|
|
|
export BL31=../arm-trusted-firmware/build/rk3568/release/bl31/bl31.elf
|
|
|
|
[or]export BL31=../rkbin/bin/rk35/rk3568_bl31_v1.34.elf
|
2023-02-25 19:01:34 +00:00
|
|
|
export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.13.bin
|
|
|
|
make evb-rk3568_defconfig
|
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu-
|
|
|
|
|
2023-03-02 07:12:57 +00:00
|
|
|
To build rk3588 boards:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
export BL31=../rkbin/bin/rk35/rk3588_bl31_v1.33.elf
|
|
|
|
export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.09.bin
|
|
|
|
make evb-rk3588_defconfig
|
|
|
|
make CROSS_COMPILE=aarch64-linux-gnu-
|
|
|
|
|
2020-01-09 18:46:22 +00:00
|
|
|
Flashing
|
|
|
|
--------
|
|
|
|
|
2020-10-28 13:33:48 +00:00
|
|
|
1. Package the image with U-Boot TPL/SPL
|
|
|
|
-----------------------------------------
|
|
|
|
|
2020-01-09 18:46:22 +00:00
|
|
|
SD Card
|
|
|
|
^^^^^^^
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
All Rockchip platforms (except rk3128 which doesn't use SPL) are now
|
|
|
|
supporting a single boot image using binman and pad_cat.
|
2020-01-09 18:46:22 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
To write an image that boots from a SD card (assumed to be /dev/sda):
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2020-01-09 18:46:22 +00:00
|
|
|
|
|
|
|
sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64
|
|
|
|
sync
|
|
|
|
|
2020-05-24 17:32:13 +00:00
|
|
|
eMMC
|
|
|
|
^^^^
|
|
|
|
|
2021-08-20 17:27:59 +00:00
|
|
|
eMMC flash would probe on mmc0 in most of the Rockchip platforms.
|
2020-05-24 17:32:13 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Create GPT partition layout as defined in $partitions:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2020-05-24 17:32:13 +00:00
|
|
|
|
|
|
|
mmc dev 0
|
|
|
|
gpt write mmc 0 $partitions
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Connect the USB-OTG cable between the host and a target device.
|
|
|
|
|
|
|
|
Launch fastboot on the target with:
|
2020-05-24 17:32:13 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-05-24 17:32:13 +00:00
|
|
|
|
|
|
|
fastboot 0
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Upon a successful gadget connection the host shows the USB device with:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2020-05-24 17:32:13 +00:00
|
|
|
|
|
|
|
lsusb
|
2022-04-16 15:09:50 +00:00
|
|
|
# Bus 001 Device 020: ID 2207:330c Fuzhou Rockchip Electronics Company RK3399 in Mask ROM mode
|
|
|
|
|
|
|
|
Program the flash with:
|
2020-05-24 17:32:13 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-05-24 17:32:13 +00:00
|
|
|
|
|
|
|
sudo fastboot -i 0x2207 flash loader1 idbloader.img
|
|
|
|
sudo fastboot -i 0x2207 flash loader2 u-boot.itb
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Note:
|
|
|
|
|
|
|
|
For Rockchip 32-bit platforms the U-Boot proper image
|
2020-05-24 17:32:13 +00:00
|
|
|
is u-boot-dtb.img
|
|
|
|
|
2020-06-04 14:51:41 +00:00
|
|
|
SPI
|
|
|
|
^^^
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
The SPI boot method requires the generation of idbloader.img with help of the mkimage tool.
|
|
|
|
|
|
|
|
SPL-alone SPI boot image:
|
2020-06-04 14:51:41 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-06-04 14:51:41 +00:00
|
|
|
|
|
|
|
./tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin idbloader.img
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
TPL+SPL SPI boot image:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2020-06-04 14:51:41 +00:00
|
|
|
|
|
|
|
./tools/mkimage -n rk3399 -T rkspi -d tpl/u-boot-tpl.bin:spl/u-boot-spl.bin idbloader.img
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Copy SPI boot images into SD card and boot from SD:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2020-06-04 14:51:41 +00:00
|
|
|
|
|
|
|
sf probe
|
|
|
|
load mmc 1:1 $kernel_addr_r idbloader.img
|
|
|
|
sf erase 0 +$filesize
|
|
|
|
sf write $kernel_addr_r 0 ${filesize}
|
|
|
|
load mmc 1:1 ${kernel_addr_r} u-boot.itb
|
|
|
|
sf erase 0x60000 +$filesize
|
|
|
|
sf write $kernel_addr_r 0x60000 ${filesize}
|
|
|
|
|
2020-10-28 13:33:48 +00:00
|
|
|
2. Package the image with Rockchip miniloader
|
|
|
|
---------------------------------------------
|
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Image package with Rockchip miniloader requires rkbin [1].
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
git clone --depth 1 https://github.com/rockchip-linux/rkbin
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Create idbloader.img:
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
cd u-boot
|
|
|
|
./tools/mkimage -n px30 -T rksd -d ../rkbin/bin/rk33/px30_ddr_333MHz_v1.16.bin idbloader.img
|
|
|
|
cat ../rkbin/bin/rk33/px30_miniloader_v1.31.bin >> idbloader.img
|
|
|
|
sudo dd if=idbloader.img of=/dev/sda seek=64
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Create trust.img:
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
cd ../rkbin
|
|
|
|
./tools/trust_merger RKTRUST/PX30TRUST.ini
|
|
|
|
sudo dd if=trust.img of=/dev/sda seek=24576
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
Create uboot.img [2]:
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
.. code-block:: bash
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:50 +00:00
|
|
|
cd ../u-boot
|
|
|
|
../rkbin/tools/loaderimage --pack --uboot u-boot-dtb.bin uboot.img 0x200000
|
|
|
|
sudo dd if=uboot.img of=/dev/sda seek=16384
|
2020-10-28 13:33:48 +00:00
|
|
|
|
|
|
|
Note:
|
2022-04-16 15:09:50 +00:00
|
|
|
|
|
|
|
1. rkbin binaries are regularly updated, so it would be recommended to use the latest version.
|
|
|
|
2. 0x200000 is a load address and is an option for some platforms.
|
2020-10-28 13:33:48 +00:00
|
|
|
|
2022-04-16 15:09:52 +00:00
|
|
|
3. Package the RK3066 image with U-Boot TPL/SPL on NAND
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
Unlike later SoC models the rk3066 BootROM doesn't have SDMMC support.
|
|
|
|
If all other boot options fail then it enters into a BootROM mode on the USB OTG port.
|
2023-05-17 07:17:16 +00:00
|
|
|
This method loads TPL/SPL on NAND with U-Boot and kernel on SD card.
|
2022-04-16 15:09:52 +00:00
|
|
|
|
|
|
|
SD Card
|
|
|
|
^^^^^^^
|
|
|
|
|
2023-05-17 07:17:16 +00:00
|
|
|
U-Boot expects a GPT partition map and a boot directory structure with files on the SD card.
|
2022-04-16 15:09:52 +00:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
Partition Map for MMC device 0 -- Partition Type: EFI
|
|
|
|
Part Start LBA End LBA Name
|
|
|
|
1 0x00000040 0x00001f7f "loader1"
|
|
|
|
2 0x00004000 0x00005fff "loader2"
|
|
|
|
3 0x00006000 0x00007fff "trust"
|
|
|
|
4 0x00008000 0x0003ffff "boot"
|
|
|
|
5 0x00040000 0x00ed7fde "rootfs"
|
|
|
|
|
|
|
|
Make sure boot and esp flag are set for the boot partition.
|
|
|
|
Loader1 partition is not used by RK3066.
|
|
|
|
|
|
|
|
Boot partition:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
extlinux
|
|
|
|
extlinux.conf
|
|
|
|
|
|
|
|
zImage
|
|
|
|
rk3066a-mk808.dtb
|
|
|
|
|
2023-05-17 07:17:16 +00:00
|
|
|
To write a U-Boot image to the SD card (assumed to be /dev/sda):
|
2022-04-16 15:09:52 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo dd if=u-boot-dtb.img of=/dev/sda seek=16384
|
|
|
|
sync
|
|
|
|
|
|
|
|
NAND
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
Bring device in BootROM mode:
|
|
|
|
|
|
|
|
If bricked and no BootROM mode shows up then connect pin 8 and 9 of the NAND flash
|
|
|
|
with a needle while reconnecting to the USB OTG port to a PC.
|
|
|
|
|
|
|
|
Show connected devices with:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
lsusb
|
|
|
|
# Bus 001 Device 004: ID 2207:300a Fuzhou Rockchip Electronics Company RK3066 in Mask ROM mode
|
|
|
|
|
|
|
|
|
|
|
|
Create NAND image:
|
|
|
|
|
|
|
|
Size of SPL and TPL must be aligned to 2kb.
|
|
|
|
|
|
|
|
Program with commands in a bash script ./flash.sh:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-19 15:06:11 +00:00
|
|
|
printf "RK30" | dd conv=notrunc bs=4 count=1 of=u-boot-tpl.bin
|
|
|
|
truncate -s %2048 u-boot-tpl.bin
|
2022-04-16 15:09:52 +00:00
|
|
|
truncate -s %2048 u-boot-spl.bin
|
|
|
|
../tools/boot_merger --verbose config-flash.ini
|
|
|
|
../tools/upgrade_tool ul ./RK30xxLoader_uboot.bin
|
|
|
|
|
|
|
|
config-flash.ini:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
[CHIP_NAME]
|
|
|
|
NAME=RK30
|
|
|
|
[VERSION]
|
|
|
|
MAJOR=2
|
|
|
|
MINOR=21
|
|
|
|
[CODE471_OPTION]
|
|
|
|
NUM=1
|
|
|
|
Path1=30_LPDDR2_300MHz_DD.bin
|
|
|
|
[CODE472_OPTION]
|
|
|
|
NUM=1
|
|
|
|
Path1=rk30usbplug.bin
|
|
|
|
[LOADER_OPTION]
|
|
|
|
NUM=2
|
|
|
|
LOADER1=FlashData
|
|
|
|
LOADER2=FlashBoot
|
2023-03-19 15:06:11 +00:00
|
|
|
FlashData=u-boot-tpl.bin
|
2022-04-16 15:09:52 +00:00
|
|
|
FlashBoot=u-boot-spl.bin
|
|
|
|
[OUTPUT]
|
|
|
|
PATH=RK30xxLoader_uboot.bin
|
|
|
|
|
2020-01-09 18:46:22 +00:00
|
|
|
TODO
|
|
|
|
----
|
|
|
|
|
2021-08-20 17:27:59 +00:00
|
|
|
- Add Rockchip idbloader image building
|
|
|
|
- Add Rockchip TPL image building
|
2020-01-09 18:46:22 +00:00
|
|
|
- Document SPI flash boot
|
|
|
|
- Add missing SoC's with it boards list
|
|
|
|
|
|
|
|
.. Jagan Teki <jagan@amarulasolutions.com>
|
2020-10-28 13:33:48 +00:00
|
|
|
.. Wednesday 28 October 2020 06:47:26 PM IST
|