ESP works now, I had the memcpy arguments switched (brown paper bag time).
I added Sun partition table handling:
opening SBus opening drive 2 ob_sd_read_blocks id 2 ffdc28d8 block=0 n=1 ob_sd_read_sectors id 2 ffdc28d8 block=0 len=1 sunparts_open '<NULL>' ob_sd_read_blocks id 2 ffdc2468 block=0 n=1 ob_sd_read_sectors id 2 ffdc2468 block=0 len=1 a: 0 + 1193664, id 83, flags 18 b: 0 + 0, id 83, flags 18 c: 0 + 0, id 83, flags 18 d: 0 + 0, id 83, flags 18 e: 0 + 0, id 83, flags 18 f: 0 + 0, id 83, flags 18 g: 0 + 0, id 83, flags 18 h: 0 + 0, id 83, flags 18 Found Sun partition table, offs 0 size 1193664 ob_sd_read_blocks id 2 ffdc2198 block=2 n=1
It would be nice to have more than one partition table model (PC and Sun) supported at a time.
If I use a kernel file as a device image, OpenBIOS loads a lot of it but crashes before it's finished:
Loading image... segment 0 addr:0x0 file:0x2780e0 mem:0x2a3828 loading... ob_sd_read_blocks id 2 0 block=0 n=5056 ob_sd_read_sectors id 2 0 block=0 len=1 --- clip --- ob_sd_read_sectors id 2 12600 block=147 len=1 ob_sd_read_sectors id 2 12800 block=148 len=1 Unhandled Exception 0x00000009 PC = 0xffd0b7e4 NPC = 0xffd0b7e8 Stopping execution
I threw in some const qualifiers to make the data segment vanish, but there are still some.
_________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/