Subject: Re: Problem with Xorg and maybe wscons too?
To: Adrian Christiansen <adrian.christiansen@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 10/20/2006 14:04:51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Oct 20, 2006, at 07:52, Adrian Christiansen wrote:

> Hello
>
> I have an eMac G4 1GHz ATi-modell:
> ATI Radeon 7500 (RV200) graphiccard with 32mb ram attached.
> The screen has an horisontal sync rate at 72kHz, and a vertical on  
> 72-138Hz.
> The eMac have OpenFirmware version 3.
>
> NetBSD  3.0.1 NetBSD 3.0.1 (GENERIC) #0: Fri Jul 14 00:43:25 UTC 2006
> builds@b3.netbsd.org:/home/builds/ab/netbsd-3-0-1-RELEASE/macppc/ 
> 200607131826Z-obj/home/builds/ab/netbsd-3-0-1-RELEASE/src/sys/arch/ 
> macppc/compile/GENERIC
> macppc
>
> When I try to start wscons I get this error message:
> wsconscfg: WSDISPLAYIO_ADDSCREEN: Cannot allocate memory
> wsconscfg: WSDISPLAYIO_ADDSCREEN: Cannot allocate memory

That's harmless - ofb doesn't support virtual consoles in 3.0.1 ( it  
does in -current though )

> And when I try to startx, I get a message about bad display, attached
> the full output from startx and the Xorg.0.log. I took a good time
> looking up all the specs and details for my eMac on Apple.com, but
> maybe something else is wrong? I attached my xorg.conf as well.

Hmm, this is the problem:
Fatal server error:
xf86MapVidMem: could not mmap screen [s=80000,a=90000000] (Invalid  
argument)
And here's why:
(--) PCI:*(0:16:0) ATI Technologies Inc Radeon RV200 QW [Radeon 7500]  
rev 0, Mem @ 0x98000000/27, 0x90000000/16, I/O @ 0x0400/8, BIOS @  
0x90020000/17
The register range at 0x90000000 is only 64kB ( hence /16 as in 16 bits  
wide ) but the radeon driver tries to mmap 512kB which of course fails.
This is a bug in X.org's radeon driver, I reported it to x.org a while  
ago and it should have been fixed in 7.x
Meanwhile - why don't you just use the XFree86 4.5 that comes with  
NetBSD? It doesn't have this problem as far as I remember and the  
graphics chip is old enough to be fully supported by XFree86.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRTkPw8pnzkX8Yg2nAQLg5Af9GVyl17o48ccX02cYl7gQV+mU6uvsKSx2
VpEQJjbXr4SpWEe8kuU7Mm6jk3Ja2PdDqZI6OKjIXSkjco9GjSlxVva8ay0RtE5J
4t7ZzFReC5PWDjVIazfPcjj3lZw3gLyKLbVlwZvgm/n2VqqbHhcUE0+wmulQFOfZ
slxS6mdmhNUAImGRpEbaEjt8JSnb1nitHUXMbFkXvNZRcyQkepqPxEOOvf30H+7s
TFGVCWgq0nLdjB2sGY5kUGY5Bcu8Eb/Lz1OYKEIHRq7VzeNCERPVm1uNoVZ97Ej0
zhiuJcBc0JZi5YHy2eBKiquyv/xzlFxtXrtyyNTmRacP42sbyLerFA==
=I8b/
-----END PGP SIGNATURE-----