Subject: Re: X on Ultra5 running 32bit sparc 3.0
To: Amadeus Stevenson <amadeus.stevenson@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-sparc64
Date: 04/09/2006 12:52:03
--Signature_Sun__9_Apr_2006_12_52_03_-0400_nzIOJGThi=Y5PJ11
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> In reference to my previous post I have now:
>=20
> NetBSD 3.0 (GENERIC_SUN4U) #0: Mon Dec 19 04:04:11 UTC 2005
>         builds@b3.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/sparc
>         /2005121820
> 24Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/sparc/compile/
> GENERIC_SUN 4U
> total memory =3D 128 MB
> avail memory =3D 114 MB
> bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
> mainbus0 (root): SUNW,Ultra-5_10: hostid 80fd8b5b
> cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 400 MHz, version 0 FPU
> ...
> machfb0 at pci1 dev 2 function 0: ATI Technologies 3D Rage Pro (rev.
> 0x5c) machfb0: 16 MB aperture at 0xe1000000, 4 KB registers at
> 0xe2000000 memctl: 00651a77
> machfb0: 4096 KB SGRAM 98.924 MHz, maximum RAMDAC clock 230 MHz
> machfb0: initial resolution 1024x768 at 8 bpp
> wsdisplay0 at machfb0 kbdmux 1: console (default, sun emulation)

Congratulation, your Ultra has the less sucky onboard graphics chip :)

> I would like to get X up and running, but so far:
>=20
> # X
>=20
> Fatal server error:
> no screens found

That's normal. Xsun doesn't know about PCI graphics.

> # Xsun24
>=20
> Fatal server error:
> no screens found
> #

Same.

> From google it seems that a lack of /dev/fb* devices is my problem,
> although:
>=20
> # ls -al /dev/fb*
> lrwx------  1 root  wheel      3 Apr  9 17:03 /dev/fb -> fb0
> crw-rw-rw-  1 root  wheel  22, 0 Apr  9 17:03 /dev/fb0
> #

These are for UPA and SBus devices.

> I have no idea if this helps. X -configure doesn't work (not a valid
> option).

You need to run XFree86 which probably isn't built for sparc / 3.0

> Question: Can Xsun24 work on this setup?

No.

> Question: Can I switch to XFree86 or X.org? If so, which one? Can I
> just grab the source, type ./configure, make and cross my fingers or
> do lots of patches need applying?

You can grab a -cuurent snapshot from releng.netbsd.org, this will
contain XFree86 for sparc. Then you'll have the problem that the ati
drivers aren't built for sparc - only the SBus stuff is. Looks like
we'll have to change that, at least the ati driver ( and probably
other PCI stuff ) should just work, ffb may need more work.

I'm building the drivers right now, they'll appear here:
ftp://ftp.netbsd.org/pub/NetBSD/misc/macallan/sparc/X11/ati_sparc.tar.gz
download, unpack, put the driver modules into
/usr/X11R6/lib/modules/drivers and run X -configure.

have fun
Michael

--Signature_Sun__9_Apr_2006_12_52_03_-0400_nzIOJGThi=Y5PJ11
Content-Type: application/pgp-signature

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

iQEVAwUBRDk7wspnzkX8Yg2nAQKRwwgAr1AejI6ZzSt5py331LhQb3lYpqjFdH62
xNhzUoLM9IjcNN+XT4xnpaXWISiFw8pALv/89wpMmPl6BX1to0B9nxuY+C0xoKh7
kK9FNqq43w+mUdp0RUSVgGQ7+eWnuqBE1K51+jB6N5PbgugwJ4JsC9azlgpZ1vpP
VB5TqA7D/HHD0avqVJGHdGrYw2+KICZHL9M83fCemaJ7G9D1aqwUqrBphVIfxr5F
jKDV65oZdKnMAm8jQ9DKk1yM4vJT5uQtV1wm2fRemQ0xSXN30shn60wYgTwTErIa
tq/IUlNXkzbab4sGQJ7g/6cx4z79QYocsKV7oiVZWIianggWAbfs9A==
=jdpX
-----END PGP SIGNATURE-----

--Signature_Sun__9_Apr_2006_12_52_03_-0400_nzIOJGThi=Y5PJ11--