add filename to buildrom command
[coreboot.git] / targets / tyan / s2880 / Config.lb
1 # Sample config file for 
2 # the Tyan s2880 
3 # This will make a target directory of ./s2880
4
5 loadoptions
6
7 target s2880
8
9 uses ARCH
10 uses CONFIG_COMPRESS
11 uses CONFIG_IOAPIC
12 uses CONFIG_ROM_STREAM
13 uses CONFIG_ROM_STREAM_START
14 uses CONFIG_SMP
15 uses CONFIG_UDELAY_TSC
16 uses CPU_FIXUP
17 uses FALLBACK_SIZE
18 uses HAVE_FALLBACK_BOOT
19 uses HAVE_MP_TABLE
20 uses HAVE_PIRQ_TABLE
21 uses i586
22 uses i686
23 uses INTEL_PPRO_MTRR
24 uses HEAP_SIZE
25 uses IRQ_SLOT_COUNT
26 uses k7
27 uses k8
28 uses MAINBOARD
29 uses MAINBOARD_PART_NUMBER
30 uses MAINBOARD_VENDOR
31 #uses MEMORY_HOLE
32 uses PAYLOAD_SIZE
33 uses _RAMBASE
34 uses _ROMBASE
35 uses ROM_IMAGE_SIZE
36 uses ROM_SECTION_OFFSET
37 uses ROM_SECTION_SIZE
38 uses ROM_SIZE
39 uses STACK_SIZE
40 uses USE_FALLBACK_IMAGE
41 uses USE_OPTION_TABLE
42 uses HAVE_OPTION_TABLE
43 uses CONFIG_CHIP_CONFIGURE
44  
45 uses CONFIG_CONSOLE_SERIAL8250
46 uses TTYS0_BAUD
47 uses DEFAULT_CONSOLE_LOGLEVEL
48 uses MAXIMUM_CONSOLE_LOGLEVEL
49 uses DEBUG
50 uses CONFIG_MAX_CPUS
51 uses CONFIG_LOGICAL_CPUS
52 uses CONFIG_MAX_PHYSICAL_CPUS
53 uses LINUXBIOS_EXTRA_VERSION
54 uses XIP_ROM_SIZE
55 uses XIP_ROM_BASE
56
57 uses CONFIG_VGABIOS
58 uses CONFIG_REALMODE_IDT
59 uses CONFIG_PCIBIOS
60 uses VGABIOS_START
61 uses SCSIFW_START
62
63 #
64 #uses CONFIG_LSI_SCSI_FW_FIXUP
65
66 option HAVE_OPTION_TABLE=1
67 option HAVE_MP_TABLE=1
68 option CPU_FIXUP=1
69 option CONFIG_UDELAY_TSC=0
70 option i686=1
71 option i586=1
72 option INTEL_PPRO_MTRR=1
73 option k7=1
74 option k8=1
75 option ROM_SIZE=524288
76
77 #option CONFIG_VGABIOS=1
78 #option CONFIG_REALMODE_IDT=1
79 #option CONFIG_PCIBIOS=1
80 #option VGABIOS_START=0xfff8c000
81 option SCSIFW_START=0xfff80000
82
83
84 option HAVE_FALLBACK_BOOT=1
85   
86 # use the new chip configure code.
87
88 option CONFIG_CHIP_CONFIGURE=1
89 #option CONFIG_LSI_SCSI_FW_FIXUP=1
90
91
92 #
93 ###
94 ### Build code to export a programmable irq routing table
95 ###
96 option HAVE_PIRQ_TABLE=1
97 option IRQ_SLOT_COUNT=13
98 #
99 ###
100 ### Build code for SMP support
101 ### Only worry about 2 micro processors
102 ###
103 option CONFIG_SMP=1
104 option CONFIG_MAX_CPUS=2
105 option CONFIG_LOGICAL_CPUS=0
106 option CONFIG_MAX_PHYSICAL_CPUS=2
107 #
108 ###
109 ### Build code to setup a generic IOAPIC
110 ###
111 option CONFIG_IOAPIC=1
112 #
113 ###
114 ### MEMORY_HOLE instructs earlymtrr.inc to
115 ### enable caching from 0-640KB and to disable 
116 ### caching from 640KB-1MB using fixed MTRRs 
117 ###
118 ### Enabling this option breaks SMP because secondary
119 ### CPU identification depends on only variable MTRRs
120 ### being enabled.
121 ###
122 #option MEMORY_HOLE=0
123 #
124 ###
125 ### Clean up the motherboard id strings
126 ###
127 option MAINBOARD_PART_NUMBER="S2880"
128 option MAINBOARD_VENDOR="Tyan"
129 #
130 ###
131 ### Compute the location and size of where this firmware image
132 ### (linuxBIOS plus bootloader) will live in the boot rom chip.
133 ###
134 #option FALLBACK_SIZE=524288
135 option FALLBACK_SIZE=98304
136
137 ## ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
138 option ROM_IMAGE_SIZE=65536
139  
140
141 ###
142 ### Compute where this copy of linuxBIOS will start in the boot rom
143 ###
144 #
145 ###
146
147 ## We do use compressed image
148 option CONFIG_COMPRESS=1
149
150 option CONFIG_CONSOLE_SERIAL8250=1
151 option TTYS0_BAUD=115200
152
153 ##
154 ### Select the linuxBIOS loglevel
155 ##
156 ## EMERG      1   system is unusable
157 ## ALERT      2   action must be taken immediately
158 ## CRIT       3   critical conditions
159 ## ERR        4   error conditions
160 ## WARNING    5   warning conditions
161 ## NOTICE     6   normal but significant condition
162 ## INFO       7   informational
163 ## DEBUG      8   debug-level messages
164 ## SPEW       9   Way too many details
165
166 ## Request this level of debugging output
167 option DEFAULT_CONSOLE_LOGLEVEL=8
168 ## At a maximum only compile in this level of debugging
169 option MAXIMUM_CONSOLE_LOGLEVEL=9
170
171 option DEBUG=1
172
173 #
174
175 ## LinuxBIOS C code runs at this location in RAM
176 option _RAMBASE=0x004000
177
178 ##
179 ## Use a 64K stack
180 ##
181 option STACK_SIZE=0x2000
182
183 ##
184 ## Use a 64K heap
185 ##
186 option HEAP_SIZE=0x2000
187
188 #
189 ###
190 ### Compute the start location and size size of
191 ### The linuxBIOS bootloader.
192 ###
193 option CONFIG_ROM_STREAM     = 1
194
195 #
196
197 romimage "normal"
198 #       48K for SCSI FW
199         option ROM_SIZE = 475136
200 #       48K for SCSI FW and 48K for ATI ROM
201 #       option ROM_SIZE = 425984  
202         option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal"
203         option ROM_SECTION_SIZE  = (ROM_SIZE - FALLBACK_SIZE)
204         option ROM_SECTION_OFFSET= 0
205
206         option PAYLOAD_SIZE            = (ROM_SECTION_SIZE - ROM_IMAGE_SIZE)
207         option CONFIG_ROM_STREAM_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
208         option _ROMBASE      = (CONFIG_ROM_STREAM_START + PAYLOAD_SIZE)
209
210         option XIP_ROM_SIZE = FALLBACK_SIZE
211         option XIP_ROM_BASE = (_ROMBASE + ROM_IMAGE_SIZE - XIP_ROM_SIZE)
212
213         mainboard tyan/s2880
214         payload ../../tg3--ide_disk.zelf 
215 end
216
217 romimage "fallback" 
218         option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback"
219         option USE_FALLBACK_IMAGE=1
220         option ROM_SECTION_SIZE  = FALLBACK_SIZE
221         option ROM_SECTION_OFFSET= (ROM_SIZE - FALLBACK_SIZE)
222
223         option PAYLOAD_SIZE            = (ROM_SECTION_SIZE - ROM_IMAGE_SIZE)
224         option CONFIG_ROM_STREAM_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1)
225         option _ROMBASE      = (CONFIG_ROM_STREAM_START + PAYLOAD_SIZE)
226
227         option XIP_ROM_SIZE = FALLBACK_SIZE
228         option XIP_ROM_BASE = (_ROMBASE + ROM_IMAGE_SIZE - XIP_ROM_SIZE)
229
230         mainboard tyan/s2880
231         payload ../../tg3.zelf
232 end
233
234 buildrom ./linuxbios.rom ROM_SIZE "normal" "fallback"