VIA EPIA Build Error MAX_REBOOT_CT

Greg Watson gwatson at lanl.gov
Thu Apr 8 12:02:05 CEST 2004


Check the Makefile.settings in the fallback directory and see if 
MAX_REBOOT_CNT is defined. If it isn't then there's some problem with 
the configuration. If it is, then it's not getting passed to the gcc 
command line.

Greg

On 08/04/2004, at 10:23 AM, Mathieu Deschamps wrote:

>
> I'am building a new rom but now,I got stuck because of
> #error "MAX_REBOOT_CNT not defined"
> in make process of build target even though i defined this in Config.lb
> Here is a process trace :
>
> #######################################################################
> if (cd fallback; \
>         make linuxbios.rom)\
> then true; else exit 1; fi;
> make[1]: Entering directory
> `/home/root/projet-07042004/freebios/freebios2/build/epia/fallbac
> k'
> cp /home/root/projet/freebios/freebios2/src/arch/i386/config/crt0.base
> crt0.S
> gcc -no-gcc -x assembler-with-cpp -DASSEMBLY -E
> -I/home/root/projet/freebios/freebios2/src -D
> __ROMCC__=0 -D__ROMCC_MINOR__=38
> -I/home/root/projet/freebios/freebios2/src/include -I/home/r
> oot/projet/freebios/freebios2/src/arch/i386/include
> -I/usr/lib/gcc-lib/i486-linux/egcs-2.91.6
> 6/include
>
> /home/root/projet/freebios/freebios2/src/mainboard/via/epia/failover.c 
> >
> ./failover.E
> gcc: unrecognized option `-no-gcc'
> In file included from
> /home/root/projet/freebios/freebios2/src/mainboard/via/epia/failover.c:
> 7:
> /home/root/projet/freebios/freebios2/src/pc80/mc146818rtc_early.c:5:
> #error "MAX_REBOOT_CNT n
> ot defined"
> make[1]: *** [failover.E] Error 1
> make[1]: Leaving directory
> `/home/root/projet-07042004/freebios/freebios2/build/epia/fallback
> '
> make: *** [fallback-rom] Error 1
> #################################################################
>
>
> What is that pc80 directory in which it errors ?
> The parameter MAX_BOOT_CT is the counter that holds the survival
> of kernel messages after # boots, isn't it ?
>
>
> I've also joined the Config file on which i haven't
> made much changes except what it asked for.
>
> Please mail me a clue, just ask if you need moer info on the slab.
>
>
> Thanks in advance.
>
> ################################################################
> # Sample config file for EPIA
> # This will make a target directory of ./epia
> #
> # Change for experimentation MD
> #
> loadoptions
>
> target epia
>
> uses ARCH
> uses CONFIG_COMPRESS
> uses CONFIG_IOAPIC
> 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
>
>
> # Sample config file for EPIA
> # This will make a target directory of ./epia
> #
> # Change for experimentation MD
> #
> loadoptions
>
> target epia
>
> uses ARCH
> uses CONFIG_COMPRESS
> uses CONFIG_IOAPIC
> 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_LOGLEVE
> uses CONFIG_CONSOLE_SERIAL8250
> uses MAINBOARD
> uses CONFIG_CHIP_CONFIGURE
> uses XIP_ROM_SIZE
> uses XIP_ROM_BASE
> uses LINUXBIOS_EXTRA_VERSION
> uses TTYS0_BAUD
> uses MAX_REBOOT_CNT
>
>
> option TTYS0_BAUD=19200
>
> option CONFIG_CHIP_CONFIGURE=1
>
> option  MAXIMUM_CONSOLE_LOGLEVEL=7
> option  DEFAULT_CONSOLE_LOGLEVEL=7
> 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=256*1024
>
> option HAVE_OPTION_TABLE=1
> option CONFIG_ROM_STREAM=1
> option HAVE_FALLBACK_BOOT=1
>
> #
> # More Options
> #
> option MAX_REBOOT_CNT=10
>
>
>
> ###
> ### 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"
>
>
> _______________________________________________
> Linuxbios mailing list
> Linuxbios at clustermatic.org
> http://www.clustermatic.org/mailman/listinfo/linuxbios
>




More information about the coreboot mailing list