By Unknown | At 7:22 pm | Label :
android
,
boot image
,
boot.img
,
delano blog
,
delanoister
,
how to
,
kernel
,
mkboot
,
repack
,
split
,
tips
,
tips trik
,
unpack
,
zImage
| 6 Comments
Hello, I wanna share on this blog about How to unpack, repack, split, mkboot boot.img
First, u need a file names Bootimgutils that u can download here.
After u done, u extract the file into a directory that u wanna and give it name (Like, Bootimgutils for the example)
.
Then, U grab boot.img file (U can grab it directly on onepack ROM. U can find boot.img on Code, if u use fullpack ROM)
*Don't forget to check the file permissions as executeable programs. Right-click, properties. Click on permissions tab
Go to terminal (Linux) or Cygwin (Windows)
Type these commands :
cd Bootimgutils
./split_bootimg.pl boot.img
mkdir ramdisk
cd ramdisk
gzip -dc ../boot.img-ramdisk.gz | cpio -i
cd ..
O.K. Up to ya to edit boot.img.
And, don't forget!
If u have done to change files.
U need to repack it anymore.
For that, u can type :
./repack_bootimg.pl boot.img-kernel ramdisk bootnew.img
or u can replace it.
U just need to change a command to be like this :
./repack_bootimg.pl boot.img-kernel ramdisk boot.img
*If u have backup of an original boot.img
Tips for unpack XZ compressed type:
change your bootimg-ramdisk.gz > bootimg-ramdisk.xz.
And, then open its ramdisk content,
Drag to ramdisk directory u made before.
And, repack it
./repack_bootimg.pl boot.img-kernel ramdisk boot.img
Happy packing!
CMIIW
^_^
First, u need a file names Bootimgutils that u can download here.
After u done, u extract the file into a directory that u wanna and give it name (Like, Bootimgutils for the example)
.
Then, U grab boot.img file (U can grab it directly on onepack ROM. U can find boot.img on Code, if u use fullpack ROM)
*Don't forget to check the file permissions as executeable programs. Right-click, properties. Click on permissions tab
Go to terminal (Linux) or Cygwin (Windows)
Type these commands :
cd Bootimgutils
./split_bootimg.pl boot.img
mkdir ramdisk
cd ramdisk
gzip -dc ../boot.img-ramdisk.gz | cpio -i
cd ..
O.K. Up to ya to edit boot.img.
And, don't forget!
If u have done to change files.
U need to repack it anymore.
For that, u can type :
./repack_bootimg.pl boot.img-kernel ramdisk bootnew.img
or u can replace it.
U just need to change a command to be like this :
./repack_bootimg.pl boot.img-kernel ramdisk boot.img
*If u have backup of an original boot.img
Tips for unpack XZ compressed type:
./split_bootimg.pl boot.img
mkdir ramdisk
cd ramdisk
change your bootimg-ramdisk.gz > bootimg-ramdisk.xz.
And, then open its ramdisk content,
Drag to ramdisk directory u made before.
And, repack it
./repack_bootimg.pl boot.img-kernel ramdisk boot.img
Happy packing!
CMIIW
^_^