Firefox OS/Performance/Modifying boot.img: Difference between revisions

m
Line 5: Line 5:


===Obtaining a boot.img===
===Obtaining a boot.img===
<br>
To retrieve the boot.img from the device one can simply find the boot partition in the filesystem, and use <code>|adb pull|</code>.  
The way this was originally accomplished was to find the boot partition on the file system and run |adb pull|. So for the flame this was
 
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 you already have an image from the OEM or elsewhere ready to flash, you don't need to take the image from the device.
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===
Confirmed users
125

edits