mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
a36aa2562d
This is not a blocker, but it used to be possible to flash BMC chip from Heads. PAtch is missing to flashprog Signed-off-by: Thierry Laurion <insurgo@riseup.net>
19 lines
372 B
Bash
Executable File
19 lines
372 B
Bash
Executable File
#!/bin/bash
|
|
. /etc/functions
|
|
|
|
TRACE_FUNC
|
|
|
|
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
|
|
|
|
flashprog --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
|