Subject: SPARCbook and wscons - testers wanted
To: None <port-sparc@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: port-sparc
Date: 03/08/2005 11:56:09
--Signature=_Tue__8_Mar_2005_11_56_10_-0500_qOGAMcKxBNEhZgYk
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hello,

behold the (probably) first sparc32 kernels with usable wscons support :)
I did the following things:
- add wscons and acceleration support to pnozz ( characters are still drawn in software, couldn't get the chip to do proper 1bit -> 8bit conversion yet. Scrolling and rectangle filling is done by the blitter )
- added support for virtual consoles to pnozz
- added wskbd support to kbd_zs.c, works with the SPARCbook, /should/ work with others as well...
- changed the wscons_sun keymap to switch virtual consoles with Alt-Fn on the SPARCbook - no STOP key and Pause sends a different scancode.

So there are two test kernels ( see http://macallan.homeunix.org:6704/stuff/BSD/sparc/ )::
GENERIC_wscons_cg6.bz2 - supports sun4m and sun4c machines with cgsix as console - untested.
SPARCbook3GX.bz2 - SPARCbook 3GX.

The cgsix driver supports acceleration and wscons but no virtual consoles (yet).
So, please test these kernels and tell me about...
- how it works at all
- keyboard on something that's not a SPARCbook

Caveat: you need to add a line for ttyE0 to /etc/ttys and you'll probably want to deactivate the line for /dev/console. Having gettys sit on both /dev/console and /dev/ttyEn can cause odd effects. Without a getty on ttyE0 you won't be able to login on the console.

There's no support for other colour depths than 8bit so far, the cg3 emulation is still in place so running XFree86 should be possible with minimal hassle ( just a link from /dev/fb to /dev/fb0 and some fiddling with XF86Config). No wsmouse support yet (missing code in ms_zs.c) - /dev/mouse works fine though.

If you run the SPARCbook kernel you may want to do this:
- add lines for ttyE0...ttyEn to /dev/ttys
- change /etc/wscons.conf - the kernel only supports Sun terminal emulation, no vt100. Adding screens with vt100 will fail.
- add wscons=yes to /etc/rc.conf
- switch screens with Alt-Fn ;-)

Something completely different - I seem to remember that someone worked on the audio part of the SUNW,DBRI chip - obviously it didn't end up in the kernel source. Does anyone know more? 

have fun
Michael

PS: yes, the ultimate goal is to make NetBSD's support for the SPARCbook better than Solaris' ever was ;)

--Signature=_Tue__8_Mar_2005_11_56_10_-0500_qOGAMcKxBNEhZgYk
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQi3ZMMpnzkX8Yg2nAQJ8uAf8C3PtvShkW5pF937oZVkWog+JXgZl82wP
PF2Eaoi+49Cuib/NYyJuQvJHjWreDRs039vY6fpmJCuUmOhqkO8aLu0YwJxQUrKo
CyN6hRJUmIVD7dRI9TFVsLC9E+wjwLC2xLHOMyEldTFgtjj2qummNIn6O8C6v76N
TQ7KGwaPDHChhTo2wbvtEtZe29MMQvX2B8ciYS21KMQNdTEu0ELOixZbkCS5B68U
8LTRfLvO22FKLwk6n8WvQuotUfFyMAbXGrBcVMGtZ1qELZFlOTdyrR9N48mrHpj/
42/XbLP2QOFez44QBJTc9zNrPciWGPuZ40fKZhW0EC/aIkDnN1ozqQ==
=OgAp
-----END PGP SIGNATURE-----

--Signature=_Tue__8_Mar_2005_11_56_10_-0500_qOGAMcKxBNEhZgYk--