Mike Banon has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/58745 )
Change subject: G505S dGPU support: scripts for applying the unofficial (not-merged-yet) patches ......................................................................
G505S dGPU support: scripts for applying the unofficial (not-merged-yet) patches
These scripts will help you to securely and conveniently apply three changes CB:57319, CB:58652, CB:58653 - to enable the discrete GPU of AMD Lenovo G505S. Save to ./coreboot/ then run ./get_dgpu_patches.sh , ./check... and ./apply...
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: I25e1ec5e8bd32cf32d606e5272a4d0383a57ba81 --- A apply_dgpu_patches.sh A check_dgpu_patches.sh A get_dgpu_patches.sh A sha256sums_dgpu_correct.txt 4 files changed, 57 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/58745/1
diff --git a/apply_dgpu_patches.sh b/apply_dgpu_patches.sh new file mode 100755 index 0000000..9049965 --- /dev/null +++ b/apply_dgpu_patches.sh @@ -0,0 +1,17 @@ +#!/bin/sh +### +### https://review.coreboot.org/c/coreboot/+/57319 +### src/device/Kconfig: introduce the AMD_DGPU_WITHOUT_EEPROM symbols +### +patch -p1 < "./63367c4.diff" +### +### https://review.coreboot.org/c/coreboot/+/58652 +### src/device/pci: add support for AMD_DGPU_WITHOUT_EEPROM init and OpROM loading +### +patch -p1 < "./1715600.diff" +### +### https://review.coreboot.org/c/coreboot/+/58653 +### lenovo/g505s: enable the AMD_DGPU_WITHOUT_EEPROM discrete VGA adapter +### +patch -p1 < "./9b1fda1.diff" +### diff --git a/check_dgpu_patches.sh b/check_dgpu_patches.sh new file mode 100755 index 0000000..79b7b8a --- /dev/null +++ b/check_dgpu_patches.sh @@ -0,0 +1,14 @@ +#!/bin/sh +rm -f "./sha256sums_dgpu_my.txt" +sha256sum "./63367c4.diff" > "./sha256sums_dgpu_my.txt" +sha256sum "./1715600.diff" >> "./sha256sums_dgpu_my.txt" +sha256sum "./9b1fda1.diff" >> "./sha256sums_dgpu_my.txt" +if cmp -s "./sha256sums_dgpu_my.txt" "./sha256sums_dgpu_correct.txt" +then + echo "SHA256 checksums are correct, please run ./apply_dgpu_patches.sh" + exit 0 +else + echo "! MISMATCH ! See ./sha256sums_dgpu_my.txt and ./sha256sums_dgpu_correct.txt" + exit 1 +fi +# diff --git a/get_dgpu_patches.sh b/get_dgpu_patches.sh new file mode 100755 index 0000000..33518e6 --- /dev/null +++ b/get_dgpu_patches.sh @@ -0,0 +1,23 @@ +#!/bin/sh +### +### https://review.coreboot.org/c/coreboot/+/57319 +### src/device/Kconfig: introduce the AMD_DGPU_WITHOUT_EEPROM symbols +### +rm -f "./63367c4.diff" +wget "https://review.coreboot.org/changes/57319/revisions/4/patch?zip" +unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./63367c4.diff" +### +### https://review.coreboot.org/c/coreboot/+/58652 +### src/device/pci: add support for AMD_DGPU_WITHOUT_EEPROM init and OpROM loading +### +rm -f "./1715600.diff" +wget "https://review.coreboot.org/changes/58652/revisions/1/patch?zip" +unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./1715600.diff" +### +### https://review.coreboot.org/c/coreboot/+/58653 +### lenovo/g505s: enable the AMD_DGPU_WITHOUT_EEPROM discrete VGA adapter +### +rm -f "./9b1fda1.diff" +wget "https://review.coreboot.org/changes/58653/revisions/2/patch?zip" +unzip "./patch?zip" && rm -f "./patch?zip" # && patch -p1 < "./9b1fda1.diff" +### diff --git a/sha256sums_dgpu_correct.txt b/sha256sums_dgpu_correct.txt new file mode 100755 index 0000000..16f5897 --- /dev/null +++ b/sha256sums_dgpu_correct.txt @@ -0,0 +1,3 @@ +45b1a5b435068ba929245fd9ed86a402b72146482e15cb48ac9455bdd25f8bff ./63367c4.diff +c9f2a3e94265ba4af30e7ce7600b1fa405e68ff7be67d46722c88b905efaf39c ./1715600.diff +2321255302b58f520af1fe1406ac71f3f93050847036cff269b1d717d5a890c8 ./9b1fda1.diff