Download the RAMDISK from ANDROID tablet

1,249 views
Skip to first unread message

chainz

unread,
Nov 21, 2012, 12:38:07 AM11/21/12
to android...@googlegroups.com
Hello

         I'm using ANDROID ICS tablet. i need to change my init.rc, i guess ramdisk extraction is correct choice for this. but i can't get the ramdisk from my device. below i mentioned the details of my device.

# cat proc/partitions

major minor  #blocks  name

 179        0    7761920          mmcblk0
 179        1    6270396          mmcblk0p1
 179        2             1            mmcblk0p2
 179        3      32768           mmcblk0p3
 179        4      32768           mmcblk0p4
 179        5     393184          mmcblk0p5
 179        6     767968          mmcblk0p6
 179        7     262112          mmcblk0p7

# mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
/dev/block/mmcblk0p5 on /system type ext2 (rw,relatime)
/dev/block/mmcblk0p6 on /data type ext2 (rw,nosuid,nodev,relatime,errors=continu
e)
/dev/block/mmcblk0p7 on /cache type ext2 (rw,nosuid,nodev,relatime,errors=contin
ue)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,r
elatime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,
iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

Can any one help me how to download the ramdisk from my device for edit init.rc ?






chainz

unread,
Nov 28, 2012, 6:47:18 AM11/28/12
to android...@googlegroups.com
Hello Jonathan Clavin

               Some hardware problem in that tablet so its not booting. But i have another tablet. Here i've mentioned the details of this tablet

dev:    size   erasesize  name
mtd0: 00800000 00200000 "bootloader"
mtd1: 00800000 00400000 "logo"
mtd2: 00800000 00400000 "aml_logo"
mtd3: 00800000 00400000 "recovery"
mtd4: 00800000 00400000 "boot"
mtd5: 20000000 00400000 "system"
mtd6: 08000000 00400000 "factory"
mtd7: 08000000 00400000 "cache"
mtd8: 69000000 00400000 "userdata"
mtd9: 164000000 00400000 "NFTL_Part"

Mainly i need to edit the init.rc so i tried to get boot image from tablet by cat /dev/mtd/mtd4 > /sdcard/boot.img

While i trying to unpack the image by script (unmkbootimg/ unpack-bootimg.pl/ split_bootimg.pl) its stuck and showing the error as its invalid boot image. so i tried in all partitions but no use.

Whats the way to edit my init.rc, kindly give me solution to edit my init.rc



On Thursday, November 22, 2012 8:44:27 AM UTC+5:30, Jonathan Clavin wrote:
You have to "dd if, of" the block and try splitting it with a boot.img split tool. My guess would be either 3 or 4.

Jeremy Morales

unread,
Nov 28, 2012, 10:08:37 AM11/28/12
to android...@googlegroups.com
In order to edit the init.rc script you need to first dump the image, as Jonathan Clavin already said to do.
Once you dump it, you will then be able to unpack it, edit the init.rc script, and then be able to repack it.


Emeric VIGIER

unread,
Nov 28, 2012, 11:26:47 PM11/28/12
to android...@googlegroups.com
try:
# dd if=/dev/mtd/mtd4 of=/sdcard/boot.img conv=sync
(or)
# dd bs=4k if=/dev/mtd/mtd4 of=/sdcard/boot.img conv=sync

NB: watch out with long "dd", because "dd" is uninterruptible (ctrl+c). Processes currently doing IO are not kill'able.

Emeric

chainz

unread,
Nov 29, 2012, 12:45:12 AM11/29/12
to android...@googlegroups.com
Hello 
   Thanks for your reply.
   I tried your idea, but its showing error as " conv option disabled " how to enable the conv option or is there any other way.?

chainz

unread,
Nov 29, 2012, 2:41:32 AM11/29/12
to android...@googlegroups.com
Hi

      The command working fine with little moderation
   
      # busybox dd bs=4k if=/dev/mtd/mtd4 of=/sdcard/boot.img conv=sync

      but the boot.img still showing the error as its a not boot image, where the problem happened 
      Is there any other procedure to edit init.rc 

NEO

unread,
Nov 29, 2012, 4:42:19 AM11/29/12
to android...@googlegroups.com
Hi  
Maybe OEM encrypt their images.So you can not extract the ramdisk from the boot.img


2012/11/29 chainz <sangilikuma...@marudham.co.in>



--
Best regards !
Mingting Sun

Emeric VIGIER

unread,
Nov 29, 2012, 7:54:59 AM11/29/12
to android...@googlegroups.com
Can you try mtd3 partition?

Jeremy Morales

unread,
Nov 29, 2012, 8:12:43 AM11/29/12
to android...@googlegroups.com
No there is no other way to edit init.rc, you have to do it this way.

chainz

unread,
Nov 29, 2012, 9:02:36 AM11/29/12
to android...@googlegroups.com
Hi
     Ya i have tried mtd3 also, its showing same error as its not valid boot image.
Reply all
Reply to author
Forward
0 new messages