pritsgunday
Newbie
cpio is not found then how to unzip
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
cpio is not found then how to unzip
Your busybox does not have cpio as an applet.
thank u. i just updated busybox and problm solved
hi . i did all the things as u said. but problem is when i try to rebuild then it says --ramdisk not found. is there something wrong ? ramdisk folder permission is rwxrwrwx but inside that folder all permissions are --rwxr-x . is there problem with permission ?? actually my frnd has same device micromax a51 bolt. but his phone boots into revovery and my phone dosnt boot in recovery. so i replaced all files from his recovery.img > ramdisk to mine. can u help me ?
gunzip -c ../ramdisk.cpio.gz | cpio -i
mkbootfs ./ramdisk | gzip > ramdisk.gz
Hello friends, I'm back again with something I wish to share with you all. I have compiled three files to work flawlessly for ARM devices which will allow users to unpack, edit, and repack their boot.img without the use of a PC and all straight from their device.
---unmkbootimg, mkbootfs, mkbootimg---
If you would like the source then leave a request here and I will PM it to you.
Note:
-- The mkbootimg binary is based upon the AOSP with some added modifications to work in conjunction with unmkbootimg.
-- The unmkbootimg binary is based on the original mkbootimg source but with reverse engineering to compliment its helpful use in extraction and thus providing the needed command to rebuild properly.
-- The mkbootfs binary is based on the source provided within the dsixda kitchen to insure the proper structural repacking of the ramdisk, etc.
Requirements:
-- BusyBox (cpio, gunzip and gzip is mandatory)
-- /System Write Permissions (Does not need to be a modified kernel)
-- Terminal Emulator
-- ES File Explorer (or similar)
-- Hex Editor (or use of DD)
-- Unzip boot_manipulation.zip on your device and copy the three files over to /system/bin. Those three files inside the .zip will be named unmkbootimg, mkbootfs and mkbootimg.
-- EDIT: I have included a flashable zip for these files.
-- Set permissions to rwxr-xr-x (755) on each binary. Note: The flash zip does this already.
-- Open up your android terminal emulator.
-- Now go ahead and pull your boot.img from your device (or use another one if you wish). Here is an example:
Code:root@android:/ # [COLOR="Red"]dd if=/dev/block/mmcblk0p20 of=/data/local/tmp/boot.img[/COLOR] dd if=/dev/block/mmcblk0p20 of=/data/local/tmp/boot.img 32768+0 records in 32768+0 records out 16777216 bytes transferred in 1.496 secs (11214716 bytes/sec) root@android:/ #
-- Open up your boot.img with the Hex Editor and look for: ANDROID!. Remove everything before it so that the ANDROID! header is the first to be read then save it over top of the boot.img. NOTE: This is only required if you are using a stock boot.img. Here is an example:
Code:Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 [COLOR="red"]A5 F0 BA B7 B0 43 E3 F8 3C E1 63 55 AE 75 C6 69
hi i am facing another problemi followed all steps for recovery.img and after creating modrecovery.img, i mereged this modrecovery.img tp mtdblock10 (my recovery partition) by this command : cat /sdcard/modrecovery.img > /dev/block/mtdblock10 and it was successful. ok now i edited my boot.img and created modboot.img . placed this modboot.img to sdcard and tried to merge this in my boot partition i.e. mtdblock9 by this command : cat /sdcard/modboot.img > /dev/block/mtdblock9 but it says that
write : operation not permitted . what to do now ?
fastboot flash boot boot.img
Fastboot is not supported for this deviceFlash it with fastboot.
Code:fastboot flash boot boot.img
dd if=/sdcard/modboot.img of=/dev/block/mtdblock9
Then try using the command dd.
Code:dd if=/sdcard/modboot.img of=/dev/block/mtdblock9
If that fails then you will need to write an updater script which will push the image to your partition by use of a flashable zip.
dont waste time on me 



thanks a lot for your time. i am angry because i bought micromax a51 bolt. worst mobile ever. thanks a lot but anything not supported in this device. flashtype of this device is not recognized. thanks a lot.dont waste time on me
![]()
![]()
Does your device have a custom recovery? If it does, I can make you a flashable zip really quick. All you will need to do is put the modboot.img at the root of the zip and then boot into your custom recovery to write it to your partition. Your device has to be able in some way write the partition. How else would your device even have a Rom to begin with ;-)

Hi. Thanks a lot for ur reply and thanks a lot for giving ur precious time to me. 1st of all let me tell u about this shit device. This device is based on broadcom process. No custom recovery is released yet. M also trying to port cwm in this device. This device config is very typical. Only 151 mb ram is the main drawback of this device and kernel dont support swap. Its all waste of time. M going to buy new device. My rating for this is 0 out of 100. Thanks for ur time![]()
.
i will try this too. by the way this process of unpack and repack is awesome. i think there is some problem in my partition. i edited recovery.img and copied it to mtdblock10 . it was successful. but boot.img cant be written to mtdblock9 ok. today i reflashed my device. and rooted it. and again tried to copy recovery.img to mtdblock10 but this it was not successful. i will have to go deeply grrrr :-D lol thanks a lot by the way. the main problem is. there is no forum anywhere for this device 
my device right now to complete stock and still root it.
HI friend. I just enabled the write permission for boot and recovery partition by xml editing in firmware file. Ok i just want a little help, why my device dont show recovery menu in recovery mode ? My friend has same device but when he boot his device in recovery mode by pressing volume up power key and home touch then he can access recovery menu. Even we r 5 frnds and only his device shows recovery menu. Any idea ??
Thank you for this ModdingMyMind! May I have help please- I've followed your instructions and having trouble extracting ramdisk.cpio.gz to ramdisk folder, I'm not sure if the commands using are correct. Nothing is extracted, here's what I did;
![]()
Can I have commands needed to successfully extract?
cd ramdisk
gunzip -c ../ramdisk.cpio.gz | cpio -i
I'm having trouble again, I thought it would be a good idea to replace the boot.img in a custom rom and flash it. Nope, hung at splash screen. I read that the binaries need to be executed from /system partition, is it okay to do unpacking and rebuilding on sdcard? I only added 2 lines in default.prop, so I didn't make extensive changes. How can I write it straight in, it's at dev/block/mmcblk0p23?
dd if=/sdcard/boot.img of=/dev/block/mmcblk0p23
cat /sdcard/boot.img > /dev/block/mmcblk0p23
Here's couple screenies
![]()
![]()
It's Anykernel that you are using needless to say. I had to debunk that zip for my device because it just did not want to work and decided to write my own called, MyMinds_Kernel_Swap. Uses my own static precompiled binaries and a pretty legit script.