Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 4 additions and 28 deletions. Show diff stats Hide diff stats

  1. 32  m1nor → m1nor-ng
32  m1nor → m1nor-ng
@@ -4,6 +4,7 @@
4 4
 #
5 5
 # Written 2011 by Werner Almesberger
6 6
 # Copyright 2011 by Werner Almesberger
  7
+# Flash layout changed for milkmyist-ng Sebastien Bourdeauducq 2013
7 8
 #
8 9
 # This program is free software; you can redistribute it and/or modify
9 10
 # it under the terms of the GNU General Public License as published by
@@ -11,22 +12,6 @@
11 12
 # (at your option) any later version.
12 13
 #
13 14
 
14  
-#
15  
-# According to
16  
-# http://www.milkymist.org/wiki/index.php?title=Flashing_the_Milkymist_One#Flash_Memory_Distribution
17  
-#
18  
-# standby.fpg		0x0000 0000	 640k 
19  
-# soc-rescue.fpg	0x000A 0000	1536k
20  
-# bios-rescue.bin	0x0022 0000	 128k
21  
-# splash-rescue.raw	0x0024 0000	 640k
22  
-# flickernoise.fbi(res)	0x002E 0000	4096k
23  
-# soc.fpg		0x006E 0000	1536k	alias: system.fpg
24  
-# bios.bin		0x0086 0000	 128k
25  
-# splash.raw		0x0088 0000	 640k
26  
-# flickernoise.fbi	0x0092 0000	4096k
27  
-# (data)		0x00D2 0000	19328k
28  
-#
29  
-
30 15
 classify()
31 16
 {
32 17
 	if [ ! -r "$1" ]; then
@@ -35,18 +20,9 @@ classify()
35 20
 	fi
36 21
 
37 22
 	b=${1##*/}
38  
-	if [ "${b#standby}" != "$b" ]; then		off=0x0;	ext=.fpg
39  
-	elif [ "${b#soc-rescue}" != "$b" ]; then	off=0xa0000;	ext=.fpg
40  
-	elif [ "${b#bios-rescue}" != "$b" ]; then	off=0x220000;	ext=.bin
41  
-	elif [ "${b#splash-rescue}" != "$b" ]; then	off=0x240000;	ext=.raw
42  
-	elif [ "${b#flickernoise-rescue}" != "$b" ]; then off=0x2e0000;	ext=.fbi
43  
-	elif [ "${b#soc}" != "$b" ]; then		off=0x6e0000;	ext=.fpg
44  
-	elif [ "${b#system}" != "$b" ]; then		off=0x6e0000;	ext=.fpg
45  
-	elif [ "${b#bios}" != "$b" ]; then		off=0x860000;	ext=.bin
46  
-	elif [ "${b#splash}" != "$b" ]; then		off=0x880000;	ext=.raw
47  
-	elif [ "${b#flickernoise}" != "$b" ]; then	off=0x920000;	ext=.fbi
48  
-	elif [ "${b#videomixer}" != "$b" ]; then	off=0x920000;	ext=.fbi
49  
-	elif [ "${b#data}" != "$b" ]; then		off=0xd20000;	ext=
  23
+	if [ "${b#soc}" != "$b" ]; then			off=0x00000000;	ext=.fpg
  24
+	elif [ "${b#bios}" != "$b" ]; then		off=0x00180000;	ext=.bin
  25
+	elif [ "${b#videomixer}" != "$b" ]; then	off=0x001A0000;	ext=.fbi
50 26
 	else
51 27
 		echo "$1: unrecognized file name" 1>&2
52 28
 		exit 1

No commit comments for this range

Something went wrong with that request. Please try again.