./build.sh uboot:cmds
./build.sh uboot
cd u-boot
make rv1126_defconfig
make menuconfig
### 保存配置到对应的⽂件rv1126_defconfig
make savedefconfig
cp defconfig configs/rv1126_defconfig
//剖析 ./build.sh uboot
//调用 ./mk-loader.sh
build.sh -> mk-all.sh -> mk-loader.sh -> make.sh
这个就是调用的脚步
RK_UBOOT_CFG=rv1126
根据make rv1126_defconfig -j8
ARG_BOARD = rv1126
所以
./build.sh uboot
================================
cd u-boot
./make.sh rv1126
===============================
make rv1126_defconfig -j8
make -j8
============================================================================
============Start building kernel============
TARGET_KERNEL_VERSION =4.19
TARGET_KERNEL_ARCH =arm
TARGET_KERNEL_CONFIG =rv1126_defconfig
TARGET_KERNEL_CONFIG_FRAGMENTS =
TARGET_KERNEL_DTS =rv1126-evb-ddr3-v13
==========================================
经验证都是rv1126_defconfig
RK_KERNEL_CFG = rv1126_defconfig
RK_KERNEL_DTS_NAME = rv1126-evb-ddr3-v13
TARGET_KERNEL_CONFIG_FRAGMENTS是附加的config,在rv1126_defconfig基础上添加(后面补充)
rv1126-evb-ddr3-v13.dtb是指定好的
build.sh -> mk-all.sh -> mk-kernel.sh
//∴ ./build.sh kernel
//./build.sh lunch : rockchip_defconfig ///
make ARCH=arm rv1126_defconfig
make ARCH=arm rv1126-evb-ddr3-v13.img -j8
补充:
这里就修改了uboot的,调用rv1126-emmc-tb-defconfig
这里添加了RK_KERNEL_CFG_FRAGMENTS
覆盖rv1126_defconfig一些共有的
在文档快速开机的文档Rockchip_Developer_Guide_RV1126_RV1109_Battery_Product_CN.pdf
在这里说了
make ARCH=arm rv1126_defconfig rv1126-tb.config
cp .config rv1126.config
make ARCH=arm rv1126_defconfig rv1126-tb.config rv1126-battery-evb.config
ARCH=arm make menuconfig
# 进行修改
make savedefconfig
scripts/diffconfig -m rv1126.config .config > arch/arm/configs/rv1126-battery-evb.config
这里就是关于rv1126-xxxx.config的用法
===========================================================================
./build.sh rootfs
source envsetup.sh rockchip_rv1126_rv1109
make menuconfig
make update-defconfig
然后跟随mk-all.sh->mk-rootfs.mk ->mk-buildroot.sh
mk-rootfs.mk里面做了选择,是buildroot/yocto/debian
默认是buildroot
根据rockchip_rv1126_rv1109_defconfig里面的变量来编译
//∴ ./build.sh rootfs
//source envsetup.sh : rockchip_rv1126_rv1109
make -j8
///打包
./build.sh updateimg
///
./mkfirmware.sh
===========================================================================