[DEV TOOLS] - Pack & Repack Boot.img Files - for Windows USERS

Status
Not open for further replies.
Search This thread

pikachukaki

Senior Member
Jan 27, 2012
5,046
2,749
Thessaloníki, Greece
Thx for the app but i have an empty ramdisk folder...and all of the ramdisk files can't created or newer or same age version exists...cydwin won't let me copy the log...im using huawei not SE phone..if it has something to do!! But i can see the contents at boot.img-ramdisk.gz
 

danist727

Senior Member
Mar 3, 2012
333
184
Hong Kong
Thanks but please mirror to other filehoster because mf is buggy on my phone

Sent from my WT19i using xda premium
 
Last edited:

ascariz

Senior Member
Jul 31, 2008
640
127
$ ./extractboot boot.img
./extractboot: ./split_bootimg.pl: /usr/bin/perl: bad interpreter: Permission denied
./extractboot: line 17: cpio: command not found
gzip: ../../boot.img-ramdisk.gz: No such file or directory


what i missed here?
edit: opps. missed the REQUIRED packages. testing again.
 
Last edited:
  • Like
Reactions: shag_on_e

thomas.raines

Recognized Developer
Jun 23, 2011
2,200
3,914
Hutto
$ ./extractboot boot.img
Android Magice not found in ./boot.img/ Giving up.

gzip: ../../boot.img-ramdisk.gz: unexpected end of file
cpio: premature end of archive

Any help with this error? I am trying to split and edit a custom CM9/ICS boot.img
 

maxdamage2122

Senior Member
Nov 16, 2007
721
205
This isn't working for me on my htc evo 4g lte. I am unpacking the stock boot.img and then repacking it with NO changes and get bootloops.
 

stef67000

Senior Member
Apr 22, 2012
270
402
your image png should not exceed 20KB and your logo.rle should not exceed 60kb Otherwise you will almost always bootloop ;)
 

plopingo

Senior Member
May 12, 2010
892
188
40
Paris
I've tried to unpack the last boot.img from cm9 RC2 to get the new cwm 6.x but I have an issue

Code:
$ ./extractboot boot.img
Page size: 2048 (0x00000800)
Kernel size: 3229308 (0x0031467c)
Ramdisk size: 1789254 (0x001b4d46)
Second size: 0 (0x00000000)
Board name:
Command line:
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
./extractboot: line 17: cpio: command not found
 

Attachments

  • boot.img
    4.8 MB · Views: 218
Last edited:

Bejda

Senior Member
Feb 12, 2011
2,869
1,946
$ ./extractboot boot.img
Android Magice not found in ./boot.img/ Giving up.

gzip: ../../boot.img-ramdisk.gz: unexpected end of file
cpio: premature end of archive

Any help with this error? I am trying to split and edit a custom CM9/ICS boot.img
Hello,I'm having the same error with CM9/10 ICS/JellyBean kernel boot.img,there are chances it comes from the kernel itself as it appears to be or should we better look into our configuration?
 

OmenHTX

Senior Member
Mar 13, 2012
408
872
POLAND
helo, i repacket doomlord kernel v22 and when im trying to flash it i got this error :

FAILED (remote: Wrong range:0x10008000-0x103202d7. Ok:0x00200000 - 0x03dfff)

It's somethink about size of kernel and "fake size maker" file, but i dont know how to fix it.
 

kagedws6

Senior Member
Nov 5, 2008
576
238
Mullica Hill, NJ
So I pulled a working one apart and replaced the kernel with the compiled one.

Code:
20472098@WOOCCD895794 ~
$ cd /boot

20472098@WOOCCD895794 /boot
$ ./extractboot boot.img
Page size: 2048 (0x00000800)
Kernel size: 4463500 (0x00441b8c)
Ramdisk size: 372027 (0x0005ad3b)
Second size: 0 (0x00000000)
Board name:
Command line: console=ttyHSL0,115200,n8 androidboot.hardware=qcom loglevel=0
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
2881 blocks

20472098@WOOCCD895794 /boot
$ ./packboot
Using base address 0x40200000
Using command line 'console=ttyHSL0,115200,n8 androidboot.hardware=qcom loglevel=0'
No errors

I then put it back together and I'm getting the boot.img is like half the original size (even tho the kernel files were pretty close to almost deadon the same size) and when I try to send to boot I get this

Code:
>fastboot boot boot_new.img
downloading 'boot.img'...
OKAY [  1.168s]
booting...
FAILED (remote: incomplete bootimage)
finished. total time: 1.168s

This is for a Pantech Burst (p9070) if that helps at all
Original boot.img
New repacked boot.img
 
Status
Not open for further replies.

Top Liked Posts