Here are the steps for repacking the boot.img. Some involve running the commands via cygwin, others involve running them via the Windows Command Prompt.
The instructions for installing cygwin, extracting and repacking the boot.img were found here: http://www.freeyourandroid.com/guide/extract-edit-repack-boot-img-windows
Once you have setup cygwin, extract the attached files in a folder under your "home" folder in cygwin.
- copy boot.blob to the same folder and run the following via the Windows Command Prompt to extract the boot.img from the boot.blob:
Code:BlobUnpack.exe boot.blob ren boot.blob.LNX boot.img
- From the cygwin bash terminal window, switch to the same folder and run the following to extract the ramdisk from the boot.img:
You now have an out/ramdisk folder that contains the files you want to edit.Code:./extractboot boot.img
- Once done, repack the ramdisk and kernel into boot_new.img with the following command (via cygwin once again):
Code:./packboot
- then from the Command Prompt repack boot_new.img into boot2.blob using the following:
Code:blobpack -s boot2.blob blob.LNX boot_new.img
- You can now flash the boot.blob to the staging partition via a command in updater-script:
or by using adb while in recovery/android:Code:package_extract_file("/boot.blob", "/dev/block/mmcblk0p4");
Code:dd if=/sdcard/boot2.blob of=/dev/block/mmcblk0p4
Thanks a lot for the info. It worked like a charm. Only one thing to note on step 4 it has to be:
Code:
blobpack -s boot2.blob LNX boot_new.img
Anyway, onto some results:
*Drums*
Data mounted to mmcblk0p8 (Internal Storage):
Data mounted to mmcblk1p2 (External SD):
Now, according to androbench there was no significant change in random write speeds, while there was noticeable change on the other two benchmarks for "overall" write speed...
Aside from benchmarks though, during the small time that I've been running with /data on my external SD, downloading things from the market has been much faster (Xcope browser pro didn't even show the size of the download, it started and ended before it had the chance to)... I'm gonna run a restore with TB next and see if I see a noticeable change in the amount of time it takes (about 170 apps). Will report back later with more info.
Also, I'll be attaching the modified kernel soon for anyone who wants to try it (I'm trying to decide where to mount mmcblk0p8 to before I do that otherwise it all just becomes wasted space).
On a side note, it appears that by doing this you could easily have multiple android setups on different SD cards, since after booting with the modified kernel I essentially had AOKP exactly the way it was on first boot... so it might be an interesting thing for anyone with multiple SD Cards...
Attachments
-
Screenshot_2012-07-30-11-28-59.jpg23 KB · Views: 34,630
-
Screenshot_2012-07-30-11-32-44.jpg19.7 KB · Views: 34,673
-
Screenshot_2012-07-30-11-31-23.jpg25 KB · Views: 34,387
-
Screenshot_2012-07-30-11-24-09.jpg22.1 KB · Views: 34,354
-
Screenshot_2012-07-30-11-17-25.jpg19.4 KB · Views: 34,339
-
Screenshot_2012-07-30-11-09-11.jpg23.9 KB · Views: 34,413
Last edited: