[LinuxBIOS] Problem on compilation

ron minnich rminnich at gmail.com
Mon Mar 12 16:43:18 CET 2007

On 3/12/07, ccases at navista.fr <ccases at navista.fr> wrote:

> rm -f linuxbios.a
> ar cr linuxbios.a  malloc.o lapic_cpu_init.o pci_ops.o lapic.o smbus_ops.o
> memset.o pci_ops_auto.o superio.o linuxbios_table.o fallback_boot.o
> pciexp_device.o tables.o keyboard.o pnp_device.o printk.o irq_tables.o
> pcix_device.o decode.o pci_device.o console.o delay_tsc.o elfboot.o
> hardwaremain.o boot.o i8259.o delay.o version.o pci_ops_mmconf.o memcmp.o
> exception.o secondary.o isa-dma.o pcibios.o hypertransport.o vtxprintf.o
> ops.o prim_ops.o root_device.o cardbus_device.o uart8250.o sys.o
> device_util.o ./option_table.o compute_ip_checksum.o device.o onboard.o
> northbridge.o memcpy.o agp_device.o clog2.o pirq_routing.o memmove.o
> pci_rom.o pci_ops_conf2.o pci_ops_conf1.o mc146818rtc.o cache.o fpu.o
> rom_stream.o debug.o c_start.o ops2.o biosemu.o vsprintf.o cpu.o static.o
> gcc -m32 -nostdlib -r -o linuxbios_ram.o c_start.o  uart8250_console.o
> model_gx1_init.o mainboard.o cs5530.o vga_console.o cs5530_ide.o
> linuxbios.a /usr/lib/gcc-lib/i486-linux/3.3.5/libgcc.a
> gcc -m32 -nostdlib -nostartfiles -static -o linuxbios_ram -T
> /home/ccases/LinuxBIOSv2/src/config/linuxbios_ram.ld linuxbios_ram.o
> linuxbios_ram.o(.text+0x4b6b): In function `write_tables':
> : undefined reference to `write_pirq_routing_table'
> collect2: ld returned 1 exit status

yes, you need a write_pirq_routing_table function in mainboard.c, as
that function is usually mainboard-dependent. You can grab one from,
e.g., the msm80sev mainboard.c; it will most likely work.



More information about the coreboot mailing list