SILO a.out header gives a bit too short value. The following allows booting
directly from HD succeed, maybe it helps other OSes.
I installed Debian 3.1r1 from CD image, with this patch I can boot from the
HD.
diff -ru openbios-ref-19/arch/sparc32/aoutload.c
openbios-patch-19/arch/sparc32/aoutload.c
--- openbios-ref-19/arch/sparc32/aoutload.c 2006-05-26
11:50:28.000000000 +0000
+++ openbios-patch-19/arch/sparc32/aoutload.c 2006-06-03
11:11:13.000000000 +0000
@@ -87,6 +87,9 @@
size = addr_fixup(ehdr.a_text) + addr_fixup(ehdr.a_data);
}
+ if (size < 7680)
+ size = 7680;
+
start = 0x4000; // N_TXTADDR(ehdr);
if (!check_mem_ranges(info, start, size))
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Using the latest version of esp.c, I get exception at boot. But if I disable
the POP(), boot succeeds. I understand that my-unit should push two ints, so
there must be a stack messing error (maybe extra POP?) later.
Index: drivers/esp.c
===================================================================
--- drivers/esp.c (revision 37)
+++ drivers/esp.c (working copy)
@@ -263,7 +263,7 @@
fword("my-unit");
id = POP();
- POP(); // unit id is 2 ints but we only need one.
+ //POP(); // unit id is 2 ints but we only need one.
*sd = &global_esp->sd[id];
#ifdef CONFIG_DEBUG_ESP
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hello, I'm new to openbios.
I love playing around in openfirmware, and I'm sad
that apple is discontinuing its usage by switching to
EFI, so I would love to help out in any way possible.
I'm starting to feel a bit of Nastalgia already for
the soon-to-be-legacy platform of openfirmware +
powerpc + macosx so anything I can do to keep the
system alive I will :)
Andrew Robbins
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com