From 08febd8b675ca1d32e535e11b631e7a655b510ba Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 1 Oct 2003 05:42:31 +0000 Subject: new epia target for 512k: targets/via/epia/Config.512kflash.lb buildtarget now takes either a directory, and uses directory/Config.lb, or takes a file epia defaults to 256k flash git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1166 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/via/epia/Config.lb | 2 +- targets/buildtarget | 7 ++- targets/via/epia/Config.512kflash.lb | 109 +++++++++++++++++++++++++++++++++++ targets/via/epia/Config.lb | 3 - 4 files changed, 116 insertions(+), 5 deletions(-) create mode 100644 targets/via/epia/Config.512kflash.lb diff --git a/src/mainboard/via/epia/Config.lb b/src/mainboard/via/epia/Config.lb index c32c4decb0..73356f55ef 100644 --- a/src/mainboard/via/epia/Config.lb +++ b/src/mainboard/via/epia/Config.lb @@ -17,7 +17,7 @@ uses XIP_ROM_BASE uses HAVE_MP_TABLE ## ROM_SIZE is the size of boot ROM that this board will use. -default ROM_SIZE 524288 +default ROM_SIZE 256*1024 ### ### Build options diff --git a/targets/buildtarget b/targets/buildtarget index 273a26bab2..9f8cb31619 100755 --- a/targets/buildtarget +++ b/targets/buildtarget @@ -15,7 +15,7 @@ else fi target_dir=$lbpath/targets -config_lb=$1/Config.lb +config_lb=$1 config_dir=$lbpath/util/newconfig config_py=$config_dir/config.py @@ -26,8 +26,13 @@ fi cd $target_dir +if [ ! -f $config_lb ]; then + config_lb=$1/Config.lb +fi + if [ ! -f $config_lb ]; then echo "No target config file found" + echo "Tried both $1 and $config_lb" exit 1 fi diff --git a/targets/via/epia/Config.512kflash.lb b/targets/via/epia/Config.512kflash.lb new file mode 100644 index 0000000000..2b80ac4242 --- /dev/null +++ b/targets/via/epia/Config.512kflash.lb @@ -0,0 +1,109 @@ +# Sample config file for Motorola Sandpoint X3 Demo Board with +# the Arima HDAMA +# This will make a target directory of ./hdama + +loadoptions + +target epia + +uses ARCH +uses CONFIG_COMPRESS +uses CONFIG_IOAPIC +uses CONFIG_KEYBOARD +uses CONFIG_ROM_STREAM +uses CONFIG_ROM_STREAM_START +uses CONFIG_UDELAY_TSC +uses CPU_FIXUP +uses FALLBACK_SIZE +uses HAVE_FALLBACK_BOOT +uses HAVE_MP_TABLE +uses HAVE_PIRQ_TABLE +uses HAVE_HARD_RESET +uses i586 +uses i686 +uses INTEL_PPRO_MTRR +uses HEAP_SIZE +uses IRQ_SLOT_COUNT +uses MAINBOARD_PART_NUMBER +uses MAINBOARD_VENDOR +uses CONFIG_SMP +uses CONFIG_MAX_CPUS +uses MEMORY_HOLE +uses PAYLOAD_SIZE +uses _RAMBASE +uses _ROMBASE +uses ROM_IMAGE_SIZE +uses ROM_SECTION_OFFSET +uses ROM_SECTION_SIZE +uses ROM_SIZE +uses STACK_SIZE +uses USE_FALLBACK_IMAGE +uses USE_OPTION_TABLE +uses HAVE_OPTION_TABLE +uses MAXIMUM_CONSOLE_LOGLEVEL +uses DEFAULT_CONSOLE_LOGLEVEL +uses CONFIG_CONSOLE_SERIAL8250 +uses MAINBOARD +uses CONFIG_CHIP_CONFIGURE +uses XIP_ROM_SIZE +uses XIP_ROM_BASE +uses LINUXBIOS_EXTRA_VERSION + +option CONFIG_CHIP_CONFIGURE=1 +option CONFIG_KEYBOARD=1 + +option MAXIMUM_CONSOLE_LOGLEVEL=10 +option DEFAULT_CONSOLE_LOGLEVEL=10 +option CONFIG_CONSOLE_SERIAL8250=1 + +option CPU_FIXUP=1 +option CONFIG_UDELAY_TSC=0 +option i686=1 +option i586=1 +option INTEL_PPRO_MTRR=1 + +option ROM_SIZE=524288 + + +option HAVE_OPTION_TABLE=1 +option CONFIG_ROM_STREAM=1 +option HAVE_FALLBACK_BOOT=1 + +### +### Compute the location and size of where this firmware image +### (linuxBIOS plus bootloader) will live in the boot rom chip. +### +option FALLBACK_SIZE=131072 + +## LinuxBIOS C code runs at this location in RAM +option _RAMBASE=0x00004000 + +# +### +### Compute the start location and size size of +### The linuxBIOS bootloader. +### + +# +# Arima hdama +romimage "normal" + option USE_FALLBACK_IMAGE=0 + option ROM_IMAGE_SIZE=0x10000 + option LINUXBIOS_EXTRA_VERSION=".0Normal" + mainboard via/epia +# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf +# payload ../../../../tg3--ide_disk.zelf + payload ../../../../../lnxieepro100.ebi +end + +romimage "fallback" + option USE_FALLBACK_IMAGE=1 + option ROM_IMAGE_SIZE=0x10000 + option LINUXBIOS_EXTRA_VERSION=".0Fallback" + mainboard via/epia +# payload /usr/share/etherboot/5.1.9pre2-lnxi-lb/tg3--ide_disk.zelf +# payload ../../../../tg3--ide_disk.zelf + payload ../../../../../lnxieepro100.ebi +end + +buildrom ./linuxbios.rom ROM_SIZE "normal" "fallback" diff --git a/targets/via/epia/Config.lb b/targets/via/epia/Config.lb index 2b80ac4242..c2b00d2b9f 100644 --- a/targets/via/epia/Config.lb +++ b/targets/via/epia/Config.lb @@ -62,9 +62,6 @@ option i686=1 option i586=1 option INTEL_PPRO_MTRR=1 -option ROM_SIZE=524288 - - option HAVE_OPTION_TABLE=1 option CONFIG_ROM_STREAM=1 option HAVE_FALLBACK_BOOT=1 -- cgit v1.2.3