Confirmed users
125
edits
Line 5: | Line 5: | ||
===Obtaining a boot.img=== | ===Obtaining a boot.img=== | ||
To retrieve the boot.img from the device one can simply find the boot partition in the filesystem, and use <code>|adb pull|</code>. | |||
For the flame, for example: | |||
<pre> | <pre> | ||
adb pull /dev/block/platform/msm_sdcc.1/by-name/boot . | adb pull /dev/block/platform/msm_sdcc.1/by-name/boot . | ||
</pre> | </pre> | ||
Where the file specified is a friendly symlink to /dev/block/mmcblk0p7. For certain other devices the partitions lived under |/dev/mtd/| and the mappings could be found by executing |cat /proc/mtd| on the device. | Where the file specified above is a friendly symlink to <code>|/dev/block/mmcblk0p7|</code>. For certain other devices (such as the hamachi) the partitions lived under <code>|/dev/mtd/|</code> and the mappings could be found by executing <code>|cat /proc/mtd|</code> on the device. | ||
====Alternatively==== | ====Alternatively==== | ||
If | If one already has an image from the OEM or elsewhere, pulling the boot partition from the device is not necessary. | ||
===Splitting the boot.img=== | ===Splitting the boot.img=== |