如何首次编译RV1126的Kernel

一、获取源码

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

三、安装必要的软件库

 sudo apt-get update
 sudo apt-get upgrade
 sudo apt-get install python3
 sudo ap-gett install bison
 sudo apt-get install flex
 sudo apt-get install genext2fs
 sudo apt-get install libssl-dev
 sudo apt-get install lzop

四、链接python环境

 sudo ln -s /usr/bin/python3 /usr/bin/python

五、编译

 cd kernel
 ./make-linux.sh arm

 

 
posted @ 2023-03-16 22:52  liu-huan  阅读(178)  评论(0编辑  收藏  举报