最終更新:2016-06-28 (火) 13:46:48 (2857d)  

split_bootimg.pl
Top / split_bootimg.pl

Split appart an Android boot image created with mkbootimg. The format can be found in AOSP/system/core/mkbootimg/bootimg.h?

boot.imgを分割する。

http://www.enck.org/tools/split_bootimg_pl.txt

http://www.enck.org/tools.html

  • ./split_bootimg.pl boot.img 
    Page size: 2048 (0x00000800)
    Kernel size: 6599912 (0x0064b4e8)
    Ramdisk size: 1762005 (0x001ae2d5)
    Second size: 43008 (0x0000a800)
    Board name: 
    Command line: 
    Writing boot.img-kernel ... complete.
    Writing boot.img-ramdisk.gz ... complete.
    Writing boot.img-second.gz ... complete.

boot.imgのフォーマット

  • =format (from bootimg.h)
    ** +-----------------+
    ** | boot header     | 1 page
    ** +-----------------+
    ** | kernel          | n pages
    ** +-----------------+
    ** | ramdisk         | m pages
    ** +-----------------+
    ** | second stage    | o pages
    ** +-----------------+

メモ

  • a second file that happens to be the .dtb file.

メモ

  • boot.img-kernelとboot.img-ramdisk.gzが生成される

Cygwin

  • perlをインストール。

メモ

Nexus 7 (2013)

  • JSS15Q?
    $ split_bootimg.pl boot.img
    Page size: 2048 (0x00000800)
    Kernel size: 6640128 (0x00655200)
    Ramdisk size: 399979 (0x00061a6b)
    Second size: 0 (0x00000000)
    Board name:
    Command line: console=ttyHSL0,115200,n8 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3
    Writing boot.img-kernel ... complete.
    Writing boot.img-ramdisk.gz ... complete.

Nexus 5

  • MRA58K
    $ split_bootimg.pl boot.img
    Page size: 2048 (0x00000800)
    Kernel size: 8467616 (0x008134a0)
    Ramdisk size: 904360 (0x000dcca8)
    Second size: 0 (0x00000000)
    Board name:
    Command line: console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1
    Writing boot.img-kernel ... complete.
    Writing boot.img-ramdisk.gz ... complete.

ダウンロード

消えてるのでミラー

関連