forked from linux4sam/at91bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.in
369 lines (305 loc) · 12.4 KB
/
Config.in
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
mainmenu "AT91 Bootstrap configuration"
config HAVE_DOT_CONFIG
bool
default y
help
Indicate that have an included file.
source "board/Config.in"
source "driver/Config.in.driver"
config CONFIG_PROJECT
string
default "dataflash" if CONFIG_DATAFLASH
default "flash" if CONFIG_FLASH
default "nandflash" if CONFIG_NANDFLASH
default "sdcard" if CONFIG_SDCARD
choice
prompt "Image Loading Strategy"
default CONFIG_LOAD_UBOOT
config CONFIG_LOAD_UBOOT
bool "Load U-Boot into last MBYTE of SDRAM"
help
Use this mode to load an second level boot monitor
like U-boot into the last MB of SDRAM.
config CONFIG_LOAD_LINUX
bool "Support loading Linux directly"
---help---
Load Linux kernel directly from storage media
config CONFIG_LOAD_ANDROID
bool "Support loading android directly"
help
Load android image directly from storage media
config CONFIG_LOAD_1MB
bool "Load 1 MB into start of SDRAM"
help
Use this mode to load an embedded application
which can have a size of up to 1 MByte
config CONFIG_LOAD_4MB
bool "Load 4 MB into start of SDRAM"
help
Use this mode to load an embedded application
which can have a size of up to 4 MByte
config CONFIG_LOAD_64KB
bool "Load 64 kB into the start of SDRAM"
help
Use this mode to load an embedded application
which can have max 64 kB Size
endchoice
#
# Linux Image Storage Setup
#
menu "Linux Image Storage Setup"
depends on CONFIG_LOAD_LINUX
config CONFIG_OS_MEM_BANK
string "Extern Memory Bank Base Address"
default "0x70000000" if CONFIG_AT91SAM9M10G45EK
default "0x20000000"
config CONFIG_OS_MEM_SIZE
string "Extern Memory Bank Size"
default "0x20000000" if CONFIG_SAMA5D3XEK
default "0x8000000" if CONFIG_AT91SAM9X5EK || CONFIG_AT91SAM9N12EK
default "0x4000000"
config CONFIG_LINUX_KERNEL_ARG_STRING
string "Linux kernel parameters"
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9260EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9261EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9263EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9RLEK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9XEEK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9G10EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9G20EK && !CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel)ro,-(rootfs) rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs" if CONFIG_AT91SAM9X5EK && !CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel)ro,-(rootfs) rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs" if CONFIG_AT91SAM9N12EK && !CONFIG_SDCARD
default "mem=512M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel)ro,-(rootfs) rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs" if CONFIG_SAMA5D3XEK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/kernel),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9M10G45EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9RLEK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9G10EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9261EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9G20EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9263EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9XEEK && CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9X5EK && CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9N12EK && CONFIG_SDCARD
default "mem=512M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_SAMA5D3XEK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9M10G45EK && CONFIG_SDCARD
config CONFIG_OS_IMAGE_NAME
string "Binary Name on SD Card"
depends on CONFIG_SDCARD
default "image.bin"
config CONFIG_IMG_ADDRESS
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
string "Flash Offset for Linux Kernel Image"
default "0x00008000" if CONFIG_FLASH
default "0x00042000" if CONFIG_DATAFLASH
default "0x00200000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
help
config CONFIG_IMG_SIZE
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
string "Linux Kernel Image Size"
default "0x300000"
config CONFIG_JUMP_ADDR
string "The External Ram Address to Load Kernel Image"
default "0x72000000" if CONFIG_AT91SAM9M10G45EK
default "0x22000000"
help
The entry point to which the bootstrap will pass control.
config CONFIG_OF_LIBFDT
bool "Flattened Device Tree Support"
default y
config CONFIG_OF_OFFSET
string "The Offset of Flash Device Tree Blob "
depends on CONFIG_OF_LIBFDT && (CONFIG_DATAFLASH || CONFIG_NANDFLASH)
default "0x00008400" if CONFIG_DATAFLASH
default "0x00180000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
config CONFIG_OF_LENGTH
string "The Length of Flash Device Tree Blob"
depends on CONFIG_OF_LIBFDT && (CONFIG_DATAFLASH || CONFIG_NANDFLASH)
default "0x2FFFF"
config CONFIG_OF_FILENAME
string "Device Tree Filename on SD Card"
depends on CONFIG_OF_LIBFDT && CONFIG_SDCARD
default "ek.dtb"
config CONFIG_OF_ADDRESS
string "The External Ram Address to Load Device Tree Blob"
depends on CONFIG_OF_LIBFDT
default "0x71000000" if CONFIG_AT91SAM9M10G45EK
default "0x21000000"
help
endmenu
#
# Android Image Storage Setup
#
menu "Android Image Storage Setup"
depends on CONFIG_LOAD_ANDROID
config CONFIG_OS_MEM_BANK
string "Extern Memory Bank Base Address"
default "0x70000000" if CONFIG_AT91SAM9M10G45EK
default "0x20000000"
config CONFIG_OS_MEM_SIZE
string "Extern Memory Bank Size"
default "0x20000000" if CONFIG_SAMA5D3XEK
default "0x8000000" if CONFIG_AT91SAM9X5EK || CONFIG_AT91SAM9N12EK
default "0x4000000"
config CONFIG_LINUX_KERNEL_ARG_STRING
string "android kernel command line"
default "console=ttyS0,115200 mtdparts=atmel_nand:5M(Bootstrap),125M(system),-(userdata) ubi.mtd=1 ubi.mtd=2 rw root=ubi0:system rootfstype=ubifs init=/init androidboot.hardware=sama5d3x-ek androidboot.console=ttyS0" if CONFIG_SAMA5D3XEK && !CONFIG_SDCARD
default "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait init=/init androidboot.hardware=sama5d3x-ek androidboot.console=ttyS0" if CONFIG_SAMA5D3XEK && CONFIG_SDCARD
config CONFIG_OS_IMAGE_NAME
string "Binary Name on SD Card"
depends on CONFIG_SDCARD
default "image.bin"
config CONFIG_IMG_ADDRESS
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
string "Flash Offset for Linux Kernel Image"
default "0x00008000" if CONFIG_FLASH
default "0x00042000" if CONFIG_DATAFLASH
default "0x00200000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
help
config CONFIG_IMG_SIZE
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
string "Linux Kernel Image Size"
default "0x300000"
config CONFIG_JUMP_ADDR
string "The External Ram Address to Load Kernel Image"
default "0x72000000" if CONFIG_AT91SAM9M10G45EK
default "0x22000000"
help
The entry point to which the bootstrap will pass control.
config CONFIG_OF_LIBFDT
bool "Flattened Device Tree Support"
default y
config CONFIG_OF_OFFSET
string "The Offset of Flash Device Tree Blob "
depends on CONFIG_OF_LIBFDT && (CONFIG_DATAFLASH || CONFIG_NANDFLASH)
default "0x00008400" if CONFIG_DATAFLASH
default "0x00180000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
config CONFIG_OF_LENGTH
string "The Length of Flash Device Tree Blob"
depends on CONFIG_OF_LIBFDT && (CONFIG_DATAFLASH || CONFIG_NANDFLASH)
default "0x30000"
config CONFIG_OF_FILENAME
string "Device Tree Filename on SD Card"
depends on CONFIG_OF_LIBFDT && CONFIG_SDCARD
default "ek.dtb"
config CONFIG_OF_ADDRESS
string "The External Ram Address to Load Device Tree Blob"
depends on CONFIG_OF_LIBFDT
default "0x71000000" if CONFIG_AT91SAM9M10G45EK
default "0x21000000"
help
endmenu
#
# U-Boot Image Storage Setup
#
menu "U-Boot Image Storage Setup"
depends on CONFIG_LOAD_UBOOT
config CONFIG_OS_IMAGE_NAME
string "Binary Name on SD Card"
depends on CONFIG_SDCARD
default "u-boot.bin"
config CONFIG_IMG_ADDRESS
string "Flash Offset for U-Boot"
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
default "0x00008000" if CONFIG_FLASH
default "0x00008400" if CONFIG_DATAFLASH
default "0x00040000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
help
config CONFIG_IMG_SIZE
string "U-Boot Image Size"
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
default "0x00080000"
help
at91bootstrap will copy this size of U-Boot image
config CONFIG_JUMP_ADDR
string "The External Ram Address to Load U-Boot Image"
default "0x73F00000" if CONFIG_AT91SAM9M10G45EK
default "0x26F00000" if CONFIG_AT91SAM9X5EK || CONFIG_AT91SAM9N12EK || CONFIG_SAMA5D3XEK
default "0x27F00000" if CONFIG_CDU9G25
default "0x21F00000" if CONFIG_AT91SAM9260EK || CONFIG_AT91SAM9261EK || CONFIG_AT91SAM9263EK || CONFIG_AT91SAM9G10EK || CONFIG_AT91SAM9G20EK || CONFIG_AT91SAM9RLEK
default "0x23F00000"
help
The entry point to which the bootstrap will pass control.
endmenu
#
# Demo App Image Storage Setup
#
menu "Demo Application Image Storage Setup"
depends on CONFIG_LOAD_64KB || CONFIG_LOAD_1MB || CONFIG_LOAD_4MB
config CONFIG_OS_IMAGE_NAME
string "Binary Name on SD Card"
depends on CONFIG_SDCARD
default "demo-app.bin"
config CONFIG_IMG_ADDRESS
string "Flash Offset for Demo-App"
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
default "0x00008400" if CONFIG_DATAFLASH
default "0x00040000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
config CONFIG_IMG_SIZE
string "Demo-App Image Size"
depends on CONFIG_DATAFLASH || CONFIG_NANDFLASH
default "0x00010000" if CONFIG_LOAD_64KB
default "0x00100000" if CONFIG_LOAD_1MB
default "0x00400000" if CONFIG_LOAD_4MB
help
at91bootstrap will copy this size of Demo-App image
config CONFIG_JUMP_ADDR
string "The External Ram Address to Load Demo-App Image"
default "0x70000000" if CONFIG_AT91SAM9M10G45EK
default "0x20000000"
help
The entry point to which the bootstrap will pass control.
endmenu
config CONFIG_IMAGE_NAME
string
default "android" if CONFIG_LOAD_ANDROID
default "linux" if CONFIG_LOAD_LINUX
default "uboot" if CONFIG_LOAD_UBOOT
default "softapp" if CONFIG_LOAD_64KB || CONFIG_LOAD_4MB || CONFIG_LOAD_1MB
config CONFIG_LONG_TEST
bool "Perform a memory test at startup"
default n
help
config CONFIG_DEBUG
bool "Debug Support"
default n
help
Output Debug messages
choice
prompt "Debug Level"
depends on CONFIG_DEBUG
config CONFIG_DEBUG_INFO
bool "General debug information"
config CONFIG_DEBUG_LOUD
bool "Loud debug output"
config CONFIG_DEBUG_VERY_LOUD
bool "Even louder debug output"
endchoice
config CONFIG_HW_INIT
bool "Call Hardware Initialization"
default y
help
Initialize Hardware
config CONFIG_USER_HW_INIT
bool "Call User specific Hardware Initialization"
help
Initialize Hardware
config CONFIG_THUMB
depends on !CONFIG_SAMA5D3XEK
bool "Build in thumb mode"
help
Build code in thumb mode
config CONFIG_SCLK
depends on CONFIG_AT91SAM9RLEK || CONFIG_AT91SAM9M10G45EK || CONFIG_AT91SAM9X5EK || CONFIG_AT91SAM9N12EK || CONFIG_SAMA5D3XEK || CONFIG_CDU9G25
bool "Use external 32KHZ oscillator as source of slow clock"
help
Use external 32KHZ oscillator as source of slow clock
config CONFIG_DISABLE_WATCHDOG
bool "Disable Watchdog"
default y
help
Disable the watchdog in the boostrap