Mike Banon has uploaded this change for review. ( https://review.coreboot.org/28425
Change subject: AMD microcodes: scripts for applying the unofficial (not-merged-yet) updates ......................................................................
AMD microcodes: scripts for applying the unofficial (not-merged-yet) updates
These scripts will help you to securely and conveniently apply the four changes 28273 , 28370 , 28378 , 28391 to update AMD microcodes or fix their formatting. Save to ./coreboot/ then run ./get_ucode_patches.sh , ./check... and ./apply...
https://review.coreboot.org/c/coreboot/+/28273 src/vendorcode/amd/agesa/f15tn: Update microcode to version 0x600111F 2018-03-05
https://review.coreboot.org/c/coreboot/+/28370 src/vendorcode/amd/agesa/f16kb: Update microcode to version 0x7000110 2018-02-09
https://review.coreboot.org/c/coreboot/+/28378 src/vendorcode/amd/agesa/f12: Update microcode to version 0x3000027 2011-09-13
https://review.coreboot.org/c/coreboot/+/28391 src/vendorcode/amd/agesa: Improve formatting of some f12 and f14 microcodes
Change-Id: Ic16c1c4b86576ee7505cceed871b47a2b82f3c56 Signed-off-by: Mike Banon mikebdp2@gmail.com --- A apply_ucode_patches.sh A check_ucode_patches.sh A get_ucode_patches.sh A sha256sums_correct.txt 4 files changed, 63 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/28425/1
diff --git a/apply_ucode_patches.sh b/apply_ucode_patches.sh new file mode 100755 index 0000000..65c3ebc --- /dev/null +++ b/apply_ucode_patches.sh @@ -0,0 +1,21 @@ +#!/bin/sh +### +### https://review.coreboot.org/c/coreboot/+/28273 +### src/vendorcode/amd/agesa/f15tn: Update microcode to version 0x600111F 2018-03-05 +### +patch -p1 < c448029.diff +### +### https://review.coreboot.org/c/coreboot/+/28370 +### src/vendorcode/amd/agesa/f16kb: Update microcode to version 0x7000110 2018-02-09 +### +patch -p1 < 88adcda.diff +### +### https://review.coreboot.org/c/coreboot/+/28378 +### src/vendorcode/amd/agesa/f12: Update microcode to version 0x3000027 2011-09-13 +### +patch -p1 < 6e72ba6.diff +### +### https://review.coreboot.org/c/coreboot/+/28391 +### src/vendorcode/amd/agesa: Improve formatting of some f12 and f14 microcodes +### +patch -p1 < e24e1f4.diff diff --git a/check_ucode_patches.sh b/check_ucode_patches.sh new file mode 100755 index 0000000..f6ba840 --- /dev/null +++ b/check_ucode_patches.sh @@ -0,0 +1,12 @@ +#!/bin/sh +rm -f ./sha256sums_my.txt +sha256sum ./c448029.diff > ./sha256sums_my.txt +sha256sum ./88adcda.diff >> ./sha256sums_my.txt +sha256sum ./6e72ba6.diff >> ./sha256sums_my.txt +sha256sum ./e24e1f4.diff >> ./sha256sums_my.txt +if cmp -s "./sha256sums_my.txt" "./sha256sums_correct.txt" +then + echo "SHA256 checksums are correct, please run ./apply_ucode_patches.sh" +else + echo "! MISMATCH ! See ./sha256sums_my.txt and ./sha256sums_correct.txt" +fi diff --git a/get_ucode_patches.sh b/get_ucode_patches.sh new file mode 100755 index 0000000..d23b2bc --- /dev/null +++ b/get_ucode_patches.sh @@ -0,0 +1,26 @@ +#!/bin/sh +rm -f ./*.diff && rm -f ./patch?zip +### +### https://review.coreboot.org/c/coreboot/+/28273 +### src/vendorcode/amd/agesa/f15tn: Update microcode to version 0x600111F 2018-03-05 +### +wget https://review.coreboot.org/changes/28273/revisions/3/patch?zip +unzip ./patch?zip && rm -f ./patch?zip # && patch -p1 < c448029.diff +### +### https://review.coreboot.org/c/coreboot/+/28370 +### src/vendorcode/amd/agesa/f16kb: Update microcode to version 0x7000110 2018-02-09 +### +wget https://review.coreboot.org/changes/28370/revisions/3/patch?zip +unzip ./patch?zip && rm -f ./patch?zip # && patch -p1 < 88adcda.diff +### +### https://review.coreboot.org/c/coreboot/+/28378 +### src/vendorcode/amd/agesa/f12: Update microcode to version 0x3000027 2011-09-13 +### +wget https://review.coreboot.org/changes/28378/revisions/2/patch?zip +unzip ./patch?zip && rm -f ./patch?zip # && patch -p1 < 6e72ba6.diff +### +### https://review.coreboot.org/c/coreboot/+/28391 +### src/vendorcode/amd/agesa: Improve formatting of some f12 and f14 microcodes +### +wget https://review.coreboot.org/changes/28391/revisions/2/patch?zip +unzip ./patch?zip && rm -f ./patch?zip # && patch -p1 < e24e1f4.diff diff --git a/sha256sums_correct.txt b/sha256sums_correct.txt new file mode 100755 index 0000000..c7142c6 --- /dev/null +++ b/sha256sums_correct.txt @@ -0,0 +1,4 @@ +68708a53a9a435ff6758c5a76a9f34262399b140b2dcc4b9da534817334e8a9d ./c448029.diff +c477357f19c948e25276d7c88380cc021600301e16d17092e7c28cdbf6f0ea92 ./88adcda.diff +36041d96feba2a2d4ebe5fb8739665062354fe5ebaf0434c35d1f6cc755b3fe2 ./6e72ba6.diff +ac811f95bae4030925783f166d7ad5b052930233b732a92243de55c6230e609c ./e24e1f4.diff