mirror of
https://github.com/xiaolu/mkbootimg_tools.git
synced 2026-02-13 13:39:30 +01:00
41c21139ece7e05568bcfed973055dbf62b881ca
file is statically compiled and bumped to version 5.24 Updated mkboot script to use file and magic.mgc for handling lzop compression types and removed previous workaround. TODO - still need to compile lzop statically and include binary with project Busybox lzop is still being used so if your busybox does not support lzop then it will not work
mkbootimg_tools
Unpack and repack boot.img,support dtb(dt.img):
xiaolu@xiaolu-ubuntu64:~/e330s$ mkboot recoveryksuamg5.img ksuamg
Unpack & decompress recoveryksuamg5.img to ksuamg
kernel : /home/xiaolu/work/initramfs/s4/e330s/ksuamg5/zImage
ramdisk : /home/xiaolu/work/initramfs/s4/e330s/ksuamg5/ramdisk.gz
page_size : 2048
base_addr : 0x00000000
kernel size : 6911360
kernel_addr : 0x00008000
ramdisk_size : 2685222
ramdisk_addr : 0x02000000
second_size : 0
second_addr : 0x00f00000
dtb_size : 1427456
tags_addr : 0x01e00000
cmdline : console=null androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x3F
Unpack completed.
xiaolu@xiaolu-ubuntu64:~/e330s$ mkboot ksuamg5 recovery.img
mkbootimg from ksuamg5/img_info.
kernel : /home/xiaolu/work/initramfs/s4/e330s/ksuamg5/zImage
ramdisk : /home/xiaolu/work/initramfs/s4/e330s/ksuamg5/new_ramdisk.gz
page_size :
base_addr : 0x00000000
kernel size : 6911360
kernel_addr : 0x00008000
ramdisk_size : 2685222
ramdisk_addr : 0x02000000
second_size :
second_addr :
dtb_size : 1427456
dtb_img : dt.img
tags_addr : 0x01e00000
cmdline : console=null androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x3F
Kernel size: 6911360, new ramdisk size: 3416778, recovery.img: 11759616.
recovery.img has been created.
...
Create a dt.img:
xiaolu@xiaolu-ubuntu64:/media/diskd/kernel/SHV-E330S_JB_Opensource/Kernel$ scripts/dtbTool -s 2048 -o arch/arm/boot/dt.img -p scripts/dtc/ arch/arm/boot/
DTB combiner:
Input directory: '/media/diskd/kernel/SHV-E330S_JB_Opensource/Kernel/arch/arm/boot/'
Output file: '/media/diskd/kernel/SHV-E330S_JB_Opensource/Kernel/arch/arm/boot/dt.img'
Found file: msm8974-sec-ks01-r03.dtb ... chipset: 2114015745, platform: 3, rev: 0
Found file: msm8974-sec-ks01-r07.dtb ... chipset: 2114015745, platform: 7, rev: 0
Found file: msm8974-sec-ks01-r06.dtb ... chipset: 2114015745, platform: 6, rev: 0
Found file: msm8974-sec-ks01-r04.dtb ... chipset: 2114015745, platform: 4, rev: 0
Found file: msm8974-sec-ks01-r11.dtb ... chipset: 2114015745, platform: 11, rev: 0
Found file: msm8974-sec-ks01-r02.dtb ... chipset: 2114015745, platform: 2, rev: 0
Found file: msm8974-sec-ks01-r00.dtb ... chipset: 2114015745, platform: 0, rev: 0
Found file: msm8974-sec-ks01-r05.dtb ... chipset: 2114015745, platform: 5, rev: 0
Found file: msm8974-sec-ks01-r01.dtb ... chipset: 2114015745, platform: 1, rev: 0
=> Found 9 unique DTB(s)
Generating master DTB... completed
dtbToolCM support dt-tag & dtb v2(https://github.com/CyanogenMod/android_device_qcom_common/tree/cm-11.0/dtbtool):
dtbToolCM -s 2048 -d "htc,project-id = <" -o arch/arm/boot/dt.img -p scripts/dtc/ arch/arm/boot/
Description
Languages
Shell
100%