mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 11:30:37 +02:00
m1nor: lock the read-only portions of the flash after flashing
This commit is contained in:
parent
73b9b503fe
commit
2e46384b04
@ -100,9 +100,20 @@ EOF
|
|||||||
classify "$n"
|
classify "$n"
|
||||||
echo flashmem "$off" "$n" noverify
|
echo flashmem "$off" "$n" noverify
|
||||||
done
|
done
|
||||||
|
echo lockflash 0 55
|
||||||
|
echo detectflash 0
|
||||||
echo pld reconfigure
|
echo pld reconfigure
|
||||||
) | jtag -q || exit
|
) | jtag -q || exit
|
||||||
|
|
||||||
|
#
|
||||||
|
# Fun fact: a direct flashmem-lockflash-pld reconfigure sequence leaves
|
||||||
|
# the FPGA in a weird state from which it can't boot out of standby, neither
|
||||||
|
# via JTAG (pld load ...) or by pressing the middle button.
|
||||||
|
#
|
||||||
|
# The only thing that seems to help is to run "detectflash" after the locking.
|
||||||
|
# (Tried "peek", "usleep", "pld readreg", ... without success.)
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# FIXME: the exit code of "jtag" doesn't indicate whether the session was
|
# FIXME: the exit code of "jtag" doesn't indicate whether the session was
|
||||||
# successful.
|
# successful.
|
||||||
|
Loading…
Reference in New Issue
Block a user