Andrew Robbins | 1 Jun 2006 11:08
Picon
Favicon

Re: Welcome to the "OpenBIOS"

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 

Blue Swirl | 2 Jun 2006 21:16
Picon
Favicon

Latest ESP patch problem

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)
 <at>  <at>  -263,7 +263,7  <at>  <at> 

     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/

Blue Swirl | 3 Jun 2006 22:09
Picon
Favicon

HD boot fix

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
 <at>  <at>  -87,6 +87,9  <at>  <at> 
         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/

Blue Swirl | 4 Jun 2006 19:43
Picon
Favicon

Graphical console for TCX/Sparc32

I implemeted a graphical console including a Sun keyboard, please have a 
look at the screenshot.

Other changes include: baud rate programming (no effect in Qemu), made some 
tables readonly, and the older patches for HD boot  & workaround to stack 
corruption.

Linux hangs if the graphical console is enabled, maybe the romvec mapping 
tables need to include the framebuffer.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Attachment (openbios.patch-20.bz2): application/octet-stream, 3763 bytes
I implemeted a graphical console including a Sun keyboard, please have a 
look at the screenshot.

Other changes include: baud rate programming (no effect in Qemu), made some 
tables readonly, and the older patches for HD boot  & workaround to stack 
corruption.

Linux hangs if the graphical console is enabled, maybe the romvec mapping 
tables need to include the framebuffer.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
(Continue reading)

Armistead, Jason | 5 Jun 2006 03:16

QEMU / OpenBIOS booting SunOS 4.1.3 / 4.1.4

Hi

We have some legacy Sparcstation IPX and ELC models that are running SunOS
4.1.3 / 4.1.4

Obviously, these machines are getting toward their use-by dates.  But the
many applications that exist on the Sparcstations are simply impossible to
port single-handed to another Unix or even re-validate with Solaris 10 (or
maybe a few versions earlier) on more modern Sparc hardware.  Some of the
original tools that they use are no longer available.  In other words, any
move is going to be painful and possibly not be completely faithful to the
existing environment.

Therefore, emulation is the approach I'd really like to pursue if it's
possible.

Has anyone got SunOS 4.x to boot under QEMU using the latest OpenBIOS
firmware instead of PROLL ?

Is anyone out there even working on this possibility. or is the focus on
Linux or one of the NetBSD / OpenBSD implementations ?

Thanks

Jason

svn | 5 Jun 2006 12:51

r38 - in openbios-devel: arch/x86 modules

Author: stepan
Date: 2006-06-05 12:51:31 +0200 (Mon, 05 Jun 2006)
New Revision: 38

Modified:
   openbios-devel/arch/x86/console.c
   openbios-devel/modules/console.c
   openbios-devel/modules/video.c
Log:
sparc32 merge 20 part 1

Modified: openbios-devel/arch/x86/console.c
===================================================================
--- openbios-devel/arch/x86/console.c	2006-05-31 20:20:10 UTC (rev 37)
+++ openbios-devel/arch/x86/console.c	2006-06-05 10:51:31 UTC (rev 38)
 <at>  <at>  -251,7 +251,7  <at>  <at> 
  *  keyboard driver
  */

-static char normal[] = {
+static const char normal[] = {
 	0x0, 0x1b, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-',
 	'=', '\b', '\t', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o',
 	'p', '[', ']', 0xa, 0x0, 'a', 's', 'd', 'f', 'g', 'h', 'j',
 <at>  <at>  -261,7 +261,7  <at>  <at> 
 	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, '0', 0x7f
 };

-static char shifted[] = {
+static const char shifted[] = {
(Continue reading)

svn | 5 Jun 2006 12:57

r39 - openbios-devel/arch/sparc32

Author: stepan
Date: 2006-06-05 12:57:48 +0200 (Mon, 05 Jun 2006)
New Revision: 39

Modified:
   openbios-devel/arch/sparc32/aoutload.c
Log:
fix loading silo - is this number correct?

Modified: openbios-devel/arch/sparc32/aoutload.c
===================================================================
--- openbios-devel/arch/sparc32/aoutload.c	2006-06-05 10:51:31 UTC (rev 38)
+++ openbios-devel/arch/sparc32/aoutload.c	2006-06-05 10:57:48 UTC (rev 39)
 <at>  <at>  -87,6 +87,9  <at>  <at> 
         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))

svn | 5 Jun 2006 14:35

r40 - in openbios-devel: drivers include/sparc32

Author: stepan
Date: 2006-06-05 14:35:11 +0200 (Mon, 05 Jun 2006)
New Revision: 40

Modified:
   openbios-devel/drivers/esp.c
   openbios-devel/drivers/iommu.c
   openbios-devel/include/sparc32/io.h
Log:
-20

Modified: openbios-devel/drivers/esp.c
===================================================================
--- openbios-devel/drivers/esp.c	2006-06-05 10:57:48 UTC (rev 39)
+++ openbios-devel/drivers/esp.c	2006-06-05 12:35:11 UTC (rev 40)
 <at>  <at>  -263,7 +263,7  <at>  <at> 

     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

Modified: openbios-devel/drivers/iommu.c
===================================================================
--- openbios-devel/drivers/iommu.c	2006-06-05 10:57:48 UTC (rev 39)
+++ openbios-devel/drivers/iommu.c	2006-06-05 12:35:11 UTC (rev 40)
 <at>  <at>  -195,15 +195,10  <at>  <at> 
(Continue reading)

svn | 5 Jun 2006 14:37

r41 - in openbios-devel: arch/sparc32 config/examples

Author: stepan
Date: 2006-06-05 14:37:25 +0200 (Mon, 05 Jun 2006)
New Revision: 41

Modified:
   openbios-devel/arch/sparc32/console.c
   openbios-devel/arch/sparc32/openbios.c
   openbios-devel/config/examples/cross-sparc32_config.xml
   openbios-devel/config/examples/sparc32_config.xml
Log:
sparc32 -20 merge remainder

Modified: openbios-devel/arch/sparc32/console.c
===================================================================
--- openbios-devel/arch/sparc32/console.c	2006-06-05 12:35:11 UTC (rev 40)
+++ openbios-devel/arch/sparc32/console.c	2006-06-05 12:37:25 UTC (rev 41)
 <at>  <at>  -17,10 +17,30  <at>  <at> 

 #ifdef CONFIG_DEBUG_CONSOLE_SERIAL

+#define KBD_BASE    0x71000004
 #define SERIAL_BASE 0x71100004
 #define CTRL(port) (SERIAL_BASE + (port) * 2 + 0)
 #define DATA(port) (SERIAL_BASE + (port) * 2 + 2)

+/* Conversion routines to/from brg time constants from/to bits
+ * per second.
+ */
+#define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2))
+#define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
(Continue reading)

Stefan Reinauer | 5 Jun 2006 15:28
Picon

Re: QEMU / OpenBIOS booting SunOS 4.1.3 / 4.1.4

Dear Jason,

> Therefore, emulation is the approach I'd really like to pursue if it's
> possible.
> 
> Has anyone got SunOS 4.x to boot under QEMU using the latest OpenBIOS
> firmware instead of PROLL ?

Unfortunately no. I tried NetBSD 3.0 and Solaris 8 so far, both did not
work (yet). 

> Is anyone out there even working on this possibility. or is the focus on
> Linux or one of the NetBSD / OpenBSD implementations ?

We're definitely looking into getting operating systems besides Linux to
work on (qemu/)OpenBIOS/Sparc32, but we can also use help here.

I got NetBSD booting the kernel, but it fails reading the root
filesystem:
Welcome to OpenBIOS v1.0RC1 built on Jun 5 2006 15:07
  Type 'help' for detailed information

[sparc] Kernel already loaded
OBP version 3, revision 2.25 (plugin rev 2)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.0 (GENERIC) #0: Mon Dec 19 04:01:27 UTC 2005
(Continue reading)


Gmane