|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +# RK3568 BSP Introduction |
| 6 | + |
| 7 | +[中文页]() | English |
| 8 | + |
| 9 | +## 1. Introduction |
| 10 | + |
| 11 | +RK3568 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. |
| 12 | + |
| 13 | +This 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. |
| 14 | + |
| 15 | +## 2. Compiling |
| 16 | + |
| 17 | +Usage ARM Developer GNU ToolChain, it support Linux and Windows: |
| 18 | + |
| 19 | +```plaintext |
| 20 | +https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/ |
| 21 | +``` |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +Download the `xxx-aarch64-none-elf` of x86_64 hosted platform, set the `RTT_EXEC_PATH` is system environment after decompress the binary. |
| 26 | + |
| 27 | +Enter directory `rt-thread/bsp/qemu-virt64-aarch64` and input: |
| 28 | + |
| 29 | +```plaintext |
| 30 | +scons |
| 31 | +``` |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +## 3. Execution |
| 36 | + |
| 37 | +RK3568 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)). |
| 38 | + |
| 39 | +After 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: |
| 40 | + |
| 41 | +```shell |
| 42 | +fatload mmc 1:1 0x208000 /rtthread.bin;dcache flush;go 0x208000 |
| 43 | +``` |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +After modifying the script, build a binary script `boot.scr ` in this partition: |
| 48 | + |
| 49 | +```shell |
| 50 | +# Install the uboot-mkimage package on Linux, or use MSYS2 to install the u-boot-tools package on Windows |
| 51 | +mkimage -C none -A arm -T script -d boot.cmd boot.scr |
| 52 | +``` |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +According 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. |
| 57 | + |
| 58 | +```plaintext |
| 59 | +heap: [0x002663f0 - 0x042663f0] |
| 60 | +
|
| 61 | + \ | / |
| 62 | +- RT - Thread Operating System |
| 63 | + / | \ 4.1.0 build Mar 19 2022 17:17:29 |
| 64 | + 2006 - 2022 Copyright by RT-Thread team |
| 65 | +Hi, this is RT-Thread!! |
| 66 | +msh /> |
| 67 | +``` |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +## 4. Condition |
| 72 | + |
| 73 | +| Driver | Condition | Remark | |
| 74 | +| ------ | --------- | ------- | |
| 75 | +| UART | Support | UART0~9 | |
0 commit comments