summaryrefslogtreecommitdiff
path: root/boot/at91bootstrap/at91bootstrap-1.16-u-boot-relocation-fix.patch
blob: 884519c518264eb9f3ed1c542222f6886bff8095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
Every AT91SAM plaforms were broken between 2010.12 and 2011.03 because
of the relocation changes.

We have to get JUMP_ADDR consistant with what is used by u-boot
(CONFIG_SYS_TEXT_BASE).

I didn't know what to do with at91sam9m10g45ek as it doesn't seems to be
converted yet. But anyway, that means that it is either not working or
doesn't care so changing it here shouldn't harm.

I also chose to "repartition" the dataflash. u-boot is now living at
0x4000, letting 16kB for the bootstrap. We also have to increase the
IMG_SIZE as u-boot as grown larger than the default value.
As requested on the u-boot ML, we assume that it could be up to 512kB
big.

It means that now, you have to flash your kernel at 0x0008C000 instead
of 0x00042000. And so you also have to load it from that adress from
u-boot.

Then, remember that you could decrease IMG_SIZE to boot faster.

Signed-off-by: Alexandre Belloni <alexandre.belloni@piout.net>
---
 board/at91sam9260ek/dataflash/at91sam9260ek.h      |    6 +++---
 board/at91sam9260ek/nandflash/at91sam9260ek.h      |    2 +-
 board/at91sam9261ek/dataflash/at91sam9261ek.h      |    6 +++---
 board/at91sam9261ek/nandflash/at91sam9261ek.h      |    2 +-
 board/at91sam9263ek/dataflash/at91sam9263ek.h      |    6 +++---
 board/at91sam9263ek/nandflash/at91sam9263ek.h      |    2 +-
 board/at91sam9g10ek/dataflash/at91sam9g10ek.h      |    6 +++---
 board/at91sam9g10ek/nandflash/at91sam9g10ek.h      |    2 +-
 board/at91sam9g20ek/dataflash/at91sam9g20ek.h      |    6 +++---
 board/at91sam9g20ek/nandflash/at91sam9g20ek.h      |    2 +-
 board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h  |    4 ++--
 .../at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h  |    4 ++--
 board/at91sam9rlek/dataflash/at91sam9rlek.h        |    6 +++---
 board/at91sam9rlek/nandflash/at91sam9rlek.h        |    2 +-
 board/at91sam9xeek/dataflash/at91sam9xeek.h        |    6 +++---
 board/at91sam9xeek/nandflash/at91sam9xeek.h        |    2 +-
 16 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/board/at91sam9260ek/dataflash/at91sam9260ek.h b/board/at91sam9260ek/dataflash/at91sam9260ek.h
index 1834246..5c52bc6 100644
--- a/board/at91sam9260ek/dataflash/at91sam9260ek.h
+++ b/board/at91sam9260ek/dataflash/at91sam9260ek.h
@@ -73,11 +73,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash    */
 
 #define MACH_TYPE       0x44B       /* AT91SAM9260-EK */
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9260ek/nandflash/at91sam9260ek.h b/board/at91sam9260ek/nandflash/at91sam9260ek.h
index 2cac601..f8fdff2 100644
--- a/board/at91sam9260ek/nandflash/at91sam9260ek.h
+++ b/board/at91sam9260ek/nandflash/at91sam9260ek.h
@@ -92,7 +92,7 @@
 #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
 
 #define MACH_TYPE       	0x44B		/* AT91SAM9260-EK */
-#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9261ek/dataflash/at91sam9261ek.h b/board/at91sam9261ek/dataflash/at91sam9261ek.h
index 8ce30e9..675f80b 100644
--- a/board/at91sam9261ek/dataflash/at91sam9261ek.h
+++ b/board/at91sam9261ek/dataflash/at91sam9261ek.h
@@ -96,11 +96,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash    */
 
 #define MACH_TYPE       0x350       /* AT91SAM9261-EK */
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9261ek/nandflash/at91sam9261ek.h b/board/at91sam9261ek/nandflash/at91sam9261ek.h
index badc3ac..e628c97 100644
--- a/board/at91sam9261ek/nandflash/at91sam9261ek.h
+++ b/board/at91sam9261ek/nandflash/at91sam9261ek.h
@@ -114,7 +114,7 @@
 #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
 
 #define MACH_TYPE       	0x350		/* AT91SAM9261-EK */
-#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9263ek/dataflash/at91sam9263ek.h b/board/at91sam9263ek/dataflash/at91sam9263ek.h
index 5c9da4b..d07b5d1 100644
--- a/board/at91sam9263ek/dataflash/at91sam9263ek.h
+++ b/board/at91sam9263ek/dataflash/at91sam9263ek.h
@@ -95,11 +95,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 			0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE			0x33900			/* Image Size in DataFlash    */
+#define IMG_ADDRESS 			0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE			0x80000			/* Image Size in DataFlash    */
 
 #define MACH_TYPE       		0x4B2       		/* AT91SAM9263-EK */
-#define JUMP_ADDR			0x23F00000		/* Final Jump Address 	      */
+#define JUMP_ADDR			0x21F00000		/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9263ek/nandflash/at91sam9263ek.h b/board/at91sam9263ek/nandflash/at91sam9263ek.h
index 505afc7..8ab4f46 100644
--- a/board/at91sam9263ek/nandflash/at91sam9263ek.h
+++ b/board/at91sam9263ek/nandflash/at91sam9263ek.h
@@ -108,7 +108,7 @@
 #define	IMG_SIZE	0x40000		/* Image Size in NandFlash    */
 
 #define MACH_TYPE       1202       	/* AT91SAM9263-EK */
-#define JUMP_ADDR	0x23F00000	/* Final Jump Address 	      */
+#define JUMP_ADDR	0x21F00000	/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
index b2faf44..0882644 100644
--- a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
+++ b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
@@ -97,11 +97,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash    */
 
 #define MACH_TYPE       0x350       /* AT91SAM9261-EK */
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
index 66c40a3..6c3ecda 100644
--- a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
+++ b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
@@ -115,7 +115,7 @@
 #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
 
 #define MACH_TYPE       	0x350		/* AT91SAM9G10-EK */
-#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
index eea0439..44bd578 100644
--- a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
+++ b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
@@ -74,11 +74,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS1 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash */
 
 #define MACH_TYPE		0x658			/* AT91SAM9G20-EK */
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
index 31bd499..e797e4d 100644
--- a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
+++ b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
@@ -93,7 +93,7 @@
 #define	IMG_SIZE		0x40000			/* Image Size in NandFlash */
 
 #define MACH_TYPE		0x658			/* AT91SAM9G20-EK */
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
index a60fd41..144dd6d 100644
--- a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
+++ b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
@@ -88,8 +88,8 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash */
 
 #define MACH_TYPE		0x9CD			/* AT91SAM9M10-EKES */
 #define JUMP_ADDR		0x73F00000		/* Final Jump Address */
diff --git a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
index 5c726b5..3152b79 100644
--- a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
+++ b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
@@ -84,8 +84,8 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash */
 
 #define MACH_TYPE		0x726			/* AT91SAM9M10G45-EK */
 #define JUMP_ADDR		0x73F00000		/* Final Jump Address */
diff --git a/board/at91sam9rlek/dataflash/at91sam9rlek.h b/board/at91sam9rlek/dataflash/at91sam9rlek.h
index 05c42dc..be277b6 100644
--- a/board/at91sam9rlek/dataflash/at91sam9rlek.h
+++ b/board/at91sam9rlek/dataflash/at91sam9rlek.h
@@ -88,11 +88,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS0_DATAFLASH	/* Boot on SPI NCS0 */
 
-#define IMG_ADDRESS 	0x8400		/* Image Address in DataFlash */
-#define	IMG_SIZE	0x33900		/* Image Size in DataFlash    */
+#define IMG_ADDRESS 	0x4000		/* Image Address in DataFlash */
+#define	IMG_SIZE	0x80000		/* Image Size in DataFlash    */
 
 #define MACH_TYPE       1326       	/* AT91SAM9RL-EK */
-#define JUMP_ADDR	0x23F00000	/* Final Jump Address 	      */
+#define JUMP_ADDR	0x21F00000	/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9rlek/nandflash/at91sam9rlek.h b/board/at91sam9rlek/nandflash/at91sam9rlek.h
index 656b4ba..594db8f 100644
--- a/board/at91sam9rlek/nandflash/at91sam9rlek.h
+++ b/board/at91sam9rlek/nandflash/at91sam9rlek.h
@@ -112,7 +112,7 @@
 #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
 
 #define MACH_TYPE       1326       		/* AT91SAM9RL-EK */
-#define JUMP_ADDR		0x23F00000	/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000	/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9xeek/dataflash/at91sam9xeek.h b/board/at91sam9xeek/dataflash/at91sam9xeek.h
index 27d1822..e3172da 100644
--- a/board/at91sam9xeek/dataflash/at91sam9xeek.h
+++ b/board/at91sam9xeek/dataflash/at91sam9xeek.h
@@ -73,11 +73,11 @@
 /* ******************************************************************* */
 #define AT91C_SPI_PCS_DATAFLASH		AT91C_SPI_PCS1_DATAFLASH	/* Boot on SPI NCS1 */
 
-#define IMG_ADDRESS 		0x8400			/* Image Address in DataFlash */
-#define	IMG_SIZE		0x33900			/* Image Size in DataFlash    */
+#define IMG_ADDRESS 		0x4000			/* Image Address in DataFlash */
+#define	IMG_SIZE		0x80000			/* Image Size in DataFlash    */
 
 #define MACH_TYPE		0x44B			/* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
diff --git a/board/at91sam9xeek/nandflash/at91sam9xeek.h b/board/at91sam9xeek/nandflash/at91sam9xeek.h
index 5dbc63e..9fac7cb 100644
--- a/board/at91sam9xeek/nandflash/at91sam9xeek.h
+++ b/board/at91sam9xeek/nandflash/at91sam9xeek.h
@@ -94,7 +94,7 @@
 #define	IMG_SIZE		0x40000		/* Image Size in NandFlash    */
 
 #define MACH_TYPE		0x44B			/* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
-#define JUMP_ADDR		0x23F00000		/* Final Jump Address 	      */
+#define JUMP_ADDR		0x21F00000		/* Final Jump Address 	      */
 
 /* ******************************************************************* */
 /* Application Settings                                                */
-- 
1.7.5.4