Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T440p battery hack #181

Open
jlelusz opened this issue Aug 7, 2020 · 6 comments
Open

T440p battery hack #181

jlelusz opened this issue Aug 7, 2020 · 6 comments

Comments

@jlelusz
Copy link

jlelusz commented Aug 7, 2020

I spent last week trying to find a way to get rid of unauthorized battery not charging in T440p. I managed to find fixes for many Lenovo laptops, both pre-T440p and post-T440p, but nothing for my specific model.
Weird thing is that I've had the non-Lenovo 9-cell battery for a year and it worked flawlessy until a recent Window and Lenovo Vantage update around 2 weeks ago. Result - laptop refuses to charge the battery.
They must've changed something in EC firmware, the warning pops up after Bios and before Windows starts. I downgraded Bios to something from 2 years ago (downloaded old Bios from Lenovo) and it did change the EC version - but it still refuses to charge the battery, which is strange. Tried removing CMOS battery for 1/2 day - no joy.

What would need to happen to make a fix/patch for T440p? I'm happy to help - we have more JTags in the office than coffee cups, so happy to read/write EC on my T440p for the greater good ;-)

@jcholsap
Copy link

jcholsap commented Aug 8, 2020

It does sound like the EC firmware. I've flashed a few T540p mbds. While investigating, didn't find a JTAG connector near the MEC. There was a nearby edge connector but I didn't trace it out. I remember thinking I'd need to get out my soldering iron and find some good contact points. BTW, had to remove the T540p mbd. Some folk are uncomfortable with removing screws. Anyway, documenting a JTAG connection could be helpful. Also, pressing F1 at boot and looking at the third line of text gives the EC version. Or maybe someone has an idea for pushing an EC downgrade.

@hamishcoleman
Copy link
Owner

The T440p firmware that we can download and extract is encrypted - so getting a clean dump from the physical hardware might allow us to find the encryption keys (in the same way zmatt did for the x230). From a brief look, the firmware appears to be similar in layout to the older xx30 firmwares, so we might simply be able to port the patch forward.

You can see the current firmware extraction process with: make t440p.GLHT30WW.img.orig

A quick online search finds a schematic for the T440p, which shows that there should be an unpopulated JTAG header for the EC, and identifies some resistors that might need to be populated to enable the jtag port.

@jlelusz
Copy link
Author

jlelusz commented Aug 8, 2020

OK gents, that's really great feedback! I'm off for holidays for two weeks (family duties). When back, I'll try to read&post the EC firmware. Will try to find the correct pins of the the correct JTAG to read the FW. I'll do my holiday research, looking at PCB pictures etc, assuming it's MC 1663.

Given that the battery worked for a year and only then threw an error, I thought maybe a dud battery rather that change in BIOS/FW is the case - but you never know.

@jlelusz
Copy link
Author

jlelusz commented Aug 27, 2020

Not long now, everything is soldered (see photos). Hopefully in the next few days I'll be able to read the flash.
11
WIN_20200827_22_55_27_Pro

@jlelusz
Copy link
Author

jlelusz commented Sep 1, 2020

@hamishcoleman GLHT25WW read from MEC 1633 via JTag attached below. There was one resistor that needed moving to enable JTag, the rest was just a matter of soldering the connector and connecting to JLink.

t440p-1.zip

I've read the Flash a few times, all files were the same so I'm assuming that eventual bit errors (due to dangling wires) are unlikely. I thought that it would be best to downgrade to a reasonably early Bios/EC firmware - might make work a bit easier.

@renoxtv
Copy link

renoxtv commented Mar 24, 2023

Hi, sorry for posting on a 2 year old thread. If its possible and if you still have your T440p, could you please send a more detailed picture of the MEC1633L area?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants