[OpenBIOS] HD boot fix
Blue Swirl
blueswir1 at hotmail.com
Sat Jun 3 22:09:27 CEST 2006
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/
More information about the OpenBIOS
mailing list