Skip to content

Instantly share code, notes, and snippets.

@theodric
Last active July 12, 2024 19:53
Show Gist options
  • Save theodric/8486a17d1d93a10183dbbf39be7a0239 to your computer and use it in GitHub Desktop.
Save theodric/8486a17d1d93a10183dbbf39be7a0239 to your computer and use it in GitHub Desktop.
Either:
a. dump your BIOS with a chip clip and a CH341 and pay dosdude1 like $20 to remove the whitelist using blaque magicke or
b. use 1vyrain softmod
If b, then any changes you want to make to EC (Embedded Controller) firmware (for classic keyboard mod and/or battery whitelist removal) must be made BEFORE flashing 1vyrain. You can go back later, revert 1vyrain, modify EC, then redo 1vyrain; but you cannot mod EC after 1vyrain is in place.
1. EC mod
https://github.com/hamishcoleman/thinkpad-ec
Follow instructions.
By default, thinkpad-ec scripts assume you ARE installing a classic keyboard and ARE NOT removing the battery whitelist. Because I am both night blind (need backlit keyboard) and cheap (want to use Chinee firehazard batteries) I need to reverse these options.
You need to set make options before building.
To NOT APPLY keyboard mod patch, run in the build directory:
make patch_disable_keyboard clean
To REMOVE battery whitelist, run in the build directory:
make patch_enable_battery clean
then `make patched.x230.img` & dd it to your favorite unique archived data and bitcoin hard drive before realizing your error and dd'ing it to a USB stick instead
Set your X230's boot mode to LEGACY ONLY (disabling UEFI), reboot, Enter and F12 on POST, and select the USB stick. It will boot into FreeDOS.
Follow prompts.
EC firmware will be handed to the BIOS and applied on the next reboot. You will see the BIOS inform you to this effect. If it does not, then it didn't work. Either try again, or just try switching the BIOS boot mode to UEFI and reboot again (not attempting to apply the patch a second time using the USB stick, just rebooting) and see if that causes the BIOS to write the EC payload to the EC.
Once the EC patch is in place, proceed to 1vyrain.
2. BIOS softmod
2a. IVprep
Maybe you need to run https://github.com/n4ru/IVprep first, if your BIOS is a version after 2.75, in order to downgrade the BIOS to a version vulnerable to 1vyrain. BIOS 2.77, the latest version as of 2024-07-12, mandates cryptographic signature check following CVE-2019-6171. You need BIOS version 2.75 or earlier to apply the patch. (Also, the EC and BIOS can't be too far apart in age, but in practice this is not generally an issue.)
2b. Bricking your X230 with https://github.com/n4ru/1vyrain so you can finally let go and get a modern laptop
Go into the BIOS and set your boot mode to UEFI ONLY.
Download the 1vyrain ISO from the link at the above repo and write it to a USB stick.
Boot your X230 from it.
Follow prompts.
Heed the prompt that tells you it's going to put the laptop to sleep and that you need to wake it up again.
Reboot reboot reboot.
Expect BIOS config errors, twice.
Go in and reconfigure your BIOS.
You have an "ADVANCED" menu now. Be careful and don't brick your laptop with this (not a joke!)
Optional: flash coreboot instead so all the guys at the hacker festival think you're cool until they talk to you for a while
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment