Jump to content

Looking for un-pack pack perl scipts plesae


Recommended Posts

Posted

Could some kind dev on here please post (or pm me) the boot.img unpack and pack perl scipt for SF 2.1 please. Hexedit is a real pain, I'm sure someone on here must have a perl scipt for this.

Thankyou.. :)

Guest Arr Too
Posted (edited)

Use split_bootimg.pl from here. Note for when re-packing: base on Blade is 0x03000000.

Edited by Arr Too
Posted (edited)
Use split_bootimg.pl from here. Note for when re-packing: base on Blade is 0x03000000.

thanks Art Too, I'll give it a go..

EDIT: managed to get the mkbootfs and mkbootimg binaries loaded. All seems to be working fine except:

1. I've tried everywhere to pass the --base 0x03000000 parameter, but no joy. I can make the new boot.img fine but not when i try to pass this address.

2. The final new-boot.img is only 2.4MB whereas the boot.img extracted from the nandroid backup is 4.5MB. The # cat /dev/mtd/mtd1 > /sdcard/mtd1.img

also results in a 4.5MB file on my sdcard.

EDIT2: looks like i had a binary of mkbootimg that would not accept the --base paremeter. Downloaded a new one and now it packs fine with the address passing, however my second query still stands. Why is the packed new-boot.img only 2.4MB?

Any help please would be appreciated..thankyou..

EDIT3: It's ok, the file is supposed to be smaller. The end of the original boot.img is padded with 0xFF, so all is fine. I fastbooted the modified boot.img and everytihng worked as expected.

Thanks Arr Too, took a bit of reading to get there but finally managed it.

Edited by xzyk

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.