Port-macppc archive

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

Re: Xorg and 5.0_BETA on Powerbook G4



Michael wrote:

> On Jan 22, 2009, at 12:49 PM, Tino Reinhardt wrote:
>
> > with 5.0_BETA GENERIC-kernel on a Powerbook G4 and
> > nVidia NV34M (GeForce FX Go5200) Xorg dies with:
> >
> >  xf86MapVidMem: could not mmap screen [s=10000,a=a0000] (Invalid  
> >  argument)
> >
> > dmesg:
> >
> >  genfb0 at pci0 dev 16 function 0: NVIDIA product 0x0329
> >  genfb0: framebuffer at 0xa0004000, size 1024x768, depth 8, stride 1024
> >  wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
> >  drm at genfb0 not configured
> ...
> > ofb*     at pci? dev ? function ?
> >  options  OFB_ENABLE_CACHE
> >  options  OFB_FAKE_VGA_FB
> 
> Please try
> options WSFB_FAKE_VGA_FB

Xorg and genfb are happily working together now. Thanks!

As a side note: I've just noticed that Xorg works with ofb
even if option OFB_FAKE_VGA_FB is disabled:

# strings /netbsd-ofb | grep -i ^_CFG_\.\*\OFB
_CFG_ofb*\011at pci? dev ? function ?\011# Generic Open Firmware Framebuffer
_CFG_# OFB_ENABLE_CACHE speeds up the console on many machines, but should
_CFG_options \011OFB_ENABLE_CACHE\011# Speed up console in ofb
_CFG_#options \011OFB_FAKE_VGA_FB\011\011# Allow X to mmap VGA regs

> > Aha! Virtual consoles do work indeed. Thanks!

> That leaves the question why wsdisplay stuck to the ROM font.
> Do you have any other FONT_* options in your kernel config file?

No -- I'm testing with a slightly modified GENERIC-config:

--- GENERIC     2008-10-07 12:43:32.000000000 +0000
+++ TEST_OFB    2009-01-23 13:48:03.000000000 +0000
@@ -272,12 +272,12 @@
 trm*   at pci? dev ? function ?        # Tekram DC-395U/UW/F, DC-315/U SCSI

 # Display devices
-# ofb* at pci? dev ? function ?        # Generic Open Firmware Framebuffer
+ofb*   at pci? dev ? function ?        # Generic Open Firmware Framebuffer
 # OFB_ENABLE_CACHE speeds up the console on many machines, but should
 # not be enabled on some older machines, such as the rev. A-D iMacs or any
 # O'Hare based machine that uses external cache like the PowerBook 3400c
-#options       OFB_ENABLE_CACHE        # Speed up console in ofb
-#options       OFB_FAKE_VGA_FB         # Allow X to mmap VGA regs
+options        OFB_ENABLE_CACHE        # Speed up console in ofb
+options        OFB_FAKE_VGA_FB         # Allow X to mmap VGA regs
 #
 # ofb is considered obsolete and machine-independent genfb should be used
 # instead.
@@ -290,7 +290,7 @@

 voodoofb*      at pci? function ?      # 3Dfx Voodoo3
 r128fb*                at pci? function ?      # ATI Rage 128
-genfb*         at pci? function ?
+#genfb*                at pci? function ?

 # make sure the console display is always wsdisplay0
 wsdisplay0     at wsemuldisplaydev? console 1


Home | Main Index | Thread Index | Old Index