D1 固件文件解构:
① boot0_sdcard.fex
② boot_package.fex
③ env.fex
④ env.fex
⑤ boot.vfat
⑥ rootfs
离线
boot_package.fex 包含文件:
① fw_jump.bin
② u-boot-sun20iw1p1.bin
③ board.dtb
boot_package.fex 使用这个命令生成:
./dragonsecboot -pack boot_package.cfg
boot_package.cfg 内容:
package]
;item=Item_TOC_name, Item_filename,
;item=scp, scp.fex
item=opensbi, fw_jump.bin
item=u-boot, u-boot-sun20iw1p1.bin
item=dtb, board.dtb
;item=logo, bootlogo.bmp.lzma
;item=shutdowncharge, bempty.bmp.lzma
;item=androidcharge, battery_charge.bmp.lzma
离线
boot.img:
mkbootimg --kernel Image --ramdisk ramdisk.img --board d1-nezha_min --base 0x40200000 --kernel_offset 0x0 --ramdisk_offset 0x01000000 -o boot.img
离线