Toybrick

中文 / EN
Toybrick»Wiki教程

源码下载

TB-RK3399ProD/TB-RK3399ProX

git clone https://github.com/rockchip-toybrick/kernel.git -b stable

TB-RK3568X

git clone https://github.com/rockchip-toybrick/kernel.git -b develop-4.19

TB-RV1126Ds

git clone https://github.com/rockchip-toybrick/kernel.git -b rv1126-develop-4.19

源码编译

1、在kernel同级目录创建prebuilts文件夹

2、在prebuilts目录下创建gcc文件夹

3、下载交叉编译工具(linux-x86)到gcc目录

git clone https://github.com/rockchip-toybrick/linux-x86.git -b master

4、编译kernel

TB-RK3399ProD

① ./make.sh linux prod
② ./make.sh android prod

TB-RK3399ProX

① ./make.sh linux prox
② ./make.sh android prox

TB-RV1126Ds

① ./make-linux.sh arm

TB-RK3568X

为android11编译kernel

① 下载boot.img到kernel目录的上级目录,下载地址:https://eyun.baidu.com/s/3c2W6VhI#sharelink/path=%2F

② ./make-android.sh arm64 ../ rk3568-toybrick-core-android-x0 11

③ 根据‘arch/arm64/boot/dts/rockchip/rk3568-toybrick.dtsi’里的pmu_io_domains配置各路vccio的电压

为Debian编译kernel

① ./make-linux.sh arm64

② 根据‘arch/arm64/boot/dts/rockchip/rk3568-toybrick.dtsi’里的pmu_io_domains配置各路vccio的电压

5、android生成boot.img,linux生成boot_linux.img

6、注意:如果在android工程目录下编译,则不需要1-3步操作。

驱动

显示驱动

1、MIPI显示

1080x1920,需要在板级dts中include文件:rk3399pro-toybrick-mipi-ILI9881D.dtsi

720x1280,需要在板级dts中include文件:rk3399pro-toybrick-mipi.dtsi

例如在rk3399pro-toybrick-prox-linux-mipi.dts文件中添加:

#include "rk3399pro-toybrick-mipi.dtsi"

2、EDP显示

1536x2048,需要在板级dts中include文件:rk3399pro-toybrick-edp.dtsi

例如在rk3399pro-toybrick-prox-linux-edp.dts文件中添加:

#include "rk3399pro-toybrick-edp.dtsi"

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


返回顶部