diff --git a/configure-gallium.sh b/configure-machine.sh similarity index 99% rename from configure-gallium.sh rename to configure-machine.sh index 1ad9daa..483ddd0 100644 --- a/configure-gallium.sh +++ b/configure-machine.sh @@ -47,11 +47,14 @@ function configureMachine() { Terminal false StartupNotify false ICON - + + +:< hwid.txt +sudo rm original.rom -./cbfstool "${coreboot_uefi_reks}" write -r RO_VPD -f vpd.bin -./cbfstool "${coreboot_uefi_reks}" add -n hwid -f hwid.txt -t raw +cp -f "${coreboot_uefi_reks}" new.rom +./cbfstool new.rom write -r RO_VPD -f vpd.bin +./cbfstool new.rom add -n hwid -f hwid.txt -t raw +rm vpd.bin +rm hwid.txt -sudo flashrom -p ch341a_spi -w "${coreboot_uefi_reks}" --ifd -i bios +sudo flashrom -p ch341a_spi -w new.rom --ifd -i bios diff --git a/get-ready.sh b/get-ready.sh new file mode 100755 index 0000000..09e39a3 --- /dev/null +++ b/get-ready.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e + +# 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. +