Mike Banon has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39899 )
Change subject: Disable SeaBIOS options not supported by hardware: scripts to apply the patches ......................................................................
Disable SeaBIOS options not supported by hardware: scripts to apply the patches
These scripts will help you to securely and conveniently apply CB:33871 to disable SeaBIOS options not supported by ASUS AM1I-A and A88XM-E hardware. Save to ./coreboot/ then run ./get_cfgsb_patches.sh , ./check... and ./apply...
https://review.coreboot.org/c/coreboot/+/33871 mb/asus/am1i-a: Disable SeaBIOS options unsupported by hardware
https://review.coreboot.org/c/coreboot/+/39898 mb/asus/a88xm-e: Disable SeaBIOS options unsupported by hardware
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: I4f001164f110a9b14297f981de8b39f30dfca4fc --- A apply_cfgsb_patches.sh A check_cfgsb_patches.sh A get_cfgsb_patches.sh A sha256sums_cfgsb_correct.txt 4 files changed, 45 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/39899/1
diff --git a/apply_cfgsb_patches.sh b/apply_cfgsb_patches.sh new file mode 100755 index 0000000..1654de0 --- /dev/null +++ b/apply_cfgsb_patches.sh @@ -0,0 +1,14 @@ +#!/bin/sh +### +### https://review.coreboot.org/c/coreboot/+/33871 +### mb/asus/am1i-a: Disable SeaBIOS options unsupported by hardware +### +patch -p1 < "./aa8fb0a.diff" +### +### https://review.coreboot.org/c/coreboot/+/39898 +### mb/asus/a88xm-e: Disable SeaBIOS options unsupported by hardware +### +if [ -d "./src/mainboard/asus/a88xm-e/" ]; then + patch -p1 < "./81da3da.diff" +fi +### diff --git a/check_cfgsb_patches.sh b/check_cfgsb_patches.sh new file mode 100755 index 0000000..5c8b01e --- /dev/null +++ b/check_cfgsb_patches.sh @@ -0,0 +1,13 @@ +#!/bin/sh +rm -f "./sha256sums_cfgsb_my.txt" +sha256sum "./aa8fb0a.diff" > "./sha256sums_cfgsb_my.txt" +sha256sum "./81da3da.diff" >> "./sha256sums_cfgsb_my.txt" +if cmp -s "./sha256sums_cfgsb_my.txt" "./sha256sums_cfgsb_correct.txt" +then + echo "SHA256 checksums are correct, please run ./apply_cfgsb_patches.sh" + exit 0 +else + echo "! MISMATCH ! See ./sha256sums_cfgsb_my.txt and ./sha256sums_cfgsb_correct.txt" + exit 1 +fi +# diff --git a/get_cfgsb_patches.sh b/get_cfgsb_patches.sh new file mode 100755 index 0000000..7c0a60a --- /dev/null +++ b/get_cfgsb_patches.sh @@ -0,0 +1,16 @@ +#!/bin/sh +### +### https://review.coreboot.org/c/coreboot/+/33871 +### mb/asus/am1i-a: Disable SeaBIOS options unsupported by hardware +### +rm -f "./aa8fb0a.diff" +wget "https://review.coreboot.org/changes/33871/revisions/4/patch?zip" +unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./aa8fb0a.diff" +### +### https://review.coreboot.org/c/coreboot/+/39898 +### mb/asus/a88xm-e: Disable SeaBIOS options unsupported by hardware +### +rm -f "./81da3da.diff" +wget "https://review.coreboot.org/changes/39898/revisions/1/patch?zip" +unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./81da3da.diff" +### diff --git a/sha256sums_cfgsb_correct.txt b/sha256sums_cfgsb_correct.txt new file mode 100644 index 0000000..9e41170 --- /dev/null +++ b/sha256sums_cfgsb_correct.txt @@ -0,0 +1,2 @@ +221ef13ab26faa7874c6a877d63a8130ab47fe9b1026082d890187b124cc5952 ./aa8fb0a.diff +f90525582937d2bc07771b45c5487181a9058dbfa564c3c9ec42eef18e617ed6 ./81da3da.diff