Problems compiling linuxbios for pcchips810

Alessio Sangalli alesan at manoweb.com
Thu Mar 13 13:56:00 CET 2003


Hi, I've wrote a config file for pcchips 810 to let it boot from IDE. 
This is the config file.

target rom
mainboard pcchips/m810lmr
cpu k7
option VIDEO_CONSOLE=1
option SERIAL_CONSOLE=1
option DEFAULT_CONSOLE_LOGLEVEL=6
option SERIAL_POST=1
option ENABLE_MII=1
option MUST_ENABLE_FLOPPY=1
option HAVE_FRAMEBUFFER=1
option SMA_SIZE=0x80
option BOOT_IDE=1
option IDE_BOOT_DRIVE=0
option ONE_TRACK=32
biosbase 0xffff0000
linux /usr/src/linux
commandline root=/dev/hda1 console=ttyS0,115200 console=tty0


I use the NLBConfig.py script to generate the makefile etc:
$ python2.2 NLBConfig.py myconfig ~/linuxbios/freebios/

the output contains few warnings, but it seems nothing special.



I enter "rom" directory and I type make. I've tried to use both gcc296 
on redhat 7.2 and gcc322 compiled directly from sources (it works very 
well); I get this error:

[snip]
rm -f linuxbios.a
ar cr linuxbios.a crt0.o linuxbiosmain.o linuxpci.o newpci.o clog2.o 
printk.o serial_subr.o video_subr.o subr.o vsprintf.o memset.o memcpy.o 
memcmp.o malloc.o do_inflate.o delay.o compute_ip_checksum.o version.o 
keyboard.o mc146818rtc.o isa-dma.o i8259.o beep.o vga_load_regs.o 
font_8x16.o vga_set_mode.o vga_load_pcx.o ide.o boot.o linuxbios_table.o 
i386_subr.o params.o hardwaremain.o c_start.o pirq_routing.o c_start.o 
southbridge.o northbridge.o superio_sis_950.o nsuperio.o mainboard.o 
irq_tables.o keyboard.o cpuid.o microcode.o mtrr.o l2_cache.o cpufixup.o 
cpufixup.o
gcc -nostdlib -r -o linuxbios_c.o c_start.o  ide_fill_inbuf.o 
linuxbios.a /usr/local/gcc322/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgcc.a
perl -e 'foreach $var (split(" ", $ENV{VARIABLES})) { if ($ENV{$var} =~ 
m/^(0x[0-9a-fA-F]+|0[0-7]+|[0-9]+)$/) { print "$var = $ENV{$var};\n"; 
}}' > ldoptions
gcc -nostdlib -nostartfiles -static -o linuxbios_c -T 
/home/alesan/linuxbios/freebios/src/config/linuxbios_c.ld linuxbios_c.o
linuxbios_c.o: In function `mdelay':
linuxbios_c.o(.text+0x9d3): undefined reference to `udelay'
collect2: ld returned 1 exit status
make: *** [linuxbios_c] Error 1

any suggestion? Linuxbios was checked out from the cvs yestarday.

bye bye
as


-- 

How to build a lirc receiver
http://www.manoweb.com/alesan/lirc





More information about the coreboot mailing list