Date:2012-01-12 18:03:43 (8 years 9 months ago)
Author:Werner Almesberger
Commit:2e46384b04a8f60589e8f7ad9333e6903b6c7f06
Message:m1nor: lock the read-only portions of the flash after flashing

Files: m1/tools/m1nor (1 diff)

Change Details

m1/tools/m1nor
100100        classify "$n"
101101        echo flashmem "$off" "$n" noverify
102102    done
103    echo lockflash 0 55
104    echo detectflash 0
103105    echo pld reconfigure
104106) | jtag -q || exit
105107
106108#
109# Fun fact: a direct flashmem-lockflash-pld reconfigure sequence leaves
110# the FPGA in a weird state from which it can't boot out of standby, neither
111# via JTAG (pld load ...) or by pressing the middle button.
112#
113# The only thing that seems to help is to run "detectflash" after the locking.
114# (Tried "peek", "usleep", "pld readreg", ... without success.)
115#
116
117#
107118# FIXME: the exit code of "jtag" doesn't indicate whether the session was
108119# successful.
109120#

Archive Download the corresponding diff file

Branches:
master



interactive