> your other problem is you need to run mkelfImage to build a bootable elf > image.
okay, this is what i did with mkelfImage.
1. mkelfImage --kernel=vmlinux
generated is elfImage.
2. dd if=elfImage of=/dev/hdc
i tested it and i got "Cannot Load ELF Image" again. hmm....
oh yeah, BTW can anyone tell me where to start looking in the source to
study how "struct stream" is defined? /include/rom/read_bytes.h says it's
defined by the linker, but i don't understand how this links to
rem/ide_fill_inbuf.c (isn't it supposed to be when using IDE boot?) . i
tried to read freebios/src/arch/i386/config/ldscript.base, but admitting
that i suck at reading assembly and using a linker, some explanation on this
can be really really helpful.
the reason i'm asking this is that stream->init and other stream struct's
functions don't seem to be linked with ide_fill_inbuf.c but
rom_fill_inbuf.c. look at the following trace i logged:
---------------------serial console snip-out-------------------------
DEV Set command bus 0x00 devfn 0x98 to 0x02
done.
POST: 0x89, TSC Lo: 6, Hi: 6
POST: 0x91, TSC Lo: 137, Hi: 137
POST: 0x92, TSC Lo: 145, Hi: 145
Enable FLASH ***************************
Set F0/0x52 to 0xee
Set F0/0x5b to |= 1 << 5(0x20)
POST: 0x95, TSC Lo: 0, Hi: 0
Zeroing PCI IRQ settings...done.
Final southbridge fixup
F0/5c: 0x0000
cs5530: PCI INTA=9, INTB=10, INTC=11, INTD=15
F0/5c: 0xfba9
4d0: 0x00
4d1: 0x00
4d0: 0x00
4d1: 0x8e
F0/5b = 0x20
cs5530: Enabling Primary IDE Controller
F0/5b = 0x28
cs5530: USB is on INTA, IRQ 9
Final mainboard fixup
POST: 0xec, TSC Lo: 22, Hi: 22
POST: 0x9a, TSC Lo: 236, Hi: 236
POST: 0x96, TSC Lo: 154, Hi: 154
Wrote linuxbios table at: 00000500 - 00000670 checksum b5e1
Jumping to linuxbiosmain()...
POST: 0xed, TSC Lo: 30, Hi: 30
Welcome to elfboot, the open sourced starter.
January 2002, Eric Biederman.
Version 1.2
POST: 0xf8, TSC Lo: 1, Hi: 1
34:init_bytes() - zkernel_start:0xfff80000 zkernel_mask:0x0000ffff
*******************
Cannot Load ELF Image
POST: 0xff, TSC Lo: 22, Hi: 22
---------------------snip-out ends---------------------------------
i'm booting from IDE, and i guess this elfboot's stream->init() is supposed
to be the ones defined in ide_fill-buf.c. but the line, "
34:init_bytes() - zkernel_start:0xfff80000 zkernel_mask:0x0000ffff"
shows it's linked with functions in rom_fill_inbuf.c. like i said before,
i'm new to linuxBIOS and i might be wrong...
and why is there "Enable FLASH"? am i supposed to get this even if i use
IDE?
attached is my config file just in case you want to take a look at it.
THANKS A LOT in advance!
Q-ha Park
config.example
Description: Binary data
