Puzzled. Help Please !

Balint Cristian rezso at rdsor.ro
Mon Feb 23 06:18:00 CET 2004

	I am a little puzzled in steps of making/flashing/testing,
I dont understand something at few points:

First Q:

	So my config file, (i atempt to boot on 440bx plus Stefan's latest bk OpenBIOS)
so i put it as elf payload, Is it correct ?

target l440bx
mainboard intel/l440bx

# Enable Serial Console for debugging
# It will come up at 115200,8n1

# Enable MicroCode update and L2 Cache init for PII and PIII

# Use the internal VGA frame buffer device
option USE_CACHE_RAM=0
option USE_ELF_BOOT=1

makedefine  PHLASH_BASE_NAME=laci


payload         /home/rezso/freebios/builtin.image

I used todays sourceforge CVS pool.

Than I obtain the following stuff after typed "make":

-rw-r--r--  1 root root   3506 Feb 23 12:59 linuxbios.map
-rwxr-xr-x  1 root root  35852 Feb 23 12:59 linuxbios_payload
-rwxr-xr-x  1 root root  35852 Feb 23 12:59 linuxbios_payload.bin
-rw-r--r--  1 root root  65536 Feb 23 12:59 linuxbios.rom
-rw-r--r--  1 root root 524288 Feb 23 12:53 romimage

I guess romimage is the one i need but the big dilema:
[root at rezso l440bx]# file romimage
romimage: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped

It is ELF ...... will it boot from flash ?

Do i need to do some special conversion over it ?
It is flashable with any kind AWARD MS-DOS tool ?

I readed that i need to run make phlash but always encouter errors:
[root at rezso l440bx]# make phlash
gcc -x assembler-with-cpp -DASSEMBLY -E ... crt0.S > crt0.s
gcc ... -o crt0.o crt0.s
/home/rezso/freebios/src/northbridge/intel/440bx/raminit.inc: Assembler messages:
/home/rezso/freebios/src/northbridge/intel/440bx/raminit.inc:478: Warning: using `%al' instead of `%eax' due to `b' suffix
crt0.S:156: Warning: indirect jmp without `*'
gcc ... -o version.o /home/rezso/freebios/src/lib/version.c
rm -f linuxbios.a
ar cr linuxbios.a  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 elfboot.o do_inflate.o delay.o compute_ip_checksum.o version.o keyboard.o mc146818rtc.o isa-dma.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 northbridge.o southbridge.o superio.o mainboard.o microcode.o mtrr.o l2_cache.o cpuid.o delay_tsc.o
gcc -nostdlib -r -o linuxbios_c.o c_start.o  rom_fill_inbuf.o linuxbios.a /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/libgcc.a
gcc -nostdlib -nostartfiles -static -o linuxbios_c -T /home/rezso/freebios/src/config/linuxbios_c.ld linuxbios_c.o
nm -n linuxbios_c | sort > linuxbios_c.map
objcopy -O binary linuxbios_c linuxbios_payload.bin
cp linuxbios_payload.bin linuxbios_payload
gcc -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o
nm -n linuxbios | sort > linuxbios.map
objcopy -O binary linuxbios linuxbios.strip
export size=`ls -l linuxbios.strip | (read p c u g size r ; echo $size)` ; \
echo $size ; \
dd if=linuxbios.strip of=linuxbios.rom bs=1 seek=`expr 65536 - $size`
65536+0 records in
65536+0 records out
make: *** No rule to make target `/home/rezso/freebios/../intel_flash_disk/laci.bi1', needed by `laci.bi1.header'.  Stop.


Thanks in advance,


More information about the coreboot mailing list