Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running Xserver over sparc ultra 60
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
flaifel
n00b
n00b


Joined: 04 May 2005
Posts: 7

PostPosted: Wed May 04, 2005 10:38 am    Post subject: Running Xserver over sparc ultra 60 Reply with quote

Dears,

Finally i was able to install Gentoo-2.4.30 on sparc64 ultra 60 machine.
I referred to the provided document "http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml" for this and it was really agood help. i did just till step 12 in Installing Gentoo [thus this is a basic installation for Gentoo]

Now .... :(

I want now to configure and run the Xserver.
I referred to the the document "http://www.gentoo.org/doc/en/xorg-config.xml"

i did :
# emerge xorg-x11
# env-update
# source /etc/profile

and all went ok

I tried the automatic generation for the /etc/X11/xorg.conf file using "Xorg -configure" and didnt work
then i tried the semi-automatic generation using xorgconfig and xorgcfg and also didnt work. most probably because i dont know enough information about the machine and i dont know how to extract these info, like mouse, keyboard, monitor, and video card.

can anyone help me in this please.

appreciate your help,

flaifel
Back to top
View user's profile Send private message
jbwillia
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 108
Location: TN, USA

PostPosted: Wed May 04, 2005 6:25 pm    Post subject: Reply with quote

I have an Ultra 60 that I used to run gentoo on (I actually need to install it again - it's currently dead and unplugged). Anyways, I'm posting my xorg.conf file from that time; keep in mind that mine was a dual head system so there are two video cards (creator3d) and two monitors. You'll also notice the server layout is setup to take advantage of xinerama; you can easily change that and take out the xinerama module to get it up and going single headed.

Code:
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)

Section "Files"
        FontPath        "unix/localhost:-1"
    FontPath    "/usr/share/fonts/TTF"
    FontPath    "/usr/share/fonts/freefont"
    FontPath    "/usr/share/fonts/corefonts"
    FontPath    "/usr/share/fonts/75dpi"
    FontPath    "/usr/share/fonts/100dpi"
    FontPath    "/usr/share/fonts/misc"
    FontPath    "/usr/share/fonts/Type1"
    FontPath    "/usr/share/fonts/Speedo"
    FontPath    "/usr/share/fonts/CID"
    FontPath    "/usr/share/fonts/util"
    FontPath    "/usr/share/fonts/local"
    FontPath    "/usr/share/fonts/cyrillic"
    FontPath    "/usr/share/fonts/ukr"
        RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

Section "ServerFlags"
    Option      "DefaultServerLayout"   "ServerLayout0"
    Option      "BlankTime"             "30"
    Option      "StandbyTime"           "40"
    Option      "SuspendTime"           "50"
    Option      "OffTime"               "60"
    Option      "Pixmap"                "32"
    Option      "Xinerama"              "true"
EndSection

Section "Module"
        Load    "dbe"           # double buffering
        Load    "GLcore"        # openGL support
        Load    "dri"           # direct rendering infrastructure
        Load    "glx"           # openGL X interface
        Load    "extmod"        # misc required extensions
        Load    "record"        # X event recorder
# the following two are only necessary if not running xfs
    Load        "freetype"      # freetype font handler
    Load        "type1"         # adobe type 1 font handler
EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "kbd"
        Option          "XkbModel"      "type5"

        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "Protocol"              "ImPS/2"
        Option          "Device"                "/dev/input/mice"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "Device"
        Identifier      "Card0"
        Driver          "sunffb"
        BusID           "SBUS:fb0"
        VendorName      "Sun Microsystems"
        BoardName       "Sun|FFB2+ Vertical Creator 3d (ffb)"
EndSection

Section "Device"
        Identifier      "Card1"
        Driver          "sunffb"
        BusID           "SBUS:fb1"
        VendorName      "Sun Microsystems"
        BoardName       "Sun|FFB2+ Vertical Creator 3d (ffb)"
EndSection

Section "Monitor"
        Identifier      "Monitor0"
        VendorName      "Dell Computer"
        ModelName       "P990"
        HorizSync       30-96
        VertRefresh     48-120
    DisplaySize 368 273
        Option          "DPMS"          "on"
EndSection

Section "Monitor"
        Identifier      "Monitor1"
        VendorName      "Sun Microsystems"
        ModelName       "GDM-5410 (Sony)"
        HorizSync       30-121
        VertRefresh     48-160
    DisplaySize 400 300
        Option          "DPMS"          "on"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Card0"
        Monitor         "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Depth       24
                Modes           "1280x1024" "1600x1200"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "Screen1"
        Device          "Card1"
        Monitor         "Monitor1"
        DefaultDepth    24
        SubSection "Display"
                Depth       24
                Modes           "1280x1024" "1600x1200"
        EndSubSection
EndSection

Section "DRI"
        Group   "video"
        Mode    0666
EndSection

Section "ServerLayout"
        Identifier      "ServerLayout0"
        Screen          "Screen0"
        Screen          "Screen1" RightOf "Screen0"
        InputDevice     "Mouse0" "CorePointer"
        InputDevice     "Keyboard0" "CoreKeyboard"
        Option          "HandleSpecialKeys" "Always"
EndSection

_________________
Code:
#!/bin/bash
for everyexe in $(find /home/you -name "*.exe" | egrep -i ".*exe$")
do
    kill $(pgrep you)
done
Back to top
View user's profile Send private message
flaifel
n00b
n00b


Joined: 04 May 2005
Posts: 7

PostPosted: Thu May 05, 2005 10:02 am    Post subject: Reply with quote

Thanks for your answer jbwillia,
sorry for sending this thread more that one time.

I customised the xorg.conf file you sent as i believe is for my system but still im having a problem in loading the card module driver.

here is the xorg.conf as i customised it:

Code:

# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)

Section "Files"
    FontPath    "unix/localhost:-1"
    FontPath    "/usr/share/fonts/TTF"
#    FontPath    "/usr/share/fonts/freefont"
#    FontPath    "/usr/share/fonts/corefonts"
    FontPath    "/usr/share/fonts/75dpi"
    FontPath    "/usr/share/fonts/100dpi"
    FontPath    "/usr/share/fonts/misc"
    FontPath    "/usr/share/fonts/Type1"
#    FontPath    "/usr/share/fonts/Speedo"
#    FontPath    "/usr/share/fonts/CID"
    FontPath    "/usr/share/fonts/util"
    FontPath    "/usr/share/fonts/local"
    FontPath    "/usr/share/fonts/cyrillic"
    FontPath    "/usr/share/fonts/ukr"
        RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

Section "ServerFlags"
    Option      "DefaultServerLayout"   "ServerLayout0"
    Option      "BlankTime"             "30"
    Option      "StandbyTime"           "40"
    Option      "SuspendTime"           "50"
    Option      "OffTime"               "60"
    Option      "Pixmap"                "32"
#    Option      "Xinerama"              "true"
EndSection

#Section "Module"
#        Load    "dbe"           # double buffering
#        Load    "GLcore"        # openGL support
#        Load    "dri"           # direct rendering infrastructure
#        Load    "glx"           # openGL X interface
#        Load    "extmod"        # misc required extensions
#        Load    "record"        # X event recorder
# the following two are only necessary if not running xfs
#    Load        "freetype"      # freetype font handler
#    Load        "type1"         # adobe type 1 font handler
#EndSection

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "kbd"
        Option          "XkbModel"      "type5"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "Protocol"              "ImPS/2"
        Option          "Device"                "/dev/input/mice"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "Device"
        Identifier      "Card0"
        Driver          "sunffb"
        BusID           "SBUS:fb0"
        VendorName      "Sun Microsystems"
        BoardName       "Sun|FFB2+ Vertical Creator 3d (ffb)"
EndSection

Section "Monitor"
        Identifier      "Monitor0"
        VendorName      "Sun Microsystems"
        ModelName       "GDM-5410 (Sony)"
        HorizSync       30-121
        VertRefresh     48-160
        DisplaySize 400 300
        Option          "DPMS"          "on"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Card0"
        Monitor         "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Depth       24
                Modes           "1280x1024" "1600x1200"
        EndSubSection
EndSection

Section "DRI"
        Group   "video"
        Mode    0666
EndSection

Section "ServerLayout"
        Identifier      "ServerLayout0"
        Screen          "Screen0"
#        Screen          "Screen1" RightOf "Screen0"
        InputDevice     "Mouse0" "CorePointer"
        InputDevice     "Keyboard0" "CoreKeyboard"
        Option          "HandleSpecialKeys" "Always"
EndSection


can you see any error here ?

this is what i get in the log file:

Code:

root # more /var/log/Xorg.0.log

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.4.30-sparc sparc64 [ELF]
Current Operating System: Linux flaifel 2.4.30-sparc #2 SMP Mon May 2 18:17:47 GMT 2005 sparc64
Build Date: 04 May 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu May  5 12:47:51 2005
(==) Using config file: "/etc/X11/xorg.conf"
(**) Option "defaultserverlayout" "ServerLayout0"
(**) ServerLayout "ServerLayout0"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) FontPath set to "unix/localhost:-1,/usr/share/fonts/TTF,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/misc,/usr/share/fonts/Type1,/usr/
share/fonts/util,/usr/share/fonts/local,/usr/share/fonts/cyrillic,/usr/share/fonts/ukr"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/lib/modules"
(**) Option "BlankTime" "30"
(**) Option "StandbyTime" "40"
(**) Option "SuspendTime" "50"
(**) Option "OffTime" "60"
(**) Option "Pixmap" "32"
(**) Option "HandleSpecialKeys" "Always"
(**) Always handling special keys in DDX
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.2
        X.Org Video Driver: 0.7
        X.Org XInput driver : 0.4
        X.Org Server Extension : 0.2
        X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/lib/modules/fonts/libbitmap.so
(II) Module bitmap: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org Font Renderer
        ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/modules/libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 0.7
Using vt 7
(--) using VT number 7
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 108e,8000 card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 108e,1000 card 0000,0000 rev 01 class 06,80,00 hdr 80
(II) PCI: 00:01:1: chip 108e,1001 card 0000,0000 rev 01 class 02,00,00 hdr 80
(II) PCI: 00:03:0: chip 1000,000f card 0000,0000 rev 14 class 01,00,00 hdr 80
(II) PCI: 00:03:1: chip 1000,000f card 0000,0000 rev 14 class 01,00,00 hdr 80
(II) PCI: 01:00:0: chip 108e,8000 card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,1), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
        [0] -1  2       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
        [0] -1  2       0x00000000 - 0x7fffffff (0x80000000) MX[B]
(II) Bus 0 prefetchable memory range:
        [0] -1  2       0x00000000 - 0x7fffffff (0x80000000) MX[B]
(II) Host-to-PCI bridge:
(II) Bus 1: bridge is at (1:0:0), (1,1,1), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 1 I/O range:
        [0] -1  1       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 1 non-prefetchable memory range:
        [0] -1  1       0x00000000 - 0x7fffffff (0x80000000) MX[B]
(II) Bus 1 prefetchable memory range:
        [0] -1  1       0x00000000 - 0x7fffffff (0x80000000) MX[B]
(--) SBUS:(0xf006e274) Sun FFB2+ Vertical Creator 3D at /SUNW,ffb@1e,0
(II) Addressable bus resource ranges are
        [0] -1  1       0x00000000 - 0x7fffffff (0x80000000) MX[B]
        [1] -1  2       0x00000000 - 0x7fffffff (0x80000000) MX[B]
        [2] -1  1       0x00000000 - 0x0000ffff (0x10000) IX[B]
        [3] -1  2       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
        [0] -1  1       0x7fffffff - 0x7fffffff (0x1) MX[B]
        [1] -1  1       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  1       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  1       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  2       0x7fffffff - 0x7fffffff (0x1) MX[B]
        [5] -1  2       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [6] -1  2       0x000c0000 - 0x000effff (0x30000) MX[B]
        [7] -1  2       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [8] -1  1       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [9] -1  1       0x00000000 - 0x00000000 (0x1) IX[B]
        [10] -1 2       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [11] -1 2       0x00000000 - 0x00000000 (0x1) IX[B]
(II) Active PCI resource ranges:
        [0] -1  2       0x00016000 - 0x00016fff (0x1000) MX[B]
        [1] -1  2       0x00014000 - 0x000140ff (0x100) MX[B]
        [2] -1  2       0x00012000 - 0x00012fff (0x1000) MX[B]
        [3] -1  2       0x00010000 - 0x000100ff (0x100) MX[B]
        [4] -1  2       0x00008000 - 0x0000ffff (0x8000) MX[B]
        [5] -1  2       0x71000000 - 0x717fffff (0x800000) MX[B]
        [6] -1  2       0x70000000 - 0x70ffffff (0x1000000) MX[B]
        [7] -1  2       0x00000800 - 0x000008ff (0x100) IX[B]
        [8] -1  2       0x00000400 - 0x000004ff (0x100) IX[B]
(II) Active PCI resource ranges after removing overlaps:
        [0] -1  2       0x00016000 - 0x00016fff (0x1000) MX[B]
        [1] -1  2       0x00014000 - 0x000140ff (0x100) MX[B]
        [2] -1  2       0x00012000 - 0x00012fff (0x1000) MX[B]
        [3] -1  2       0x00010000 - 0x000100ff (0x100) MX[B]
        [4] -1  2       0x00008000 - 0x0000ffff (0x8000) MX[B]
        [5] -1  2       0x71000000 - 0x717fffff (0x800000) MX[B]
        [6] -1  2       0x70000000 - 0x70ffffff (0x1000000) MX[B]
        [7] -1  2       0x00000800 - 0x000008ff (0x100) IX[B]
        [8] -1  2       0x00000400 - 0x000004ff (0x100) IX[B]
(II) OS-reported resource ranges after removing overlaps with PCI:
        [0] -1  1       0x7fffffff - 0x7fffffff (0x1) MX[B]
        [1] -1  1       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  1       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  1       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  2       0x7fffffff - 0x7fffffff (0x1) MX[B]
        [5] -1  2       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [6] -1  2       0x000c0000 - 0x000effff (0x30000) MX[B]
        [7] -1  2       0x00000000 - 0x00007fff (0x8000) MX[B]
        [8] -1  1       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [9] -1  1       0x00000000 - 0x00000000 (0x1) IX[B]
        [10] -1 2       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [11] -1 2       0x00000000 - 0x00000000 (0x1) IX[B]
(II) All system resource ranges:
        [0] -1  1       0x7fffffff - 0x7fffffff (0x1) MX[B]
        [1] -1  1       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1  1       0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1  1       0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1  2       0x7fffffff - 0x7fffffff (0x1) MX[B]
        [5] -1  2       0x000f0000 - 0x000fffff (0x10000) MX[B]
        [6] -1  2       0x000c0000 - 0x000effff (0x30000) MX[B]
        [7] -1  2       0x00000000 - 0x00007fff (0x8000) MX[B]
        [8] -1  2       0x00016000 - 0x00016fff (0x1000) MX[B]
        [9] -1  2       0x00014000 - 0x000140ff (0x100) MX[B]
        [10] -1 2       0x00012000 - 0x00012fff (0x1000) MX[B]
        [11] -1 2       0x00010000 - 0x000100ff (0x100) MX[B]
        [12] -1 2       0x00008000 - 0x0000ffff (0x8000) MX[B]
        [13] -1 2       0x71000000 - 0x717fffff (0x800000) MX[B]
        [14] -1 2       0x70000000 - 0x70ffffff (0x1000000) MX[B]
        [15] -1 1       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [16] -1 1       0x00000000 - 0x00000000 (0x1) IX[B]
        [17] -1 2       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [18] -1 2       0x00000000 - 0x00000000 (0x1) IX[B]
        [19] -1 2       0x00000800 - 0x000008ff (0x100) IX[B]
        [20] -1 2       0x00000400 - 0x000004ff (0x100) IX[B]

(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)
(II) LoadModule: "mouse"
(II) Loading /usr/lib/modules/input/mouse_drv.so
(II) Module mouse: 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) LoadModule: "kbd"
(II) Loading /usr/lib/modules/input/kbd_drv.so
(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
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
         at http://wiki.X.Org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.


as u can see there is error in loading card driver and also i think error for the keyboard driver, right?

what do you think ?

regards,
Flaifel
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: Thu May 05, 2005 12:03 pm    Post subject: Reply with quote

You are not loading any modules at all (module section is all comments). At the least, you need:
Code:

Load    "cfb"
Load    "cfb32"


Or, there is a working xorg.conf for U60+Creator at http://dev.gentoo.org/~fmccor/docs/xorg/xorg.conf/xorg.conf.html (and at other places, too, if you don't like that one.)

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


Joined: 04 May 2005
Posts: 7

PostPosted: Thu May 05, 2005 1:41 pm    Post subject: Reply with quote

thanks,
now I see the display and twm :)

but now i still have a problem with the mouse and keyboard, both are not working !!!
how can i know the path for mouse device or keyboad module ...
im using also sun mouse and keyboard (the one where the mouse is plugged to the keyboard)
Back to top
View user's profile Send private message
flaifel
n00b
n00b


Joined: 04 May 2005
Posts: 7

PostPosted: Thu May 05, 2005 4:04 pm    Post subject: Reply with quote

its ok

now all works well ..
it seems i was mixing between different xorg.conf files i found on the net :)

thanks all for your help

flaifel
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