python-libconfig: disable on musl
[buildroot-gz.git] / boot / at91bootstrap / at91bootstrap-1.16-u-boot-relocation-fix.patch
blob0c9b9114cb574c40937ba4840dc7ce29067993eb
1 From d4e4a1aad559e35d84b445d1379be94ad036984e Mon Sep 17 00:00:00 2001
2 From: Alexandre Belloni <alexandre.belloni@piout.net>
3 Date: Thu, 25 Oct 2012 22:57:14 +0200
4 Subject: [PATCH] u-boot relocation fix
6 Every AT91SAM plaforms were broken between 2010.12 and 2011.03 because
7 of the relocation changes.
9 We have to get JUMP_ADDR consistant with what is used by u-boot
10 (CONFIG_SYS_TEXT_BASE).
12 I didn't know what to do with at91sam9m10g45ek as it doesn't seems to be
13 converted yet. But anyway, that means that it is either not working or
14 doesn't care so changing it here shouldn't harm.
16 We also have to increase the IMG_SIZE as u-boot as grown larger than the
17 default value. As requested on the u-boot ML, we assume that it could
18 be up to 495kB big.
20 It means that now, you have to flash your kernel at 0x00084000 instead
21 of 0x00042000. And so you also have to load it from that adress from
22 u-boot.
24 Then, remember that you could decrease IMG_SIZE to boot faster.
26 Signed-off-by: Alexandre Belloni <alexandre.belloni@piout.net>
27 ---
28 board/at91sam9260ek/dataflash/at91sam9260ek.h | 4 ++--
29 board/at91sam9260ek/nandflash/at91sam9260ek.h | 2 +-
30 board/at91sam9261ek/dataflash/at91sam9261ek.h | 4 ++--
31 board/at91sam9261ek/nandflash/at91sam9261ek.h | 2 +-
32 board/at91sam9263ek/dataflash/at91sam9263ek.h | 4 ++--
33 board/at91sam9263ek/nandflash/at91sam9263ek.h | 2 +-
34 board/at91sam9g10ek/dataflash/at91sam9g10ek.h | 4 ++--
35 board/at91sam9g10ek/nandflash/at91sam9g10ek.h | 2 +-
36 board/at91sam9g20ek/dataflash/at91sam9g20ek.h | 4 ++--
37 board/at91sam9g20ek/nandflash/at91sam9g20ek.h | 2 +-
38 board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h | 2 +-
39 .../at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h | 2 +-
40 board/at91sam9rlek/dataflash/at91sam9rlek.h | 4 ++--
41 board/at91sam9rlek/nandflash/at91sam9rlek.h | 2 +-
42 board/at91sam9xeek/dataflash/at91sam9xeek.h | 4 ++--
43 board/at91sam9xeek/nandflash/at91sam9xeek.h | 2 +-
44 16 files changed, 23 insertions(+), 23 deletions(-)
46 diff --git a/board/at91sam9260ek/dataflash/at91sam9260ek.h b/board/at91sam9260ek/dataflash/at91sam9260ek.h
47 index 1834246..91081a1 100644
48 --- a/board/at91sam9260ek/dataflash/at91sam9260ek.h
49 +++ b/board/at91sam9260ek/dataflash/at91sam9260ek.h
50 @@ -74,10 +74,10 @@
51 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS1_DATAFLASH /* Boot on SPI NCS0 */
53 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
54 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
55 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
57 #define MACH_TYPE 0x44B /* AT91SAM9260-EK */
58 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
59 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
61 /* ******************************************************************* */
62 /* Application Settings */
63 diff --git a/board/at91sam9260ek/nandflash/at91sam9260ek.h b/board/at91sam9260ek/nandflash/at91sam9260ek.h
64 index 2cac601..f8fdff2 100644
65 --- a/board/at91sam9260ek/nandflash/at91sam9260ek.h
66 +++ b/board/at91sam9260ek/nandflash/at91sam9260ek.h
67 @@ -92,7 +92,7 @@
68 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
70 #define MACH_TYPE 0x44B /* AT91SAM9260-EK */
71 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
72 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
74 /* ******************************************************************* */
75 /* Application Settings */
76 diff --git a/board/at91sam9261ek/dataflash/at91sam9261ek.h b/board/at91sam9261ek/dataflash/at91sam9261ek.h
77 index 8ce30e9..276ba3d 100644
78 --- a/board/at91sam9261ek/dataflash/at91sam9261ek.h
79 +++ b/board/at91sam9261ek/dataflash/at91sam9261ek.h
80 @@ -97,10 +97,10 @@
81 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
83 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
84 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
85 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
87 #define MACH_TYPE 0x350 /* AT91SAM9261-EK */
88 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
89 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
91 /* ******************************************************************* */
92 /* Application Settings */
93 diff --git a/board/at91sam9261ek/nandflash/at91sam9261ek.h b/board/at91sam9261ek/nandflash/at91sam9261ek.h
94 index badc3ac..e628c97 100644
95 --- a/board/at91sam9261ek/nandflash/at91sam9261ek.h
96 +++ b/board/at91sam9261ek/nandflash/at91sam9261ek.h
97 @@ -114,7 +114,7 @@
98 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
100 #define MACH_TYPE 0x350 /* AT91SAM9261-EK */
101 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
102 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
104 /* ******************************************************************* */
105 /* Application Settings */
106 diff --git a/board/at91sam9263ek/dataflash/at91sam9263ek.h b/board/at91sam9263ek/dataflash/at91sam9263ek.h
107 index 5c9da4b..870f9e2 100644
108 --- a/board/at91sam9263ek/dataflash/at91sam9263ek.h
109 +++ b/board/at91sam9263ek/dataflash/at91sam9263ek.h
110 @@ -96,10 +96,10 @@
111 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
113 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
114 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
115 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
117 #define MACH_TYPE 0x4B2 /* AT91SAM9263-EK */
118 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
119 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
121 /* ******************************************************************* */
122 /* Application Settings */
123 diff --git a/board/at91sam9263ek/nandflash/at91sam9263ek.h b/board/at91sam9263ek/nandflash/at91sam9263ek.h
124 index 505afc7..8ab4f46 100644
125 --- a/board/at91sam9263ek/nandflash/at91sam9263ek.h
126 +++ b/board/at91sam9263ek/nandflash/at91sam9263ek.h
127 @@ -108,7 +108,7 @@
128 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
130 #define MACH_TYPE 1202 /* AT91SAM9263-EK */
131 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
132 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
134 /* ******************************************************************* */
135 /* Application Settings */
136 diff --git a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
137 index b2faf44..f4f556b 100644
138 --- a/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
139 +++ b/board/at91sam9g10ek/dataflash/at91sam9g10ek.h
140 @@ -98,10 +98,10 @@
141 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
143 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
144 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
145 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
147 #define MACH_TYPE 0x350 /* AT91SAM9261-EK */
148 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
149 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
151 /* ******************************************************************* */
152 /* Application Settings */
153 diff --git a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
154 index 66c40a3..6c3ecda 100644
155 --- a/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
156 +++ b/board/at91sam9g10ek/nandflash/at91sam9g10ek.h
157 @@ -115,7 +115,7 @@
158 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
160 #define MACH_TYPE 0x350 /* AT91SAM9G10-EK */
161 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
162 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
164 /* ******************************************************************* */
165 /* Application Settings */
166 diff --git a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
167 index eea0439..7fc70d6 100644
168 --- a/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
169 +++ b/board/at91sam9g20ek/dataflash/at91sam9g20ek.h
170 @@ -75,10 +75,10 @@
171 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS1_DATAFLASH /* Boot on SPI NCS1 */
173 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
174 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
175 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
177 #define MACH_TYPE 0x658 /* AT91SAM9G20-EK */
178 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
179 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
181 /* ******************************************************************* */
182 /* Application Settings */
183 diff --git a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
184 index 31bd499..e797e4d 100644
185 --- a/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
186 +++ b/board/at91sam9g20ek/nandflash/at91sam9g20ek.h
187 @@ -93,7 +93,7 @@
188 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
190 #define MACH_TYPE 0x658 /* AT91SAM9G20-EK */
191 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
192 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
194 /* ******************************************************************* */
195 /* Application Settings */
196 diff --git a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
197 index a60fd41..5587a00 100644
198 --- a/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
199 +++ b/board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h
200 @@ -89,7 +89,7 @@
201 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
203 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
204 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
205 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
207 #define MACH_TYPE 0x9CD /* AT91SAM9M10-EKES */
208 #define JUMP_ADDR 0x73F00000 /* Final Jump Address */
209 diff --git a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
210 index 5c726b5..9090097 100644
211 --- a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
212 +++ b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
213 @@ -85,7 +85,7 @@
214 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
216 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
217 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
218 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
220 #define MACH_TYPE 0x726 /* AT91SAM9M10G45-EK */
221 #define JUMP_ADDR 0x73F00000 /* Final Jump Address */
222 diff --git a/board/at91sam9rlek/dataflash/at91sam9rlek.h b/board/at91sam9rlek/dataflash/at91sam9rlek.h
223 index 05c42dc..150f17e 100644
224 --- a/board/at91sam9rlek/dataflash/at91sam9rlek.h
225 +++ b/board/at91sam9rlek/dataflash/at91sam9rlek.h
226 @@ -89,10 +89,10 @@
227 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
229 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
230 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
231 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
233 #define MACH_TYPE 1326 /* AT91SAM9RL-EK */
234 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
235 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
237 /* ******************************************************************* */
238 /* Application Settings */
239 diff --git a/board/at91sam9rlek/nandflash/at91sam9rlek.h b/board/at91sam9rlek/nandflash/at91sam9rlek.h
240 index 656b4ba..594db8f 100644
241 --- a/board/at91sam9rlek/nandflash/at91sam9rlek.h
242 +++ b/board/at91sam9rlek/nandflash/at91sam9rlek.h
243 @@ -112,7 +112,7 @@
244 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
246 #define MACH_TYPE 1326 /* AT91SAM9RL-EK */
247 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
248 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
250 /* ******************************************************************* */
251 /* Application Settings */
252 diff --git a/board/at91sam9xeek/dataflash/at91sam9xeek.h b/board/at91sam9xeek/dataflash/at91sam9xeek.h
253 index 27d1822..08e515d 100644
254 --- a/board/at91sam9xeek/dataflash/at91sam9xeek.h
255 +++ b/board/at91sam9xeek/dataflash/at91sam9xeek.h
256 @@ -74,10 +74,10 @@
257 #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS1_DATAFLASH /* Boot on SPI NCS1 */
259 #define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */
260 -#define IMG_SIZE 0x33900 /* Image Size in DataFlash */
261 +#define IMG_SIZE 0x7BC00 /* Image Size in DataFlash */
263 #define MACH_TYPE 0x44B /* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
264 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
265 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
267 /* ******************************************************************* */
268 /* Application Settings */
269 diff --git a/board/at91sam9xeek/nandflash/at91sam9xeek.h b/board/at91sam9xeek/nandflash/at91sam9xeek.h
270 index 5dbc63e..9fac7cb 100644
271 --- a/board/at91sam9xeek/nandflash/at91sam9xeek.h
272 +++ b/board/at91sam9xeek/nandflash/at91sam9xeek.h
273 @@ -94,7 +94,7 @@
274 #define IMG_SIZE 0x40000 /* Image Size in NandFlash */
276 #define MACH_TYPE 0x44B /* AT91SAM9XE-EK same id as AT91SAM9260-EK*/
277 -#define JUMP_ADDR 0x23F00000 /* Final Jump Address */
278 +#define JUMP_ADDR 0x21F00000 /* Final Jump Address */
280 /* ******************************************************************* */
281 /* Application Settings */
283 1.7.9.5