Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dbfef34
Choose a base ref
...
head repository: m-labs/scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9ec13d6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 26, 2011

  1. Unverified

    No user is associated with the committer email.
    Copy the full SHA
    006b5db View commit details
  2. scripts: lockflash only script file

    Xiangfu Liu committed Aug 26, 2011
    Copy the full SHA
    9ec13d6 View commit details
Showing with 50 additions and 0 deletions.
  1. +7 −0 compile-flickernoise/Makefile
  2. +43 −0 scripts/lockflash_only_m1_rc3.sh
7 changes: 7 additions & 0 deletions compile-flickernoise/Makefile
Original file line number Diff line number Diff line change
@@ -286,5 +286,12 @@ $(DL)/$(EXPAT).ok:
$(WGET) $(DL)/$(EXPAT) \
http://download.sourceforge.net/project/expat/expat/$(EXPAT_VERSION)/expat-$(EXPAT_VERSION).tar.gz
touch $@

.PHONY: clean clean-rtems

clean:
rm -rf build_dir/*

clean-rtems:
(cd $(MILKYMIST_GIT_DIR)/rtems.git && git checkout cpukit/zlib/zconf.h.in)
rm -rf build_dir/bsp-milkymist/
43 changes: 43 additions & 0 deletions scripts/lockflash_only_m1_rc3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

###################################################################
__VERSION__="2011-08-26"
echo "Version of me: ${__VERSION__}"
echo "File name: $0"

FJMEM="fjmem.bit"

###################################################################
#DEBUG="debug all"
DEBUG=""

#UrJtag batch file
BATCH_FILE=`mktemp`
cat > ${BATCH_FILE}<<EOF
${DEBUG}
cable milkymist
detect
instruction CFG_OUT 000100 BYPASS
instruction CFG_IN 000101 BYPASS
pld load ${FJMEM}
initbus fjmem opcode=000010
frequency 6000000
detectflash 0
endian big
lockflash 0x000000 55
pld reconfigure
EOF

jtag ${BATCH_FILE}
if [ "$?" == "0" ]; then
rm -f ${BATCH_FILE}

echo "-------------------------------------------------------------"
echo "Your m1 rescue partitions have locked."
echo "-------------------------------------------------------------"
else
echo "there are errors when running jtag."
fi