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