Subject: Re: No consol cursor
To: John Gould <johng@powinv.co.uk>
From: Michael Lorenz <macallan@netbsd.org>
List: port-sparc
Date: 03/23/2006 10:06:02
--Signature_Thu__23_Mar_2006_10_06_02_-0500_XTCYmY754gsF01fY
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> Hello there I have installed NetBSD 3.0 sparc on a SparcStation 20 and
> have updated to stable, built and installed a kernel. However I have
> the  following problem even with the GENERIC kernel, there is no
> consol cursor  so it's very difficult to edit files at the console.
> The graphics  card is a TGX, has any one come across this problem?

Hmm, I thought I fixed that a while ago.

> I have also done a  CVS update of the source but have yet to build and
> install user land. Would this help?

No, this is a problem in the cgsix kernel driver. Userland has nothing
to do with it.

So, did you set the RASTECONSOLE option in your kernel?
If you did please try the following:
find this piece of code in src/sys/dev/sun/cgsix.c / cg6attach():
			cg6_console_screen.sc =3D sc;
			sc->sc_fb.fb_rinfo.ri_hw =3D &cg6_console_screen;
			sc->sc_fb.fb_rinfo.ri_ops.copyrows =3D cg6_ras_copyrows;
			sc->sc_fb.fb_rinfo.ri_ops.copycols =3D cg6_ras_copycols;
			sc->sc_fb.fb_rinfo.ri_ops.erasecols =3D cg6_ras_erasecols;
			sc->sc_fb.fb_rinfo.ri_ops.eraserows =3D cg6_ras_eraserows;
			sc->sc_fb.fb_rinfo.ri_do_cursor =3D cg6_ras_do_cursor;
			cg6_ras_init(sc);
... comment out the cg6_ras_do_cursor; line and rebuild your kernel.
This will disable using the blitter to draw the cursor ( the console
driver will use inverted character attributes instead ). Please tell me
if this fixes the problem.
It shouldn't happen in -current but checking can't hurt.

have fun
Michael=20

--Signature_Thu__23_Mar_2006_10_06_02_-0500_XTCYmY754gsF01fY
Content-Type: application/pgp-signature

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

iQEVAwUBRCK5WspnzkX8Yg2nAQKJlQgAs9vY2cxv958IldjLy2AACJ6cik8oOod7
cTfzrPB9vrxz/O1k9V5vnIBeMNuf2s9USTreCy8N3inm+KMMX3fTUmcK84+Myzoy
/WgLkUX0FXyMQZAh236xgv7whpqXwYdYDgEqix5sXcYXZKzn+lhccEsbldIFqHUT
pNPYYtrc6Vxk8Pfd3F1XBRrs2Vmc4jGWc0LY153Hxz2aElXjm5e88x1Y8HpXdkpx
+Z5Src/H596+GRgm/CQiK2Urr1l+7NqWz52AQwWbqZnCxTTI0dbVbsAdHH4P28VP
Ednvlbfp5VduAxxSQ3xFrwV25ARS1I7p8dD6bqjk/KBqo8iQlDqKtA==
=HyVd
-----END PGP SIGNATURE-----

--Signature_Thu__23_Mar_2006_10_06_02_-0500_XTCYmY754gsF01fY--