SiS USB


Forum: X and Fluxbox
Topic: SiS USB
started by: Divago

Posted by Divago on Sep. 21 2007,13:30
Run away, boring-question man is coming back :D
(jk)

Ok, i solved (thanks guy) all problem with touchscreen i had. and also to "autoload modprobe"
now i need to put a "sisusb" working

a "sisusb" is a "USB to VGA" device, that permit u to plug a second (third, fourth, etc) monitor into usb port

i already did it, i mean: making sisusb working, in different distro (fedora, just for your information)
installing a sisusb is easy enough: put the sisusb_drv.o (or .so) into /usr/X11R6/lib/modules/drivers and write something like
Code Sample
Section "Device"
       Identifier  "videocard1"
       Driver      "sisusb"
       VendorName  "SiS"
       BoardName   "SiS"
       Option      "HWCursor" "True"
       Option      "SWCursor" "True"
       Option      "CRT1Gamma" "True"
EndSection

Section "Monitor"
       Identifier      "Monitor1"
       VendorName      "freganca1"
       ModelName       "mastigranca1"
EndSection

Section "Screen"
       Identifier      "Screen1"
       Device          "videocard1"
       Monitor         "Monitor1"
       DefaultDepth     16
       SubSection "Display"
               Depth     16
               Modes    "1024x768" "800x600" "640x480"
       EndSubSection
EndSection
into /etc/X11/XF86Config-4 file
and then restart X.

now, with dsl (dsl-n to be honest) does not work. why?
dunno; XFree86 log does not show any EE about it (``# cat /var/log/XFree86.0.log | grep EE'' does not show any EE at all)
i tried using sisusb_drv.o dowloaded at < http://www.winischhofer.eu/linuxsisusbvga.shtml > then i discovered these one are using gcc3

and this is a problem: what version of gcc i can use on dsl-n?
i found gcc1 package for dsl; googling here and there i found somplace saying there are gcc up to 2.95 for dsl
browsing mydsl extension browser, however, i found NOONE gcc package
so, where i can found updated gcc?
and someone knows where (if any) i can found sisusb driver useable for dsl(-n)??

thanks for helping (again) mate

Posted by curaga on Sep. 21 2007,14:03
Check the DSL extensions; There are Gcc 3.3.4 (in gcc1-with-libs) and 2.9.5.

You also need to compile the kernel driver from that page..

Posted by Divago on Sep. 21 2007,14:17
Quote (curaga @ Sep. 21 2007,10:03)

wow very quick reply :D
Quote
Check the DSL extensions; There are Gcc 3.3.4 (in gcc1-with-libs) and 2.9.5.
for dsl or dsl-n? can i download manually dsl extension and install it inside dsl-n using the "manually load dsl extension"?
Quote
You also need to compile the kernel driver from that page..
and... this... is... well...
...
how??

Posted by Juanito on Sep. 21 2007,15:29
The gcc extensions didn't work very well for me in dsl-n, you might be better off using dpkg or apt-get to install gcc in dsl-n
Posted by Divago on Sep. 24 2007,13:26
Quote (curaga @ Sep. 21 2007,10:03)
You also need to compile the kernel driver from that page..

Oook
i tried to compile kernel module; well, a friend of mine helped me 'cause i never compiled kernel modules before :D

so, we downloaded kernel bz2 from kernel.org (2.6.12.6 and my system is 2.6.12)
i did a backup of .config file, just in case

then
Code Sample
# make config
 HOSTCC  scripts/basic/fixdep
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

so what's happening? what i need to do to make this driver working?

(yeah, i know, i'm very noob at this... so please, i need it in "dummy-user talking" :D )

ty for help

Posted by Juanito on Sep. 24 2007,13:56
Depending on what you're trying to compile, you will usually find that something is missing and usually you can find it for dsl-n on the knoppix 4.0.2 cd/iso.

I got the same crt1.o error and found the missing file in the knoppix iso.

Note also that in 2.6.x the compile steps are not quite the same as in 2.4.x (which is detailed in several threads in the dsl section) - this < thread > and this < other thread > might be useful.

Ref: "other thread" note that the use of linux-kernel-headers_2.5.999 is not correct (but nevertheless works in some circumstances), better to use linux-2.6.12.tar.gz from kernel.org

Posted by Divago on Sep. 24 2007,16:39
Quote (Juanito @ Sep. 24 2007,09:56)
Depending on what you're trying to compile, you will usually find that something is missing and usually you can find it for dsl-n on the knoppix 4.0.2 cd/iso.

I got the same crt1.o error and found the missing file in the knoppix iso.

Note also that in 2.6.x the compile steps are not quite the same as in 2.4.x (which is detailed in several threads in the dsl section) - this < thread > and this < other thread > might be useful.

Ref: "other thread" note that the use of linux-kernel-headers_2.5.999 is not correct (but nevertheless works in some circumstances), better to use linux-2.6.12.tar.gz from kernel.org

Thanks for help
i downloaded and dpkg -i some package u pointed me
now seems workign fine
(unluckily, my friend now cannot help me and i'm really noob at this so i'll wait tomorrow for my friend :D )

tyvm for the help, ever useful help :)

Posted by Divago on Sep. 28 2007,14:26
Ok
i spent last 2 days compiling kernel modules
i compiled sisusb.ko module using knoppix dvd
then i copied module into dsl-n (copied into /home/dsl/sisusbvga directory so i know it'll backup at reboot)

i need to say thanks here to all ppl helped me into compiling steps :D (and replied me to boring post on different topics :) )

last, but not least, inserted
Code Sample
insmod /home/dsl/sisusbvga/sisusb.ko
into /opt/bootlocal.sh so i know will be loaded at startup

Then attached a second monitor to sisusb
monitor show black screen with red border: and this mean it's receiving input from sisusb (ie: it's work)
now, it's just a matter of XF86Config
woooot

BUT

i configured XF86Config-4, and this is how it looks like:
Code Sample

# cat /etc/X11/XF86Config-4
Section "ServerLayout"
       Identifier      "VESA device"
       Screen          0               "Screen0" LeftOf "Screen1"
       Screen          1               "Screen1" 0 0
#      InputDevice     "Mouse"         "CorePointer"
       InputDevice     "touchscreen"   "CorePointer"
       InputDevice     "Keyboard0"     "CoreKeyboard"
       Option          "Xinerama"      "on"
       Option          "Clone"         "off"
EndSection
Section "Module"
       Load  "dbe"
       Load  "extmod"
#      Load  "fbdevhw"
       Load  "dri"
       Load  "glx"
       Load  "record"
       Load  "freetype"
       Load  "type1"
       Load  "sisusb"
EndSection
sniiip
Code Sample

Section "Device"
      Identifier  "videocard1"
      Driver      "sisusb"
      VendorName  "SiS"
      BoardName   "SiS"
      Option      "HWCursor" "True"
      Option      "SWCursor" "True"
      Option      "CRT1Gamma" "True"
EndSection

Section "Monitor"
      Identifier      "Monitor1"
      VendorName      "freganca1"
      ModelName       "mastigranca1"
EndSection

Section "Screen"
      Identifier      "Screen1"
      Device          "videocard1"
      Monitor         "Monitor1"
      DefaultDepth     24
      SubSection "Display"
               Viewport  0 0
               Depth     16
               Modes    "1024x768" "800x600" "640x480"
      EndSubSection
      SubSection "Display"
               Viewport  0 0
               Depth     24
               Modes    "1024x768" "800x600" "640x480"
      EndSubSection
EndSection

Section "DRI"
       Mode         0666
EndSection


i already checked, and there are sisusb_drv.o driver into /usr/X11R6/lib/modules/driver folder (so it's not a driver problem)

but monitor does'nt show anything
i'm pretty sure is a configuration problem with monitor and XF86
so, where am i wrong?

(PS. monitor work fine with a sisusb into fedora 7, so it's not the monitor...)
ty for all

best regards

Posted by curaga on Sep. 28 2007,14:56
Is this the same X config you use in Fedora?
Posted by Divago on Sep. 28 2007,16:49
Quote (curaga @ Sep. 28 2007,10:56)
Is this the same X config you use in Fedora?

well...
nope...
'cause in dsl-n i use xfree86 (touchscreen issue) and in fedora i use xorg

btw i cut&pasted most section from fedora's xorg.org into dsl-n's XF86Config-4

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.