mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 06:17:52 +00:00
5bc2bc88e4
-qemu-coreboot-*whiptail-tpm1(-hotp) boards have 'export CONFIG_DEBUG_OUTPUT=y' by default now
19 lines
409 B
Bash
Executable File
19 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
. /etc/functions
|
|
|
|
DEBUG "Under /bin/flashrom-kgpe-d16-openbmc.sh"
|
|
|
|
ROM="$1"
|
|
if [ -z "$1" ]; then
|
|
die "Usage: $0 /media/kgpe-d16-openbmc.rom"
|
|
fi
|
|
|
|
cp "$ROM" /tmp/kgpe-d16-openbmc.rom
|
|
sha256sum /tmp/kgpe-d16-openbmc.rom
|
|
|
|
flashrom --programmer="ast1100:spibus=2,cpu=reset" -c "S25FL128P......0" -w /tmp/kgpe-d16-openbmc.rom \
|
|
|| die "$ROM: Flash failed"
|
|
|
|
warn "Reboot and hopefully it works..."
|
|
exit 0
|