mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 01:38:56 +00:00
40c34453df
Exception: scripts sourcing/calls within etc/ash_functions continues to use old TRACE functions until we switch to bash completely getting rid of ash. This would mean getting rid of legacy boards (flash + legacy boards which do not have enough space for bash in flash boards) once and for all. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
19 lines
371 B
Bash
Executable File
19 lines
371 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
|
|
|
|
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
|