[RECOVERY] Lenovo Thinkpad CWR Port

Search This thread

Jon2555

Senior Member
Jan 17, 2011
789
242
Belgrade
Who got it working and on what type of model(16, 32, 64 GB) and who didn't get it working and on what type of model?
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
So, given that all instructions were followed to the letter on my Canadian ROW Thinkpad tablet and when I try to boot into the recovery kernel it just reboots again, any ideas?

Yes, the tablet was rooted.
Yes, I corrected the filename.
Yes, my output matches the output indicated by others in this thread.
Yes I tried both a reboot via power cycle and reboot via ROM Manager "reboot into recover"

CODE REMOVED

Reboot via power button.

Lenovo logo shows up, hit Vol+
"Booting Recovery Kernal Image" shows up in the top corner
Tablet goes black and vibrates again(indicating a reboot)
Lenovo logo appears again.
I can repeat the above steps at this point and the same happens. if I don't, it boots normally.

CODE removed

Any help is greatly appreciated.

+1. I have the 18392QM model (A310_02_0037_0074_ROW) with storage as follows: 32Gb Internal, 32Gb Internal SD and 32Gb External SD. Using Root Explorer I see that cwr_ventana_2.img is 4.25Mb.
 
Last edited:

realyst2k

Member
Feb 4, 2010
46
15
The sizes aren't different, 4.29megs is 4452352 bytes.

I'm running 0074 ROW on model 1838CTO.

And if someone has directions for undoing the steps so I can restore the original recovery image for now I would be grateful:)
 

jhankinson

Senior Member
Dec 10, 2009
71
30
Who got it working and on what type of model(16, 32, 64 GB) and who didn't get it working and on what type of model?

Working on 32GB model 1838CTO, with firmware 075 US. It flashed with no problems on the first try. I have successfully backed up, restored, and installed an update.zip. The only problem I have encountered is that it backs up the internal sdcard contents as mentioned before.
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
The sizes aren't different, 4.29megs is 4452352 bytes.

I'm running 0074 ROW on model 1838CTO.

And if someone has directions for undoing the steps so I can restore the original recovery image for now I would be grateful:)

Thanks for that. Wouldn't you simply put the original install-recovery.sh script back in place (in /etc folder) and thus allow it to boot into the original recovery? On other devices I used to rename the script to install-recovery.sh.orig (or somesuch) so I could do this.
 
Last edited:

quyTam

Senior Member
May 26, 2011
403
41
tpt 16gb, sd 32gb
Restore failed /data folder

I've tried to flash the zip that correct the /sdcard problem for Transformer.

Didn't work :(
Wipe erase sdcard data and backup have problem of md5 (restore is skipped because md5 check failed)
 

realyst2k

Member
Feb 4, 2010
46
15
I did backup the file...but didn't we also overwrite a partition via the DD command? Is the .sh file all there was to restoring the original recovery mode?

---------- Post added at 08:26 PM ---------- Previous post was at 08:25 PM ----------

I think we can safely say the CWR port doesn't work on ROW.
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
@realyst2k: We have the same models (... 074_ROW), but I have followed the steps and in /dev/block there are two folders but none of the files you show ... in fact no files at all just two folders.

---------- Post added at 12:28 AM ---------- Previous post was at 12:02 AM ----------

I did backup the file...but didn't we also overwrite a partition via the DD command? Is the .sh file all there was to restoring the original recovery mode?

---------- Post added at 08:26 PM ---------- Previous post was at 08:25 PM ----------

I think we can safely say the CWR port doesn't work on ROW.

Yes it is the US and UK models where the port works, but not the ROW.
 

realyst2k

Member
Feb 4, 2010
46
15
This is the original install-recovery.sh file

Code:
#!/system/bin/sh
if ! applypatch -c EMMC:/dev/block/mmcblk0p1:2048:e1f132b3fc2b0f8a6ba8479e4a98e6191d5dbe0a; then
  log -t recovery "Installing new recovery image"
  applypatch EMMC:/dev/block/mmcblk0p2:3158016:6f7d9da82d8b610a8e86b9601f270e56a317e754 EMMC:/dev/block/mmcblk0p1 e3f40337cc1c778d8d5c55ce67faf42f44e2f170 3512320 6f7d9da82d8b610a8e86b9601f270e56a317e754:/system/recovery-from-boot.p
else
  log -t recovery "Recovery image already installed"
fi

Note this line:

applypatch EMMC:/dev/block/mmcblk0p2:3158016:6f7d9da82d8b610a8e86b9601f270e56a317e754 EMMC:/dev/block/mmcblk0p1 e3f40337cc1c778d8d5c55ce67faf42f44e2f170 3512320 6f7d9da82d8b610a8e86b9601f270e56a317e754:/system/recovery-from-boot.p


Could the other blocks be backups of former recoveries?
 
CWR working for me!

My TPT info:

TPT 183927U (64GB w/3G added on afterwards)
Build: ThinkpadTablet_A310_02_0037_0075_US

---------- Post added at 07:57 PM ---------- Previous post was at 07:08 PM ----------

tpt 16gb, sd 32gb
Restore failed /data folder

I've tried to flash the zip that correct the /sdcard problem for Transformer.

Didn't work :(
Wipe erase sdcard data and backup have problem of md5 (restore is skipped because md5 check failed)

this could help you my friend.. :)


fix md5 checksum on backups
http://xdaforums.com/showthread.php?t=714114
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
This is the original install-recovery.sh file

Code:
#!/system/bin/sh
if ! applypatch -c EMMC:/dev/block/mmcblk0p1:2048:e1f132b3fc2b0f8a6ba8479e4a98e6191d5dbe0a; then
  log -t recovery "Installing new recovery image"
  applypatch EMMC:/dev/block/mmcblk0p2:3158016:6f7d9da82d8b610a8e86b9601f270e56a317e754 EMMC:/dev/block/mmcblk0p1 e3f40337cc1c778d8d5c55ce67faf42f44e2f170 3512320 6f7d9da82d8b610a8e86b9601f270e56a317e754:/system/recovery-from-boot.p
else
  log -t recovery "Recovery image already installed"
fi

Note this line:

applypatch EMMC:/dev/block/mmcblk0p2:3158016:6f7d9da82d8b610a8e86b9601f270e56a317e754 EMMC:/dev/block/mmcblk0p1 e3f40337cc1c778d8d5c55ce67faf42f44e2f170 3512320 6f7d9da82d8b610a8e86b9601f270e56a317e754:/system/recovery-from-boot.p


Could the other blocks be backups of former recoveries?

It certainly looks that way. My other devices don't show this just the two folders in /dev/block ... When you showed the following code in an earlier post, was that after you had already used recovery? As I stated, my TPT does not have these files and nor does my Nexus S which has persistent CWR:

Code:
brw------- root     root       7,   1 2012-01-24 00:57 loop1
brw------- root     root       7,   2 2012-01-24 00:57 loop2
brw------- root     root       7,   3 2012-01-24 00:57 loop3
brw------- root     root       7,   4 2012-01-24 00:57 loop4
brw------- root     root       7,   5 2012-01-24 00:57 loop5
brw------- root     root       7,   6 2012-01-24 00:57 loop6
brw------- root     root       7,   7 2012-01-24 00:57 loop7
brw------- root     root     179,   0 2012-01-24 00:57 mmcblk0
brw------- root     root     179,   1 2012-01-24 00:57 mmcblk0p1
brw------- root     root     259,   2 2012-01-24 00:57 mmcblk0p10
brw------- root     root     179,   2 2012-01-24 00:57 mmcblk0p2
brw------- root     root     179,   3 2012-01-24 00:57 mmcblk0p3
brw------- root     root     179,   4 2012-01-24 00:57 mmcblk0p4
brw-rw---- root     system   179,   5 2012-01-24 00:57 mmcblk0p5
brw------- root     root     179,   6 2012-01-24 00:57 mmcblk0p6
brw------- root     root     179,   7 2012-01-24 00:57 mmcblk0p7
brw------- root     root     259,   0 2012-01-24 00:57 mmcblk0p8
brw------- root     root     259,   1 2012-01-24 00:57 mmcblk0p9
brw------- root     root     179,   8 2012-01-24 00:57 mmcblk1
brw------- root     root     179,   9 2012-01-24 00:57 mmcblk1p1
 

realyst2k

Member
Feb 4, 2010
46
15
Code:
#cat /proc/partitions
major minor  #blocks  name

   7        0       9216 loop0
179        0   31259648 mmcblk0
179        1       6144 mmcblk0p1
179        2       8192 mmcblk0p2
179        3     786432 mmcblk0p3
179        4     921600 mmcblk0p4
179        5       2048 mmcblk0p5
179        6     524288 mmcblk0p6
179        7      20480 mmcblk0p7
259        0     143360 mmcblk0p8
259        1      20480 mmcblk0p9
259        2   28811264 mmcblk0p10
179        8   16186368 mmcblk1
179        9   16182272 mmcblk1p1
#

1838CTO
0074_ROW

Anyone know how to show the stdout/err on bootup instead of the Lenovo splash? Methinks it'd be nifty to know what it was doing at the moment it decides to restart instead of booting into recovery.

EDIT: Doesn't look like it's practically possible without some serious kernel tinkering....bummer.

---------- Post added at 03:40 AM ---------- Previous post was at 02:56 AM ----------

ROW tends to lack some apps and systems that USA has....so I suppose we could try either:

* somehow installing USA firmware before installing CWR, though I imagine that could cause a brick.

* get a list of what CWR needs from the system and compare it with what the ROW image has built-in.
 
Last edited:

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
What's output of cat /proc/partitons on different versions of tab?
Code:
export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$ su
# cat /proc/partitions
major minor  #blocks  name

   7        0       9216 loop0
 179        0   31259648 mmcblk0
 179        1       6144 mmcblk0p1
 179        2       8192 mmcblk0p2
 179        3     786432 mmcblk0p3
 179        4     921600 mmcblk0p4
 179        5       2048 mmcblk0p5
 179        6     524288 mmcblk0p6
 179        7      20480 mmcblk0p7
 259        0     143360 mmcblk0p8
 259        1      20480 mmcblk0p9
 259        2   28811264 mmcblk0p10
 179        8   30355456 mmcblk1
 179        9   30351360 mmcblk1p1
#
...0074_ROW

---------- Post added at 09:36 PM ---------- Previous post was at 09:13 PM ----------

@realyst2k: I've PM'd jcase to see if he has any suggestions. Fingers crossed.
 

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.