- homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" - flashrom
brew install flashrom - UEFIPatch
- hex-fiend
brew cask install hex-fiend - patch.txt
- brief guide
- Turn off laptop
- Enter BIOS and disable power
- Open bottom lid
- Connect clip to bios chip
- Connect CH341A to other laptop USB
- cd into
UEFIPatchfolder - dump BIOS
sudo flashrom -p ch341a_spi -r bios1.img - dump BIOS again
sudo flashrom -p ch341a_spi -r bios2.img - check if images are equal
should return nothing
diff bios1.img bios2.img - Patch the BIOS image
./UEFIPatch bios1.img xx60_patches_v1.txt -o bios_patched.img - open
bios_patched.imgwith hex-fiend - replace
with
4C 4E 56 42 42 53 45 43 FB4C 4E 56 42 42 53 45 43 FF - flash the patched BIOS
sudo flashrom -p ch341a_spi -w bios_patched.img