hamishcoleman / thinkpad-ec

Infrastructure for examining and patching Thinkpad embedded controller firmware
GNU General Public License v2.0
1.07k stars 115 forks source link

T430 EC flash, but without using Linux? #67

Closed patrickhgb closed 6 years ago

patrickhgb commented 6 years ago

Hi,

I have no experience in Linux.

After following this guide: http://www.instructables.com/id/ThinkPad-T430T430sX230-Classic-Keyboard-Mod/

I was able to successfully (physically) fit a 7-row to the T430.

But the issue is that I have 0 experience on UNIX... Only windows...

I see there's option to use .iso to patch the EC, can I burn them to a USB using Rufus and do it that way? Are there specific options in Rufus I must use to make this successful?

Thanks in advance!

diggit commented 6 years ago

I'd try .img file and Etcher, but no warranty, not tested...

patrickhgb commented 6 years ago

@diggit

I managed to install ubuntu on W10 virtualbox, will this be ok?

MooThing commented 6 years ago

Virtualbox will do just fine for your needs, I believe you can virtually connect your USB drive to the virtual machine so that it will interact with it directly which will let you perform the dd command at the very end of the Readme without having to actually boot into Linux (I use VMware but I believe they both have this feature).

patrickhgb commented 6 years ago

I cloned thinkpad-ec but I'm stumped at this step

Say I have a T430, and I want to flash the EC.

I use command "make patched.t430.img"

The config also says it's possible to disable battery validation, so make patch_enable_battery clean and make patch_enable_keyboard clean

What would be the correct syntax to add the additional commands into "make"?

hamishcoleman commented 6 years ago

If you want to enable patching the battery validation, and enable patching the keyboard layout for your t430:

make patch_enable_battery clean
make patch_enable_keyboard clean
make patched.t430.img
patrickhgb commented 6 years ago

@hamishcoleman

Would it work if I just renamed the 006_battery_validate.patch.OFF file to 006_battery_validate.patch then use "make patched.t430.img"?

hamishcoleman commented 6 years ago

yes, that would work - in fact, that is exactly what the the "patch_enable_battery" step does!

patrickhgb commented 6 years ago

Ok thanks for the advice.

I will flash as soon as I get a working bios battery.

Do you need any info on the T430 keyboard installation? @hamishcoleman

hamishcoleman commented 6 years ago

If you find that someone somewhere has documented the t430 install process wrong, do come back with details. At the least, I can ensure the documentation here is accurate!

patrickhgb commented 6 years ago

@hamishcoleman

Well, not necessarily wrong. But missing some details.

I will make a guide after I'm able to power the T430 on.

hamishcoleman commented 6 years ago

Sounds good, thanks!

hwm1 commented 6 years ago

Consider selling the T430 and buying aT420. I have both and they are practically equivalent except for the battery check and the keyboard. If you need usb3 in the 420 just get an express card for it. The esata connector on the 420 is handy. I did the battery check mod on my 430 and it worked great, I actually prefer the feel of the 430 keyboard.

patrickhgb commented 6 years ago

@hwm1 don't want to spend more money on another thinkpad. The jump to having native usb3 and an architecture up, I think, is worth the hassle.

hwm1 commented 6 years ago

You would break even or make money on the trade. If there's a perceivable difference in speed it's minor. The expresscard usb3 ion my 420 works fine. With ubuntu it was plug and play in fact, Pretty amazing.

patrickhgb commented 6 years ago

@hwm1

Yeah, nah.

I like the T430 as it is now.

patrickhgb commented 6 years ago

@hamishcoleman

T430 with official bios 2.74 work with the mod? EC is 1.13

hamishcoleman commented 6 years ago

@phandojo I've just looked at the lenovo firmware page (https://support.lenovo.com/gb/en/downloads/DS029253) and can see that the EC has not changed - so this patch will still work

patrickhgb commented 6 years ago

@hamishcoleman my bad, I think I did something wrong when "make" the img to usb, it's flashed now.

Going to install and OS and see how it goes

mikbober commented 6 years ago

Half a day trying to get a 55+ battery to work. everything worked out. but, unfortunately, the keyboard functions changed. how to get the working keyboard back to working t430 (fn + hot keys)

hamishcoleman commented 6 years ago

Hi @mikbober , can you create a new issue for your problem, thanks.

mikbober commented 6 years ago

@hamishcoleman So, I reflashed 2.75 BIOS with next: _make patch_enable_battery clean make patch_disable_keyboard clean make patched.t430.img_

Hotkeys in original t430 keyboard working good. BIOS didn't change. It's still 2.75. Good. Thanks

JCBuck commented 6 years ago

Windows users can actually just download the windows flashable firmware from Lenovo, which can use Winflash. After applying this mod/patch to .img, can extract it and grab the modified .fl1 .fl2 .hsh files into the same roms the directory that the windows flasher package from lenovo has. That way the bios can even be flashed from within windows.

The patching process could probably be redone on windows with powershell

edit: it's been a while since i've flashed my w530, but i conjured up these commands with arguments from somewhere. Could probably get by with just the .FL2 since that's where the EC firmware resides

winflash64 /sd /nodelay /bbl /file G5ETA5WW\$01D5200.FL1
winflash64 /sd /ipf ec /file G5ETA5WW\$01D5200.FL2
hamishcoleman commented 6 years ago

@JCBuck , yes - it is a simple matter of writing code. Patches welcome!