Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: m-labs/scripts
base: dbfef34
...
head fork: m-labs/scripts
compare: 9ec13d6
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 50 additions and 0 deletions.
  1. +7 −0 compile-flickernoise/Makefile
  2. +43 −0 scripts/lockflash_only_m1_rc3.sh
View
7 compile-flickernoise/Makefile
@@ -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/
View
43 scripts/lockflash_only_m1_rc3.sh
@@ -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

No commit comments for this range

Something went wrong with that request. Please try again.