Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
Feb 28, 2012
copy all .fnp .jpg .png to patchpool/ not sub-folder 7667bee
reflash_m1.sh: move tested build to qi-hardware.com
  rename --snapshot to --qi mean well tested images
5b99e06
3  scripts/compile-milkymist-firmware.sh
@@ -152,8 +152,7 @@ echo "build data patitions ..."
152 152
 mkdir -p ${IMAGES_DIR}/data.flash5/patchpool
153 153
 make -C ${MILKYMIST_GIT_DIR}/flickernoise/patches/demo/pacman
154 154
 make -C ${MILKYMIST_GIT_DIR}/flickernoise/patches/demo/wheel
155  
-rsync -av --include=*/ --include=*.fnp --include=*.png --include=*.jpg --exclude=* \
156  
-  ${MILKYMIST_GIT_DIR}/flickernoise/patches/ ${IMAGES_DIR}/data.flash5/patchpool
  155
+find ${MILKYMIST_GIT_DIR}/flickernoise/patches/ \( -name *.fnp -o -name *.jpg -o -name *.png \) -exec cp {} ${IMAGES_DIR}/data.flash5/patchpool/ \;
157 156
 
158 157
 make -C ${MILKYMIST_GIT_DIR}/rtems-yaffs2/utils nor-mkyaffs2image
159 158
 
30  scripts/reflash_m1.sh
... ...
@@ -1,7 +1,7 @@
1 1
 #!/bin/bash
2 2
 
3 3
 # version of me
4  
-__VERSION__="2011-12-13"
  4
+__VERSION__="2012-02-28"
5 5
 echo -e "File name: $0\t version: ${__VERSION__}"
6 6
 
7 7
 
@@ -20,12 +20,16 @@ BIOS_RESCUE_WITHOUT_CRC="${HOME}/.qi/milkymist/bios-crc/bios-rescue-without-CRC.
20 20
 MAC_DIR="${HOME}/.qi/milkymist/bios-mac/tmp"
21 21
 
22 22
 # Functions ###########################################################
  23
+# This option is for me or other develop test the image:
  24
+#    --snapshot <VERSION> [data] if 'data' enable, it will REFLASH DATA PARTITION
  25
+#    VERSION can found at
  26
+#		     http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/
  27
+
23 28
 call-help() {
24 29
 	echo -e \
25 30
 "Usage: ./reflash_m1.sh [OPTION] [PARAM]...
26 31
 
27 32
   --release [VERSION]         by default it will download the latest release
28  
-  --snapshot <VERSION> [data] if 'data' enable, it will REFLASH DATA PARTITION
29 33
   --local-folder              please use m1nor instread
30 34
   --lock-flash                lock 'standby' and 'rescue' partitions
31 35
   --read-flash <PARTITION>    read from RESCUE partition, by default only read
@@ -33,11 +37,13 @@ call-help() {
33 37
 			      PARTITION: standby soc bios splash flickernoise
34 38
   --bios-mac XX XX            'XX' 'XX' is the last MAC address
35 39
   --rc3 XX XX                 used in factory flash, reflash all partitions
  40
+  --qi [VERSION] [data]       by default it will download the latest qi release
  41
+                     CAUTION: if 'data' enable, it will REFLASH DATA PARTITION
36 42
 
37 43
 NOTICE: '--bios-mac' and '--rc3' needs command 'mkmmimg'
38 44
 	'--release'  VERSION can found at http://milkymist.org/updates/
39  
-	'--snapshot' VERSION can found at
40  
-		     http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/
  45
+	'--qi'       VERSION can found at
  46
+		     http://downloads.qi-hardware.com/software/images/Milkymist_One
41 47
 
42 48
 Written by: Xiangfu Liu <xiangfu@openmobilefree.net>
43 49
 Please report bugs to <devel@lists.milkymist.org>\tversion: ${__VERSION__}"
@@ -132,7 +138,7 @@ EOF
132 138
 	#echo "readmem 0xD20000 0x12E0000 ${WORKING_DIR}/${DATA}" >> ${JTAG_BATCH_FILE}
133 139
     fi
134 140
 
135  
-    if [ "$1" == "--release" ] || [ "$1" == "--snapshot" ]; then
  141
+    if [ "$1" == "--release" ] || [ "$1" == "--qi" ] || [ "$1" == "--snapshot" ]; then
136 142
 	echo "flashmem 0x000000 ${WORKING_DIR}/${STANDBY} ${JTAG_NOVERIFY}" >> ${JTAG_BATCH_FILE}
137 143
 
138 144
 	echo "flashmem 0x0A0000 ${WORKING_DIR}/${SOC_RESCUE} ${JTAG_NOVERIFY}" >> ${JTAG_BATCH_FILE}
@@ -244,8 +250,8 @@ if [ "$1" == "--release" ]; then
244 250
 fi
245 251
 
246 252
 
247  
-if [ "$1" == "--snapshot" ]; then
248  
-    if [ "$2" == "" ]; then
  253
+if [ "$1" == "--qi" ] || [ "$1" == "--snapshot" ]; then
  254
+    if [ "$1" == "--snapshot" ] && [ "$2" == "" ]; then
249 255
 	call-help
250 256
 	exit 1
251 257
     fi
@@ -253,6 +259,14 @@ if [ "$1" == "--snapshot" ]; then
253 259
     BASE_URL_HTTP="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist"
254 260
     VERSION="$2"
255 261
 
  262
+    if [ "$1" == "--qi" ]; then
  263
+        BASE_URL_HTTP="http://downloads.qi-hardware.com/software/images/Milkymist_One"
  264
+    fi
  265
+
  266
+    if [ "$2" == "" ]; then
  267
+        VERSION="latest"
  268
+    fi
  269
+
256 270
     MD5SUMS_SERVER=$(\
257 271
     wget -O - ${BASE_URL_HTTP}/${VERSION}/md5sums 2> /dev/null |\
258 272
     grep -E "(${STANDBY}|${SOC_RESCUE}|${BIOS_RESCUE}|${SPLASH_RESCUE}|${SOC}|${BIOS}|${SPLASH}|${FLICKERNOISE}|${DATA})" | sort)
@@ -261,7 +275,7 @@ if [ "$1" == "--snapshot" ]; then
261 275
 	exit 1
262 276
     fi
263 277
 
264  
-    WORKING_DIR="${HOME}/.qi/milkymist/snapshots/${VERSION}"
  278
+    WORKING_DIR="${HOME}/.qi/milkymist/${1##--}/${VERSION}"
265 279
     mkdir -p ${WORKING_DIR}
266 280
 
267 281
     MD5SUMS_LOCAL=$( (cd "${WORKING_DIR}" ; \

No commit comments for this range

Something went wrong with that request. Please try again.