Compile Error while doing make

Richard Smith rsmith at
Mon Jul 19 10:55:01 CEST 2004

Thomas Leidenfrost wrote:

> ..cp linuxbios_payload.nrv2b linuxbios_payload
> echo "INCLUDE ldoptions" > ldscript.ld ; for file in 
> /home/thomasle/freebios/src/arch/i386/config/ldscript.base 
> /home/thomasle/freebios/src/cpu/i386/ 
> /home/thomasle/freebios/src/cpu/i386/ 
> /home/thomasle/freebios/src/cpu/i386/ ; do echo "INCLUDE 
> $file" >> ldscript.ld ; done
> gcc -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o
> crt0.o(.rom.text+0x7e): In function `__protected_start':
> : undefined reference to `SERIAL_SUPERIO_BASEADDRESS'
> crt0.o(.rom.text+0x8f): In function `__protected_start':
> : undefined reference to `SERIAL_SUPERIO_BASEADDRESS'
> crt0.o(.rom.text+0xa0): In function `__protected_start':
> : undefined reference to `SERIAL_SUPERIO_BASEADDRESS'
> crt0.o(.rom.text+0xb1): In function `__protected_start':
> : undefined reference to `SERIAL_SUPERIO_BASEADDRESS'
> crt0.o(.rom.text+0xc2): In function `__protected_start':
> : undefined reference to `SERIAL_SUPERIO_BASEADDRESS'
> crt0.o(.rom.text+0xd3): more undefined references to 

Looks like the boot up serial_setup is not right.  crt0.s is built from 
files specified in your ./mainboard/Avantech/pcm-5823/Config

the serial boot output stuff is built from this line.

mainboardinit superio/SMC/fdc37b72x/

Looking at the .inc for the advantech stuff and the config  and some 
grepping I see that the superio base address is set with SMC_BASE in the 
pcm-5823 but set with SERIAL_SUPERIO_BASEADDRESS in the pcm-9574.

What did you change this like to?

Go look at whatever you have and see what option it 
needs set for the serial base address.

It may be as simple as adding a


to your mainboard config file or you may have to make some mods for whatever superio you changed to.

More information about the coreboot mailing list