如何首次编译RV1126的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