Disable GOP inclusion temporarily, add scripts for spipi

This commit is contained in:
Jeremy Soller 2019-05-03 12:32:53 -06:00
parent 627d6a452c
commit 6ac93f8158
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
9 changed files with 88 additions and 2 deletions

1
models/darp5/chip.txt Normal file
View File

@ -0,0 +1 @@
GD25Q128C

1
models/galp3-b/chip.txt Normal file
View File

@ -0,0 +1 @@
MX25L6405D

1
models/galp3-c/chip.txt Normal file
View File

@ -0,0 +1 @@
MX25L12805D

View File

@ -0,0 +1 @@
MX25L12805D

17
scripts/_spipi.sh Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
SPIPI="ubuntu@10.17.89.179"
if [ ! -d "models/${MODEL}" ]
then
echo "model '${MODEL}' not found" >&2
exit 1
fi
MODEL_DIR="$(realpath "models/${MODEL}")"
if [ ! -f "${MODEL_DIR}/chip.txt" ]
then
echo "model '${MODEL}' does not have chip.txt" >&2
exit 1
fi
CHIP="$(cat "${MODEL_DIR}/chip.txt")"

View File

@ -34,8 +34,8 @@ make -C apps/firmware-setup
PACKAGES_PATH="${MODEL_DIR}:$(realpath edk2-platforms):$(realpath apps)" \
./scripts/_build/edk2.sh \
"${UEFIPAYLOAD}" \
-D FIRMWARE_OPEN_FIRMWARE_SETUP="firmware-setup/firmware-setup.inf" \
-D FIRMWARE_OPEN_GOP="IntelGopDriver.inf"
-D FIRMWARE_OPEN_FIRMWARE_SETUP="firmware-setup/firmware-setup.inf"
# -D FIRMWARE_OPEN_GOP="IntelGopDriver.inf"
# Rebuild coreboot
FIRMWARE_OPEN_MODEL_DIR="${MODEL_DIR}" \

26
scripts/spipi-dump.sh Executable file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e
if [ -z "$1" ]
then
echo "$0 [model]" >&2
exit 1
fi
MODEL="$1"
source scripts/_spipi.sh
ssh -T "${SPIPI}" <<EOF
cd firmware
./spipi.sh -c "${CHIP}" -r dump.rom
EOF
sftp "${SPIPI}" <<EOF
cd firmware
get dump.rom build/dump.rom
EOF
./coreboot/build/cbfstool build/dump.rom read -r CONSOLE -f build/dump.log
less build/dump.log

17
scripts/spipi-erase.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
if [ -z "$1" ]
then
echo "$0 [model]" >&2
exit 1
fi
MODEL="$1"
source scripts/_spipi.sh
ssh -T "${SPIPI}" <<EOF
cd firmware
./spipi.sh -c "${CHIP}" -E
EOF

22
scripts/spipi-flash.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
if [ -z "$1" ]
then
echo "$0 [model]" >&2
exit 1
fi
MODEL="$1"
source scripts/_spipi.sh
sftp "${SPIPI}" <<EOF
cd firmware
put "build/${MODEL}/coreboot.rom" "${MODEL}.rom"
EOF
ssh -T "${SPIPI}" <<EOF
cd firmware
./spipi.sh -c "${CHIP}" -w "${MODEL}.rom"
EOF