系統 - Debian - Kernel - Extract DTB from zImage



參考資訊:
https://github.com/PabloCastellano/extract-dtb

步驟如下:

$ sudo pip3 install extract-dtb

$ file zImage 
    zImage: gzip compressed data, max compression, from Unix, original size 6776178

$ extract-dtb -n zImage 
    Found 3 appended dtbs

$ extract-dtb zImage -o out
    Dumped 00_kernel, start=0 end=14673217
    Dumped 01_dtbdump_YQualcomm_Technologies,_Inc._MSM_8998_V2_SKUK_T5.dtb, start=14673217 end=15138746
    Dumped 02_dtbdump_Qualcomm_Technologies,_Inc._MSM_8998_V2_SKUK_T5.dtb, start=15138746 end=15603873
    Dumped 03_dtbdump_Qualcomm_Technologies,_Inc._MSM_HAMSTER_RUMI.dtb, start=15603873 end=15992040
    Extracted 3 appended dtbs + kernel to out