Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: X server through the xsrc sets on PowerBook G4 with NVidia card



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Mar 30, 2010, at 10:50 PM, Taylor R Campbell wrote:

  Date: Fri, 26 Mar 2010 17:23:32 -0400
  From: Michael <macallan%netbsd.org@localhost>

  Please check if your kernel's pci_usrreq.c is version 1.16.6.3, or
  if it's newer than 9/16/2009.

I have just tried this with a new kernel and sets from HEAD at
<ftp://nyftp.NetBSD.org/pub/NetBSD-daily/HEAD/201003290000Z/>.  I get
further this time, but launching X still fails.  Here's the tail end
of Xorg.0.log in a fresh pkg_comp chroot after I run `X':

(WW) xf86MapVidMem: could not mmap screen [s=10000,a=a0000] (Invalid argument)
  Fatal server error:
  AddScreen/ScreenInit failed for driver 0

That looks like the vgahw module trying to map the legacy VGA framebuffer - quite useless on macppc even if it was enabled. There is a hack in the kernel to allow mmap()ing the first 128kB of video memory at 0xa0000 - doesn't do any good but it shuts up that particular error, enable it with
options GENFB_FAKE_VGA_FB
in your kernel config or keep Xorg from loading vgahw which may involve some hacking in the nv driver - basically, all vgahwWhatever() calls need to be #ifdef'ed out. They're for saving and restoring VGA text mode state ( things like the actual mode used, custom fonts etc. ) - since we never use text mode on macppc these calls are a waste of time either way. I don't have any nvidia hardware myself but it may be worth your time to check the driver's options for something to disable VGA access / using vgahw.

have fun
Michael


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBS7LJkcpnzkX8Yg2nAQLraAgAizQOPlIUGwvB7Ql2iUqiodrPaxIrk/bi
WMimB9oirzpSOgHzkRBMrnC/DTljfvm45K4D24cqYmTgw7Coh+GUUv/6OCt14uUc
o2C4H13YbkGNgZi2OLLZaE07vdv8kcx2yfnZginPi2nMuWFNAES2kxhyxgOtnwW9
hHCoe8h0IoATKgD9bDsZR3YuHKgnOfu9KIW4HBQQRxi1sJBEYxy6mRPJtQrETWb3
nDzWawcNd5EtinYtbCoa4uftW3uc/MXZcU39mu9T4wCoVOhqPUVNIi0Rr6Dw1xrf
V3gmbpBkPzuHkIe3jitOqNvL3RBq6fzVz0fIHNurh0OUHF8Q6o2V9w==
=W4hD
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index