Porting Clockwork Recovery To Tablets

razor950

Member
Nov 25, 2010
71
47
I can't think of a better thread name but this post will let me know that your tablet doesn't have custom recovery and will let me create a recovery for your tablet. Most of the time getting a recovery up and running doesn't take too long, some tablets do but we can discuss that another time.

MUST HAVE ROOTED TABLET.

List your tablets brand and model
List your android version and kernel (about system shows both)
Let me know what buttons are available on the tablet(volume, camera, etc)

Either in ADB or in Terminal (Note that the actual outputs are examples of what the command will output :p)
1. Type cat /proc/mtd and the following will appear, not exactly the same of course. Keep the output of this saved for later.
Code:
cat /proc/mtd
dev: size erasesize name
mtd0: 00500000 00020000 "boot"
mtd1: 0a000000 00020000 "system"
mtd2: 00500000 00020000 "recovery"
mtd3: 00060000 00020000 "splash"
mtd4: 06000000 00020000 "cache"
mtd5: 0af00000 00020000 "userdata"
mtd6: 00500000 00020000 "logo"

2. Then based on whatever mtd# recovery and boot is, do the following replace the number in the mtd# with the output of the command above.
Code:
dd if=/dev/mtd/mtd2 of=/sdcard/recovery.img bs=4096
dd if=/dev/mtd/mtd0 of=/sdcard/boot.img bs=4096

3. Now that your done with that, run mount and keep that command saved.
Code:
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock1 /system yaffs2 rw 0 0
/dev/block/mtdblock5 /data yaffs2 rw 0 0
/dev/block/mtdblock4 /cache yaffs2 rw 0 0
/dev/block//vold/179:17 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid
=1015,fmask=0702,dmask=0702,allow_utime=0020,codep age=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,flush 0 0
/dev/block//vold/179:1 /sdcard2 vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid
=1015,fmask=0702,dmask=0702,allow_utime=0020,codep age=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,flush 0 0
After that, upload the two .img's to sendspace or any filehost you like and
post the output of the first command and last command.

Edited: Please only post your device once and also check back if you do post because I will most likely update this post with the recovery.img to test.
 
Last edited:
I have a freescale android 2.2 mid Model: FR-809 imx51_bbg
Kernel version 2.6.31-01012-g4f92f83-dirtyroot@taojixiong-desktop #40

I have rooted with z4, tried numerous times to reboot in recovery with no luck - only android system recovery utility <3e>. loaded launchpro after root. Any help is appreciated. very inexperienced. thank you in advance

I have slide power button. Two buttons beside the power on button. One is home and other is back button. Also have home button on top of the machine....and reset hole by the attachment slot.
 
Last edited:
tablet brand: Bluepanther Thunder MID (same as Blevia G10 or Leader-intl G10)
model: GM10-4
Android version: 2.2.1
Kernel version: 2.6.34 root@tm1 #35
Buttons: ON/OFF, volume up/down, search, back, menu, home and directional Keys: Up, Down, Left, Right, and OK

cat /proc/mtd:
Code:
dev:    size   erasesize  name
mtd0: 00a00000 00080000 "resereved"
mtd1: 00380000 00080000 "Kernel"
mtd2: 00400000 00080000 "Kernel_recovery"
mtd3: 07680000 00080000 "System"
mtd4: 13800000 00080000 "Userdata"
mtd5: 61800000 00080000 "MassStorage1"
mtd6: 02800000 00080000 "MRVL_BBM"

mount:
Code:
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
ubi0_0 /system ubifs ro,relatime 0 0
ubi1_0 /data ubifs rw,nosuid,nodev,relatime 0 0
ubi2_0 /ubimount ubifs rw,relatime 0 0
ubi2:InternalStorage /mnt/internalstorage_ubi ubifs rw,relatime 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/7:0 /mnt/internalstorage vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

Recovery and boot mtds: Download mtd.zip from Sendspace.com - send big files the easy way

Thank you for your effort. :)
 
I'm getting the same tablet, well got it just didn't arrive yet. What did you use to root it? And I would truly love to see Clockwork Recovery working on this so I can start on some custom rom's. I want to have an easy way to go back to stock in case of warranty issues.

Edit:

Found some info on porting here. Might give it a try after Christmas. Dough probably abit out of my league :D
 
Last edited:
I am still up for doing some other tablets and phones.

Sorry zomms, I haven't been available lately but I'll get to it.
 
I'm still interested in the Bluepanther Thunder. I got to a limit where I did what mods I can do without making a custom Rom and for that I need a way to flash it. I'm also going to give porting 2.3 a try :))
So thanks alot for your work and I'm anxious to see the recovery working.
 
Hello, thank you for your help! There are many people buying Rockchip 2818 based tablets. I've got Milk Pad with the following configuration:
Model: TR718D
Android version: 2.1
Firmware version: v1.02.09-2010.11.22_English
Kernel version: 2.6.25
Build version: V0.18.ECLAIR.English.C.zmg.20101112.142908
Buttons: reset switch, power button, menu button, escape button
Recovery: Android recovery system 1.3.28 (or something like that) - not operable by the buttons available

cat /proc/mtd
dev: size erasesize name
mtd0: 00002000 00000010 "misc"
mtd1: 00004000 00000010 "kernel"
mtd2: 00002000 00000010 "boot"
mtd3: 00004000 00000010 "recovery"
mtd4: 00040000 00000010 "system"
mtd5: 0003a000 00000010 "backup"
mtd6: 0003a000 00000010 "cache"
mtd7: 00080000 00000010 "userdata"
mtd8: 0052d000 00000010 "user"
mtd9: 00020000 00000010 "pagecache"
mtd10: 00020000 00000010 "swap"

mount
rootfs / rootfs rw 0 0
/dev/root / cramfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
none /proc/bus/usb usbfs rw 0 0
/dev/block/mtdblock4 /system cramfs ro 0 0
/dev/block/mtdblock7 /data ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0
/dev/block/mtdblock6 /cache ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0
/dev/block/mtdblock9 /data/data ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0
/dev/loop9 /system/bin ext2 rw,errors=continue 0 0

Dump of BOOT and RECOVERY partitions may be downloaded here Download dump.zip from Sendspace.com - send big files the easy way

Thank you very much once again!

Regards,

Radek
 
Sylvania Model number - SYNET7LP
Firmware version - DG2.02
Android 2.1 Update 1
Kernel version - 2.6.32.9 warits@msuG #43

2 buttons - "Menu" and "On/Off"

dev: size erasesize name
mtd0: 00200000 00080000 "ramdisk"
mtd1: 00600000 00080000 "kernel"
mtd2: 08000000 00080000 "resv"
mtd3: 0c000000 00080000 "system"
mtd4: 3d800000 00080000 "userdata"
mtd5: 04000000 00080000 "cache"
mtd6: 1ff00000 00080000 "Local-disk"
mtd7: 00100000 00080000 "panic"

As you can see none of the mtd# list either "recovery" or "boot". Do you have any ideas and or thoughts if any of these might be usable or if they are hidden?

Thanks for the effort
 
Dear Razor950,
may you, please, spread your knowledge in porting recovery? I guess I may try to port it to my device by myself. I've already modified my ROM (added permanent root). Probably porting recovery may be another chalenge for me.

Thank you! :)

Radek
 
Hi, thank you for your help! I've got Wopad with the following configuration:
Model: TR718D
Android version: 2.1
Firmware version: v1.02.06-2010.11.22_Public
Kernel version: 2.6.25
Build version: V0.18.ECLAIR.eng.C.zmg.20101112.142908
Buttons: reset switch, power button, menu button, escape button
Recovery: Android recovery system 1.3.28 (or something like that) - not operable by the buttons available

cat /proc/mtd
dev: size erasesize name
mtd0: 00002000 00000010 "misc"
mtd1: 00004000 00000010 "kernel"
mtd2: 00002000 00000010 "boot"
mtd3: 00004000 00000010 "recovery"
mtd4: 00040000 00000010 "system"
mtd5: 0003a000 00000010 "backup"
mtd6: 0003a000 00000010 "cache"
mtd7: 00080000 00000010 "userdata"
mtd8: 0052d000 00000010 "user"
mtd9: 00020000 00000010 "pagecache"
mtd10: 00020000 00000010 "swap"

mount
rootfs / rootfs rw 0 0
/dev/root / cramfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
none /proc/bus/usb usbfs rw 0 0
/dev/block/mtdblock4 /system cramfs ro 0 0
/dev/block/mtdblock7 /data ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0
/dev/block/mtdblock6 /cache ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0
/dev/block/mtdblock9 /data/data ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0

Dump of BOOT and RECOVERY partitions may be downloaded here
recovery1.dump
boot1.dump

My information is almost exactly the same as Melvincz, maybe the recovery could be used on several of these devices.

Thank you for doing all this work we all appreciate it.
 
I am sorry I haven't been active on here.

I just haven't been on my pc as often as I thought during the winter break, I'll get to each one of you. (cleaning up my android stuff and getting it all straighten out)
I guess I have ocd but only on my pc :p
 
Sylvania Model number - SYNET7LP
Firmware version - DG2.02
Android 2.1 Update 1
Kernel version - 2.6.32.9 warits@msuG #43

2 buttons - "Menu" and "On/Off"

dev: size erasesize name
mtd0: 00200000 00080000 "ramdisk"
mtd1: 00600000 00080000 "kernel"
mtd2: 08000000 00080000 "resv"
mtd3: 0c000000 00080000 "system"
mtd4: 3d800000 00080000 "userdata"
mtd5: 04000000 00080000 "cache"
mtd6: 1ff00000 00080000 "Local-disk"
mtd7: 00100000 00080000 "panic"

As you can see none of the mtd# list either "recovery" or "boot". Do you have any ideas and or thoughts if any of these might be usable or if they are hidden?

Thanks for the effort

I could be off but mtd0 should be boot as boot is basically a ramdisk and kernel might be recovery because many companies consider recovery as a special kernel (I have no idea beside the fact that yes some recovery might use a special kernel)

btw, I will update the first post whenever I post recovery.img's
I will also note if a recovery.img might be used on multiple devices or not, most likely for this thread, I'll keep it at names from the poster plus model and once we know a recovery works, we can share it publicly on the correct section and on other forums.

Also, could you flip or melvincz or both of you, do a dump of each mtd partition (do not need the cache ones or user ones).
 
Last edited:
Back
Top