[RK3399][Android7.1] Uboot 固件生成方式
来源:互联网 发布:淘宝提前收款怎么还款 编辑:程序博客网 时间:2024/06/05 04:22
Uboot: v2017.02
Board: Firefly-RK3399
RK Uboot有两种类型的固件生成方式。
一种是uboot作为first level bootloader,那么uboot就只有一个bin文件,例如rk3288平台的就是RK3288UbootLoader_V2.30.10.bin
另外一种是uboot作为second level bootloader,那么uboot就只是一个image, 例如rk3399平台的就是uboot.img
是否作为second level bootloader通过宏CONFIG_SECOND_LEVEL_BOOTLOADER来控制,在rk3399_defconfig中有定义。
CONFIG_SYS_EXTRA_OPTIONS="RKCHIP_RK3399,PRODUCT_MID,NORMAL_WORLD,SECOND_LEVEL_BOOTLOADER,BAUDRATE=1500000"
如果有定义了CONFIG_MERGER_MINILOADER(事实上CONFIG_SECOND_LEVEL_BOOTLOADER定义后此宏也就被打开了),Uboot会合并mini loader bin和配置。
Makefile中实现:
ifdef CONFIG_SECOND_LEVEL_BOOTLOADER $(if $(CONFIG_MERGER_MINILOADER), ./tools/boot_merger ./tools/rk_tools/RKBOOT/$(RKCHIP)MINIALL.ini &&) \ $(if $(CONFIG_MERGER_TRUSTIMAGE), ./tools/trust_merger $(if $(CONFIG_RK_TRUSTOS), --subfix) \ ./tools/rk_tools/RKTRUST/$(RKCHIP)TRUST.ini &&) \ $(if $(CONFIG_MERGER_TRUSTOS), ./tools/loaderimage --pack --trustos $(RK_TOS_BIN) trust.img &&) \ ./tools/loaderimage --pack --uboot u-boot.bin uboot.imgelse ./tools/boot_merger --subfix "$(RK_SUBFIX)" ./tools/rk_tools/RKBOOT/$(RKCHIP).iniendif # CONFIG_SECOND_LEVEL_BOOTLOADER
解析之后对应的ini文件是 tools/rk_tools/RKBOOT/RK3399MINIALL.ini
使用的mini loader bin文件是 tools/rk_tools/bin/rk33/rk3399_miniloader_v1.06.bin
最终输出文件是 rk3399_loader_v1.08.106.bin
阅读全文
1 0
- [RK3399][Android7.1] Uboot 固件生成方式
- [RK3399][Android7.1] Uboot重要文件及目录
- [RK3399][Android7.1] Uboot所用交叉编译工具链
- [RK3399][Android7.1] Uboot编译所用平台配置文件
- FireFly-RK3399 技术简报:Android7.1代码发布和固件更新
- [RK3399][Android7.1] Ubuntu 编译环境安装依赖包失败
- [RK3399][Android7.1] Ubuntu编译环境OpenJDK 8安装
- [RK3399][Android7.1] Ubuntu 编译环境之Jdk版本切换
- [RK3399][Android7.1] Ubuntu编译环境内存要求
- [RK3399][Android7.1] Ubuntu查看具体内存信息
- [RK3399][Android7.1] 调试笔记 --- 串口打印输出乱码
- [RK3399][Android7.1] 调试笔记 --- 默认板子无法亮屏
- [RK3399][Android7.1] 调试笔记 --- 系统使用的分区文件
- [RK3399][Android7.1] 调试笔记 --- 系统使用的init.rc
- [RK3399][Android7.1]调试笔记 --- 添加一个新的Product/Device
- [RK3399][Android7.1] 调试笔记 --- 系统使用的zygote.rc文件
- [RK3399][Android7.1] 调试笔记 --- 确定用32还是64库
- RK3399 uboot MIPI屏调试总结
- 2. 为input元素设置vertical-align:middle; 3. 为label元素设置vertical-align:middle;display:inline-block;
- MSF学习笔记(8)
- JSP入门
- 陈生强互联网大会发声:现代金融要促进实体经济发展与普惠
- mysql死锁问题分析
- [RK3399][Android7.1] Uboot 固件生成方式
- Greenplum segment级锁问题排查方法
- Spring MVC中使用jackson的MixInAnnotations方法动态过滤JSON字段
- php实现银联网关/WAP支付接入
- 大数据有的这些哪些硬伤,伤到你了么?
- Java | 终结处理和垃圾回收
- 百鸡问题
- 码仔:为何别人的团队战斗力爆表?
- 服务端I/O性能大比拼,显然Go是冠军 其次Java、Node 最后是PHP