首页 > 其他分享 >如何首次编译RV1126的U-Boot

如何首次编译RV1126的U-Boot

时间:2023-03-16 23:13:52浏览次数:41  
标签:gcc git x86 boot RV1126 编译 Boot linux

一、获取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目录下。

标签:gcc,git,x86,boot,RV1126,编译,Boot,linux
From: https://www.cnblogs.com/huanliu/p/17224574.html

相关文章