如何首次编译RV1126的U-Boot

一、获取U-Boot源码

TB-RV1126Ds:

 git clone https://github.com/rockchip-toybrick/u-boot.git -b next-dev

二、获取 rkbin 源码

下载rkbin到u-boot同级目录:

 git clone https://github.com/rockchip-toybrick/rkbin -b develop-11.0 

三、获取交叉编译工具链

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

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

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

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

四、编译

1.进入u-boot文件夹:

 cd u-boot

2.修改 make.sh 设置:

 TOOLCHAIN_ARM32=../prebuilts/gcc/linux-x86/arm/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin
 TOOLCHAIN_ARM64=../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin

3.编译u-boot:

 ./make.sh rv1126

4.生成的固件在u-boot目录下。

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