Initial commit.
This commit is contained in:
commit
96ec754b84
2 changed files with 29 additions and 0 deletions
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
*~
|
||||||
|
*.rom
|
||||||
|
vpd.bin
|
||||||
|
hwid.txt
|
||||||
|
cbfstool*
|
||||||
|
gbb_utility*
|
||||||
|
sources.sh
|
||||||
|
|
21
flash-uefi.sh
Normal file
21
flash-uefi.sh
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# From: https://docs.mrchromebox.tech/docs/support/unbricking/unbrick-ch341a.html
|
||||||
|
|
||||||
|
sudo apt-get -y install flashrom
|
||||||
|
|
||||||
|
wget https://raw.githubusercontent.com/MrChromebox/scripts/refs/heads/main/sources.sh # Look in here for available boards.
|
||||||
|
source ./sources.sh
|
||||||
|
|
||||||
|
wget "${util_source}cbfstool.tar.gz" && tar -zxf cbfstool.tar.gz && chmod +x cbfstool
|
||||||
|
wget "${util_source}gbb_utility.tar.gz" && tar -zxf gbb_utility.tar.gz && chmod +x gbb_utility
|
||||||
|
wget "${fullrom_source}${coreboot_uefi_reks}" # "reks" is the board name for the model Chromebook you have.
|
||||||
|
|
||||||
|
sudo flashrom -p ch341a_spi -r original.rom
|
||||||
|
./cbfstool original.rom read -r RO_VPD -f vpd.bin
|
||||||
|
./gbb_utility original.rom --get --hwid | sed 's/^hardware_id: //' > hwid.txt
|
||||||
|
|
||||||
|
./cbfstool "${coreboot_uefi_reks}" write -r RO_VPD -f vpd.bin
|
||||||
|
./cbfstool "${coreboot_uefi_reks}" add -n hwid -f hwid.txt -t raw
|
||||||
|
|
||||||
|
sudo flashrom -p ch341a_spi -w "${coreboot_uefi_reks}" --ifd -i bios
|
Loading…
Add table
Reference in a new issue