• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

applications/21-Aug-2025-

driver/21-Aug-2025-

.config A D21-Aug-202548.1 KiB1,4711,361

Kconfig A D21-Aug-2025438 2316

README.md A D21-Aug-20252.4 KiB5640

README_zh.md A D21-Aug-20252.5 KiB5942

SConscript A D21-Aug-2025312 1511

SConstruct A D21-Aug-2025783 3022

link.lds A D21-Aug-20253.8 KiB147127

rtconfig.h A D21-Aug-20259.8 KiB463125

rtconfig.py A D21-Aug-20251.4 KiB5440

README.md

1# RK3568 BSP Introduction
2
3[中文页](README_zh.md) | English
4
5## 1. Introduction
6
7RK3568 is a general-purpose SOC, quad-core 64-bit Cortex-A55 processor, with 22nm lithography process, has frequency up to 2.0GHz and Mali G52 GPU, support 4K decoding and 1080P encoding. Support mangy interfaces such as SATA/PCIE/USB3.0, an 0.8T NPU for lightweight AI applications. Support dual Gigabit Ethernet ports, LPDDR4 memory, etc.
8
9This project ported RT-Thread on RK3568, you can use the RADXA ROCK 3A version of the RK3568 in low-priced, which can even replace the Raspberry Pi 4B.
10
11## 2. Compiling
12
13Usage ARM Developer GNU ToolChain, it support Linux and Windows:
14```
15https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/
16```
17Download the `xxx-aarch64-none-elf` of x86_64 hosted platform, set the `RTT_EXEC_PATH` is system environment after decompress the binary.
18
19Enter directory `rt-thread/bsp/qemu-virt64-aarch64` and input:
20```
21scons
22```
23
24## 3. Execution
25
26RK3568 has different Kernel install methods according to different boardsit, recommend to install into the SD card: ([Official](https://wiki.t-firefly.com/en/ROC-RK3568-PC/hardware_doc.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/install/microSD)).
27
28After install Kernel, storage the `rtthread.bin` to EFI partition (the second partition), and add this line in the front of `boot.cmd` in this partition:
29```shell
30fatload mmc 1:1 0x208000 /rtthread.bin;dcache flush;go 0x208000
31```
32After modifying the script, build a binary script `boot.scr ` in this partition:
33```shell
34# Install the uboot-mkimage package on Linux, or use MSYS2 to install the u-boot-tools package on Windows
35mkimage -C none -A arm -T script -d boot.cmd boot.scr
36```
37
38According to different boards, the serial port can support up to UART0~9, this project uses UART2 ([Official](https://wiki.t-firefly.com/en/ROC-RK3568-PC/debug.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/dev/serial-console)) by default, the baud rate is 1500000, please make sure that the serial port used supports this baud rate.
39
40```
41heap: [0x002663f0 - 0x042663f0]
42
43 \ | /
44- RT -     Thread Operating System
45 / | \     4.1.0 build Mar 19 2022 17:17:29
46 2006 - 2022 Copyright by RT-Thread team
47Hi, this is RT-Thread!!
48msh />
49```
50
51## 4. Condition
52
53| Driver | Condition | Remark |
54| ------ | --------- | ------ |
55| UART   | Support   | UART0~9 |
56

README_zh.md

1# RK3568 板级支持包说明
2
3中文页 | [English](README.md)
4
5## 1. 简介
6
7RK3568 是一款定位中高端的通用型 SOC,采用 22nm 制程工艺,集成四核 2GHz,Cortex-A55 架构和 Mali G52 GPU,支持 4K 解码和 1080P 编码。支持 SATA/PCIE/USB3.0 等各类型外围接口,内置独立的 0.8T NPU,可用于轻量级 AI 应用。支持双千兆以太网口,LPDDR4 内存等。
8
9这份 RT-Thread BSP是针对 RK3568 的一份移植。开发者可选择使用 RADXA ROCK 3A 版本的 RK3568 廉价体验,其甚至可超量替代树莓派4B。
10
11## 2. 编译说明
12
13建议使用ARM Developer GNU交叉编译工具链,目前支持Linux/Windows平台:
14```
15https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/
16```
17下载x86_64 Hosted平台下载对应的`xxx-aarch64-none-elf`二进制包,解压后设置`RTT_EXEC_PATH`环境变量为该编译器的bin目录下即可。
18
19进入到`rt-thread/bsp/rockchip/rk3568`目录进行输入:
20```
21scons
22```
23可以看到正常生成`rtthread.elf`与`rtthread.bin`文件。
24
25或者通过 `scons --exec-path="GCC工具链路径"` 命令,在指定工具链位置的同时直接编译。
26
27## 3. 执行
28
29RK3568 根据不同的开发板实现有不同的 Kernel 烧写方式,推荐烧录进 SD 卡:([官方板](https://wiki.t-firefly.com/zh_CN/ROC-RK3568-PC/hardware_doc.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/install/microSD))。
30
31在烧写完 Kernel 后,将`rtthread.bin`放入 EFI 分区(第二分区),并在该分区的`boot.cmd`最前面中添加如下行:
32```shell
33fatload mmc 1:1 0x208000 /rtthread.bin;dcache flush;go 0x208000
34```
35修改脚本后,在该分区生成二进制脚本`boot.scr`:
36```shell
37# Linux 下安装 uboot-mkimage 软件包,Windows 下使用 MSYS2 安装 u-boot-tools 软件包
38mkimage -C none -A arm -T script -d boot.cmd boot.scr
39```
40
41根据不同的开发板实现串口最多可支持到 UART0~9,本工程默认使用 UART2([官方板](https://wiki.t-firefly.com/zh_CN/ROC-RK3568-PC/debug.html)|[RADXA ROCK 3A](https://wiki.radxa.com/Rock3/dev/serial-console)),波特率 1500000,请确保使用的串口支持该波特率。
42
43```
44heap: [0x002663f0 - 0x042663f0]
45
46 \ | /
47- RT -     Thread Operating System
48 / | \     4.1.0 build Mar 19 2022 17:17:29
49 2006 - 2022 Copyright by RT-Thread team
50Hi, this is RT-Thread!!
51msh />
52```
53
54## 4.支持情况
55
56| 驱动 | 支持情况  |  备注  |
57| ------ | ----  | :------:  |
58| UART | 支持 | UART0~9 |
59