Hi,
I added:
option USE_DOC_MIL
to the config file and that worked.
I haven't looked through the source that much, but I think this code
is used to retrieve the kernel image? (from doc, rom, tftp, etc)
I guess there isn't any default defined. Which is ok, but should probably
be mentioned somewhere... (none of the config files or the walkthrough
mentions this).
-Jake
On Wed, 22 Aug 2001, Nikolai Vladychevski wrote:
> Hi,
>
> I just downloaded the lastest source today from the sourceforge cvs but I
> couldnt compile. I used the config file from the examples, for m810 PCCHIPS
> motherboard:
>
> # Sample config file for PCCHIPS M810LMR with DoC Millennium (as root)
> arch i386
> # This will make a target directory of ./pcchips
> target /home/niko/freebios/pcchips
>
> # PCCHIPS M810LMR mainboard
> mainboard pcchips/m810lmr
>
> # Enable Serial Console for debugging
> option SERIAL_CONSOLE
>
> # Enable MicroCode update and L2 Cache init for PII and PIII
> #option UPDATE_MICROCODE
> #option CONFIGURE_L2_CACHE
>
> # Use the internal VGA frame buffer device
> option HAVE_FRAMEBUFFER
>
> # Path to your kernel (vmlinux)
> linux /usr/src/linux
>
> # Kernel command line parameters
> commandline root=/dev/hda1 console=ttyS0,115200 console=tty0 single
>
>
> (the only thing I modified from the example is "target" parameter).
> Well, when I did make I got this:
>
> /home/niko/freebios/src/cpu/p6/l2_cache.c:33: warning: `rcsid' defined but
> not used
> gcc -c -I/home/niko/freebios/src/include
> -I/home/niko/freebios/src/arch/i386/include
> -I/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
> -DCMD_LINE='"root=/dev/hda1 console=ttyS0,115200 console=tty0 single"'
> -DCPU_FIXUP -DENABLE_FIXED_AND_VARIABLE_MTRRS -DFINAL_MAINBOARD_FIXUP
> -DHAVE_FRAMEBUFFER -DHAVE_PIRQ_TABLE -DHEAP_SIZE='0x40000' -DINTEL_PPRO_MTRR
> -DMAX_CPUS='1' -DMEMORY_HOLE='1' -DROM_IMAGE_SIZE='65536' -DSERIAL_CONSOLE
> -DSIS730 -DSMA_SIZE='0xA0' -DSTACK_SIZE='0x10000'
> -DUSE_NEW_SUPERIO_INTERFACE -D_RAMBASE='0x4000' -D_ROMBASE='0x80000' -Di586
> -Di686 -Dk7 -O2 -nostdinc -nostdlib
> -fno-builtin -Wall -o cpufixup.o /home/niko/freebios/src/cpu/k7/cpufixup.c
> rm -f linuxbios.a
> ar cr linuxbios.a crt0.o boot.o i386_subr.o params.o hardwaremain.o
> pirq_routing.o linuxbiosmain.o linuxpci.o newpci.o printk.o serial_subr.o
> subr.o vsprintf.o memset.o memcpy.o memcmp.o malloc.o elfboot.o do_inflate.o
> delay.o uniform_boot.o fill_inbuf.o rom_fill_inbuf.o docmil_fill_inbuf.o
> tsunami_tigbus_rom_fill_inbuf.o serial_fill_inbuf.o tftp_fill_inbuf.o boot.o
> i386_subr.o params.o hardwaremain.o pirq_routing.o linuxbiosmain.o
> linuxpci.o newpci.o printk.o serial_subr.o subr.o vsprintf.o memset.o
> memcpy.o memcmp.o malloc.o elfboot.o do_inflate.o delay.o uniform_boot.o
> fill_inbuf.o
> rom_fill_inbuf.o docmil_fill_inbuf.o tsunami_tigbus_rom_fill_inbuf.o
> serial_fill_inbuf.o tftp_fill_inbuf.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
> gcc -nostdlib -r -o linuxbios.o crt0.o linuxbios.a
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a
> echo "INCLUDE ldoptions" > ldscript.ld ; for file in
> /home/niko/freebios/src/arch/i386/config/ldscript.base
> /home/niko/freebios/src/cpu/i386/entry16.lds ; do echo "INCLUDE $file" >>
> ldscript.ld ; done
> gcc -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld linuxbios.o
> linuxbios.o: In function `inflate_codes':
> linuxbios.o(.text+0x276d): undefined reference to `fill_inbuf'
> linuxbios.o(.text+0x27dd): undefined reference to `fill_inbuf'
> linuxbios.o(.text+0x2889): undefined reference to `fill_inbuf'
> linuxbios.o(.text+0x28e9): undefined reference to `fill_inbuf'
> linuxbios.o(.text+0x2955): undefined reference to `fill_inbuf'
> linuxbios.o(.text+0x29b9): more undefined references to `fill_inbuf' follow
> collect2: ld returned 1 exit status
> make: *** [linuxbios] Error 1
> [root@qis pcchips]#
>
> where could be the problem?
> I made a lot of tests , made myself a config but had no success, I did many
> tries but nothing ..... different compile errors appears..... so this is
> when I tried the example and the example fails also..... I am using unstable
> release?
>
> I will keep trying but any ideas to get it working will be appriciated.
>
> Nikolai
>