[RECOVERY] Lenovo Thinkpad CWR Port

Search This thread

realyst2k

Member
Feb 4, 2010
46
15
Are you using the one I compiled? If so, what filesystem is your sdcard formatted in? Also, what size, brand and are you sure 'read-only' switch is flicked off??
 
  • Like
Reactions: redbaron

realyst2k

Member
Feb 4, 2010
46
15
Ahh, you probably had it formatted for NTFS. It should be FAT32(if you plan on using it for Windows).

Good to know it's (sort of ) working for you.
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
ROW 32Gb

@realyst2k: Now you have the 16Gb SD-Card version of CWR for 0074_ROW TPTs working, will you be compiling a 32Gb version?
 

realyst2k

Member
Feb 4, 2010
46
15
Send me a dump of your recovery partition(or, rather, upload it somewhere). I'll see what I can do. But be warned I am extremely new at this and do not possess the means to test it myself.

Note: I mean your original recovery partition. The one Lenovo put on. If you don't have it, send me your /system/recovery-from-boot.p file.
 
Last edited:

Koshu

Senior Member
Jul 28, 2007
348
463
Send me a dump of your recovery partition(or, rather, upload it somewhere). I'll see what I can do. But be warned I am extremely new at this and do not possess the means to test it myself.

You only need to modify the size of the data partition thats stored in the BoardConfig.mk:

16Gb:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 13249806336

32Gb:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 29502734336

64Gb:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 61513662464

The rest should be the same.
 

realyst2k

Member
Feb 4, 2010
46
15
Awesome, that was what I was going to try to get out of his recovery partition:)

Thanks!! This is much better :)

I should have some compiled images up before night's end.
 
  • Like
Reactions: stewarta

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
You only need to modify the size of the data partition thats stored in the BoardConfig.mk:

16Gb:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 13249806336

32Gb:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 29502734336

64Gb:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 61513662464

The rest should be the same.
@realyst2k and Koshu: I will make this change and give it a go. Thank you.
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
CWR ROW 32Gb works fine

@realyst2k: I am in your debt. The ROW 32GB version worked.

1. I made sure I had a copy of /etc/install-recover.sh (install-recovery.sh.orig).

2. I used terminal emulator (could have used QtADB from Win x64 PC) and
did as follows:
Code:
su
mount -o,rw,remount /system,
echo "#!/system/bin/sh" > /system/etc/install-recovery.sh
dd if=/data/local/ventana_recovery_row_32.img of=/dev/block/mmcblk0p1

3. I then shut down and rebooted with a Vol+ while pressing Power on button and as soon as it vibrated I pressed Vol+and it booted into ClockWorkMod Recovery (CWR). As soon as it did so, I rebooted into the Honeycomb system.

4. After again powering off, I then booted into CWM Recovery and successfully backed up the ROM.

This was successful, but reported as follows
no sdcard/.android-secure found (etc) (32Gb)
no ext sdcard found (yet CWR backed did a Nand backup to this 32Gb card)
(In reality both are there)

So thank you ... that is a major achievement!

For those who want to go back to stock bootloader, remember to rename /etc/install-recovery.sh.orig (or whatever) to /etc/install-recovery.sh and then go back into Terminal Emulator (or QtADB from a PC) and:

Code:
$ su
# dd if=/system/recovery-from-boot.p of=/dev/block/mmcblk0p1
 
Last edited:

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
CWR boot ok, but backup won't work (restarts itself by backing up system)...

18384XG (32 GB + 3G) with 32 GB SDHC card, A310_02_0037_0074_ROW

@mari8b: I think the secret is to reboot back into the system after your first boot into CWR without doing anything in the first visit to CWR. Well, that is my experience at least.

Sent from my ThinkPad Tablet using xda premium
 
Has anyone looked into the problem with the 32GB US version failing to backup?

Mine fails halfway into backing up /system. Also, it shows the output file name containing ext4 which tells me that CWR thinks /system is ext4 filesystem.
True??

EDIT: I just flashed the 64GB version on my 32gb unit and CWR ran longer and got 3/4 thru /system before re-booting. Clue??
 
Last edited:

quyTam

Senior Member
May 26, 2011
403
41
@mari8b: I think the secret is to reboot back into the system after your first boot into CWR without doing anything in the first visit to CWR. Well, that is my experience at least.

Sent from my ThinkPad Tablet using xda premium

Same experience here. My cwm works sometimes, don't understand when, but thinks its maybe 50 %.

I also try a wipe and sdcard folder is deleted :(
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
Has anyone looked into the problem with the 32GB US version failing to backup?

Mine fails halfway into backing up /system. Also, it shows the output file name containing ext4 which tells me that CWR thinks /system is ext4 filesystem.
True??

EDIT: I just flashed the 64GB version on my 32gb unit and CWR ran longer and got 3/4 thru /system before re-booting. Clue??

I can only suggest as I did in Post 134. My 0074_ROW 32Gb works.
 

twospirits

Senior Member
Nov 28, 2007
429
124
NYC
www.S4GRU.com
Has anyone looked into the problem with the 32GB US version failing to backup?

Mine fails halfway into backing up /system. Also, it shows the output file name containing ext4 which tells me that CWR thinks /system is ext4 filesystem.
True??

EDIT: I just flashed the 64GB version on my 32gb unit and CWR ran longer and got 3/4 thru /system before re-booting. Clue??
Same here on my 32GB US Thinkpad, but on mine it reboots about a minute CWR comes up in any selection, not only backup.

TS
 

realyst2k

Member
Feb 4, 2010
46
15
I noticed the same behaviour as stewarta, though I figured it was a fluke. Only happened once so I hadn't bothered ADB logging it to find out why it did that(since it won't do it any longer).

So yeah, give stewarta's suggestion a try.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Photo by Logxen (aka not my trash!)
    t7Q7v.jpg


    No warranties, no guarantees. If this ruins your device, your fault, not mine. Consider this a test build, backup important stuff manually to your PC for now (photos etc)

    This requires an sdcard installed

    [Image]
    http://download.cunninglogic.com/cwr_ventana_2.img
    39b5557cf3802d677e33cce76047ef60 *cwr_ventana_2.img

    [Source]
    https://github.com/CunningLogic/android_device_lenovo_ventana

    [Instructions]
    Code:
    adb push cwr_ventana_2.img /data/local/
    adb shell
    su
    mount -o rw,remount /system
    echo "#!/system/bin/sh" > /system/etc/install-recovery.sh
    dd if=/data/local/cwr_recovery_2.img of=/dev/block/mmcblk0p1

    [Credits]
    djrbliss - For rooting the thinkpad
    utkanos - walking me through the device config setup
    CM, Koush and everyone who has worked on CWR
    4
    the CWM images are down does anyone have them and could please reuplaod them?

    Here u go bud...and everybody else of course^^
    16Gb Version....
    lil backstory if u care to read...

    i just got a barely used TPT and was in need as well...it has never been updated!!!!
    A Friend of mine got his TPT back then when it came out, i rooted it of course asap^^
    lucky me...coz he did not had a memory card for puttin CWM and stuff on...so i borrowed him one of mine...for some years of course :p
    som time in 2016 i demanded back MY friggin property!!!!....just kiddin^^...hehehe...

    lookin at my new&shiny 4gb SDCard I do remember thinkin: "make an image b4 wipin"....turns out it was not so bad idea afterall...
    u´ll just never no if someone still does care for thiz pice of crap u just tossed out da window coz it frggin sucked:D

    hav phun^^
    4
    Here are new versions for the different Sizes:

    16Gb:
    http://everyrandom.com/files/download.php?file=264ventana_recovery.img

    32Gb:
    http://everyrandom.com/files/download.php?file=196ventana32_recovery.img

    64Gb:
    http://everyrandom.com/files/download.php?file=538ventana64_recovery.img

    Credits go to Logxen for modifying and compiling (based on the builds jcase made).
    Thanks to bohdans for webspace.

    We also excluded the /data/media directory (Internal sdcard) so backups doesn't need so much space anymore.

    P.S. there may still be bugs, i you find one, post as much information you can provide and your tpt model

    P.P.S: As always: No warranties, no guarantees. Playing around with the recovery can brick your device.


    Known Bugs:
    - Doesn't work on ROW Roms
    - Force reboots while backup on some devices
    2
    I can compile ROW versions with my kernel. Can you tell me what steps you took to exclude /data/media(I'm quite new at this)?

    Also, are your config files uploaded somewhere for the 32 and 64 gig models(I can generate only for 16GB at the moment)?

    You have to edit the source files to force this behavior. Its in the file nandroid.c near line 111:

    if (strcmp(backup_path, "/data") == 0 && volume_for_path("/sdcard") == NULL)

    Erase the second part of the if-condition. Something like this:

    if (strcmp(backup_path, "/data") == 0)
    2
    Thanks for sharing this it worked great, except for the instructions I needed to use
    dd if=/data/local/cwr_ventana_2.img of=/dev/block/mmcblk0p1
    rather than
    dd if=/data/local/cwr_recovery.img of=/dev/block/mmcblk0p1
    to match the name of your file.
    Thanks again for sharing, CWR seems to be running perfectly.
    Also for those looking for root the exploit has been posted here.