blob: a194866383e8c31e53ab383d1382a3c400b5e9c7 (
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
|
# RK3300 BSP Introduction
[中文页](./README_ZH.md) | English
## 1. Introduction
### Product Details
https://www.rock-chips.com/a/cn/product/RK33xilie/index.html
### Condition
| SoC | Condition | Earlycon |
| ------ | ---- | ---- |
| RK3399Pro | - | - |
| RK3326 | - | - |
| RK3308 | Support | earlycon=uart8250,mmio32,0xff0a0000 |
| RK3328 | - | - |
| RK3399 | - | - |
## 2. Compiling
Use the RT-Thread Smart dedicated toolchain to compile:
```plaintext
wget https://github.com/RT-Thread/rt-thread/releases/download/v5.2.0/aarch64-linux-musleabi_for_x86_64-pc-linux-gnu_242520-979be38cba.tar.bz2
sudo tar -xf aarch64-linux-musleabi_for_x86_64-pc-linux-gnu_242520-979be38cba.tar.bz2 -C /opt
```
After downloading, extract the toolchain to the /opt directory.Then configure your environment variables:
```plaintext
export RTT_CC="gcc"
export RTT_EXEC_PATH="/opt/aarch64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/"
export RTT_CC_PREFIX="aarch64-linux-musleabi-"
export PATH="$RTT_EXEC_PATH:$PATH"
```
Navigate to the rt-thread/bsp/rockchip/rk3300 directory and enter:
```shell
scons --menuconfig
```
Select and pull the zlib package in the menu:

Then run the following commands to fetch packages and build the project:
```shell
source ~/.env/tools/scripts/pkgs --update
scons
```
|