Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lost X windows, problem loading sunffb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
chiguire
n00b
n00b


Joined: 20 Jan 2003
Posts: 29

PostPosted: Tue Mar 01, 2005 11:56 am    Post subject: lost X windows, problem loading sunffb Reply with quote

Hi all,

I recently did emerge -sync && emerge -D world on my u2 + creator3d

Code:

fb0: Creator 3D at 000001fc00000000 type 83 DAC 10


Among the packages compiled were xorg-x11-6.8.2 and kernel 2.4.29. I also plugged in a new monitor, a GDM-5410, but when I rebooted ... no X. On examining the Xorg.0.log, the first thing that seemed to be amiss, or maybe not, but is worth mentioning anyway, was that the Creator card was being recognised as

Code:

...
(--) SBUS:(0xf0066974) Sun Elite3D at /SUNW,ffb@1e,0
...


and the lack of X seems to originate from:

Code:

...
(II) LoadModule: "sunffb"
(II) Loading /usr/lib/modules/drivers/sunffb_drv.so
dlopen: /usr/lib/modules/drivers/sunffb_drv.so: undefined symbol: cfbCopyPlane8to1
(EE) Failed to load /usr/lib/modules/drivers/sunffb_drv.so
(II) UnloadModule: "sunffb"
(EE) Failed to load module "sunffb" (loader failed, 7)
...


resulting in no X:

Code:

Fatal server error:
no screens found


The strange thing is xorg-x11 has been updated once or twice and that the /etc/X11/xorg.conf has not been touched for a long, long time. Maybe I'm overlooking something which now should be in xorg.conf, so to quote:

Code:

Section "Module"
        Load            "dbe"

        SubSection  "extmod"
                Option "omit xfree86-dga"
        EndSubSection

        Load            "type1"
        Load            "freetype"
#       Load            "speedo"
        Load            "glx"
        Load            "dri"
EndSection

Section "Files"
#       RgbPath   "/usr/X11R6/lib/X11/rgb"
        RgbPath   "/usr/lib/X11/rgb"
        FontPath "unix/:-1"
        #ModulePath "/usr/X11R6/lib/modules"
        #ModulePath "/usr/lib/modules"
EndSection

Section "ServerFlags"
        #Option "NoTrapSignals"
        #Option "DontZap"
        #Option "Dont Zoom"
        #Option "DisableVidModeExtension"
        #Option "AllowNonLocalXvidtune"
        #Option "DisableModInDev"
        #Option "AllowNonLocalModInDev"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
#       Driver      "keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "sun"
        Option      "XkbModel" "type5"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "Protocol" "MouseSystems"
        Option          "Device" "/dev/sunmouse"
EndSection

Section "Monitor"
        Identifier      "GDM-5410"
        Horizsync       30-121
        VertRefresh     48-160
EndSection

Section "Device"
        Identifier      "Card0"
        Driver          "sunffb"
        BusID           "SBUS:fb0"
        VendorName      "Sun Microsystems"
        BoardName       "Creator3D"     
EndSection

# 21" Sun Sony monitor GDM5410T :: X7136A :: 365-1399
Section "Screen"
        Identifier      "Screen2"
        Device          "Card0"
        Monitor         "GDM-5410"
        DefaultDepth    24

        Subsection "Display"
                Depth           8
                Modes           "1600x1200" "1280x1024"
                ViewPort        0 0
        EndSubsection

        Subsection "Display"
                Depth           16
                Modes           "1600x1200" "1280x1024"
                ViewPort        0 0
        EndSubsection

        Subsection "Display"
                Depth           24
                Modes           "1600x1200" "1280x1024"
                ViewPort        0 0
        EndSubsection
EndSection

Section "ServerLayout"
        Identifier      "Layout0"
        Screen          "Screen2"
        InputDevice     "Mouse0" "CorePointer"
        InputDevice     "Keyboard0" "CoreKeyboard"
        Option          "HandleSpecialKeys" "Always"
EndSection

Section "DRI"
        Mode 0666
EndSection


If any more information is required, please ask. Thanks in advance to anyone who can help shed any light on this problem. By the way, X looks really nice and sharp on this screen :D
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Tue Mar 01, 2005 1:17 pm    Post subject: Reply with quote

The "Elite" line you display is misleading but normal. One of these days I'll track it down and change it to "Creator/Elite" or something. It is surprisingly difficult to figure out which one you have.

Your problem stems from use of dlloader for 6.8.2. It is irritating, but the fix is easy enough. In your Section "Module", add
Code:

Load  "cfb"
Load  "cfb32"


You can see details at http://forums.gentoo.org/viewtopic-p-1148216.html#1148216 or review the sample xorg.conf files at http://dev.gentoo.org/~fmccor/docs/xorg/xorg.conf/xorg.conf.html
and corresponding notes at http://dev.gentoo.org/~fmccor/docs/xorg/xorg-r4.html (in the context of this response, there is no difference between 6.8.0-r4 and 6.8.2).

Hope this helps,
Back to top
View user's profile Send private message
chiguire
n00b
n00b


Joined: 20 Jan 2003
Posts: 29

PostPosted: Tue Mar 01, 2005 8:08 pm    Post subject: Reply with quote

Thanks for such a fast reply Ferris. I added the modules you suggested and X comes up, albeit somewhat more slowly than before. The log reveals:

Code:

...
(II) LoadModule: "cfb"
(II) Loading /usr/lib/modules/libcfb.so
(II) Module cfb: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Loading /usr/lib/modules/libmfb.so
(II) Module mfb: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) LoadModule: "cfb32"
(II) Loading /usr/lib/modules/libcfb32.so
(II) Module cfb32: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so


Hmm, are cfb and mfb loading a couple of times. mfb as a module and submodule?

Code:

...

(II) LoadModule: "sunffb"
(II) Loading /usr/lib/modules/drivers/sunffb_drv.so
(II) Module sunffb: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 0.7

...

(II) Module kbd: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.4
(II) SUNFFB: driver for Creator, Creator 3D and Elite 3D
(II) resource ranges after probing:
(==) SUNFFB(0): RGB weight 888
(==) SUNFFB(0): Default visual is TrueColor
(==) SUNFFB(0): Using gamma correction (1.0, 1.0, 1.0)
(==) SUNFFB(0): Using HW cursor
(II) Loading sub module "xf8_32wid"
(II) LoadModule: "xf8_32wid"
(II) Loading /usr/lib/modules/libxf8_32wid.so
(II) Module xf8_32wid: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2


... and again?

Code:

(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so
(II) Loading sub module "cfb16"
(II) LoadModule: "cfb16"
(II) Loading /usr/lib/modules/libcfb16.so
(II) Module cfb16: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so
(II) Loading sub module "cfb24"
(II) LoadModule: "cfb24"
(II) Loading /usr/lib/modules/libcfb24.so
(II) Module cfb24: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so
(II) Loading sub module "cfb32"
(II) LoadModule: "cfb32"
(II) Reloading /usr/lib/modules/libcfb32.so
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so
(II) Loading sub module "cfb32"
(II) LoadModule: "cfb32"
(II) Reloading /usr/lib/modules/libcfb32.so
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so
(II) Loading sub module "cfb"
(II) LoadModule: "cfb"
(II) Reloading /usr/lib/modules/libcfb.so
(II) Loading sub module "mfb"
(II) LoadModule: "mfb"
(II) Reloading /usr/lib/modules/libmfb.so

...

(==) SUNFFB(0): DPI set to (75, 75)
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
(II) /dev/fb0: Detected FFB2+/horizontal, Z-buffer, Double-buffered.
(II) /dev/fb0: BT498 (PAC2) ramdac detected
(II) /dev/fb0: Detected Creator/Creator3D
...


the card is registering OK now. X is back. Thanks!!
Back to top
View user's profile Send private message
chiguire
n00b
n00b


Joined: 20 Jan 2003
Posts: 29

PostPosted: Tue Mar 01, 2005 8:12 pm    Post subject: Reply with quote

Here's another fast reply: We´ve (no pun intended ;)) just witnessed a rat and a snake having a productive dialogue about something other than food. :!: :!: yes, minor miracles do happen sometimes!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum