Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

via VT8623 CL266, mandrake 10.1, X.org driver

Help
2005-01-09
2013-04-15
  • My name's alexandra from France, i'm bored about all these driver things.
    I spent a whole week searching and searching, trying and trying for nothing...
    I'm not a computer scientist, only the  newbie-girl.

    I tried the xorg drivers but it froze my computer. I now use the standard vesa on my new laptop, but no hardware acceleration is unacceptable for dvd watching... 
    I tried a lot of things like getting the xorg sources then patching and compiling, but i only get errors and no via_drv.o as i expected...

    Could anyone help me not to go back to windows since i made a terrible huge step trying debian (too hard) and then mandrake distros?
    I haven't found any docs to install the drivers provided here, so could anyone tell me how to install them?
    (like a step by step installation)

    thx a lot,
    Alexandra

     
    • John Robinson
      John Robinson
      2005-01-10

      Hi Alexandra, welcome...

      There's a mini-howto at http://sourceforge.net/docman/display_doc.php?docid=21910&group_id=102048

      I suspect there aren't many people subscribed to these lists, I've hardly seen anybody post any replies since I joined. Is there anyone else out there?

      Anyway, if you need any more help, you're probably better off trying the unichrome-users list; see https://lists.sourceforge.net/lists/listinfo/unichrome-users

      Hope this helps.

      Cheers,

      John.

       
    • (from Alexandra)
      Hi John,
      i don't know how to thank you... I have not tested it (i'm currently at work), but I feel that these information are pretty valuable. Will i be able to watch a dvd tonight? You gonna know it in the next episode :p

      I have 2 questions :
      1. why not puching the links you gave me to the main page of the website?
      2. why not providing nightly built binary rpm or bins for the main distros?

      thx again for this quick answer (you never sleep??  ;)  ).
      see you for the next tip i gonna need in my new unix experiences ;)
      Alexandra

       
      • John Robinson
        John Robinson
        2005-01-10

        1. Well, from http://unichrome.sourceforge.net/ you can reach the mini-howto via the Documentation section, and the list is mentioned under Support.

        2. I don't know, I'm not a developer myself, but I'd guess that sourceforge doesn't provide such automatic build facilities, and the unichrome developers don't otherwise have enough resources to do it.

        Yes, I sleep, but it was only just past midnight here.

         
    • (from Alexandra)

      -=== I ===-
      i'm disappointed : i stupidly have to use Xorg-x11 (6.8.1 or at least 6.7.0) and not xfree86 (because of my distro), and i'd like not to have a too special config (i mean not recompiling entirely xfree86 if not necessary as the drivers are said to word in xorg too).

      extract :
      $ find ./xc -iname Makefile
      ./xc/Makefile
      ./xc/extras/Mesa/Makefile
      ./xc/extras/Mesa/src/glw/Makefile
      ./xc/extras/Mesa/src/glx/mini/Makefile
      ./xc/extras/Mesa/src/glx/Makefile
      ./xc/extras/Mesa/src/Makefile
      ./xc/extras/Mesa/src/mesa/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/beos/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/dri_client/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/fb/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/ffb/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/gamma/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/i810/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/i830/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/i915/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/mach64/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/mga/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/r128/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/r200/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/radeon/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/sis/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/tdfx/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/unichrome/Makefile
      ./xc/extras/Mesa/src/mesa/drivers/dri/x11/Makefile
      ./xc/extras/Mesa/src/mesa/x86/Makefile
      ./xc/extras/drm/bsd/mach64/Makefile
      ./xc/extras/drm/bsd/Makefile
      ./xc/extras/drm/bsd/mga/Makefile
      ./xc/extras/drm/bsd/r128/Makefile
      ./xc/extras/drm/bsd/radeon/Makefile
      ./xc/extras/drm/bsd/sis/Makefile
      ./xc/extras/drm/bsd/tdfx/Makefile
      ./xc/extras/drm/linux/Makefile
      ./xc/extras/freetype2/Makefile
      ./xc/extras/regex/Makefile
      ./xc/extras/rman/Makefile
      ./xc/extras/ttf2pt1/Makefile
      ./xc/extras/zlib/Makefile
      ./xc/programs/Xserver/hw/xfree86/drivers/mga/util/Makefile

      There is no Makefile in the './xc/programs/Xserver/hw/xfree86/drivers' directory...

      So the only thing that i can do is re-asking : how to build the drivers plz? :'(

      -=== II ===-
      there is a './xc/extras/Mesa/src/mesa/drivers/dri/unichrome' directory... what's this? only for dri or the accelerated unichrome drivers for xorg that i'm looking for included in the main xorg sources?

      -=== III ===-
      are the Imakefile the answers to all my troubles? (because there is one in the 'drivers' directory where i wanted a Makefile instead.

      -=== IV ===-
      do i have to build the entire xorg using '[~/xc]$ make World'? is looks stupid to build everything when only a little part is needed, but i will if i have to...

      thx for the help anyway john
      Alexandra

      ps : if you gave me a good answer and that i've been a newbie too much to be able to use it, sorry

       
      • John Robinson
        John Robinson
        2005-01-10

        Yes I'm afraid you do have to build the whole of X from source, the Makefiles are made from the Imakefiles. Some of the folks on the unichrome-users list do make RPMs etc. though.

         
      • John Robinson
        John Robinson
        2005-01-10

        I forgot to say: the unichrome-xfree source works fine with X.org as well. The Mesa stuff is for OpenGL drivers. If you want to play DVDs, you'll need to build the xvmc code into your new X, as well as rebuild your DVD playing software (xine, mythtv) with extra options to use xvmc. Again, there are links on what to do in the Documentation section from unichrome.sourceforge.net.

         
    • Alexandra, you have to issue a command that will generate the makefiles. Its mentioned at step 5 below. Just to summarize, a few lines on Xorg installation and differences with XFree:

      Get and install the Unichrome Xorg driver:
      1. Unpack the latest Xorg sources [example directory /usr/local/src/]. Will be referred to as -XORG TREE-
      2. cd -XORG TREE-/xc/programs/Xserver/hw/xfree86/drivers/

      Get the the unichrome driver via CVS:
      3. cvs -z3 -d:Pserver:anonymous@cvs.sourceforge.net:/cvsroot/unichrome co xfree86

      Removing the one supplied by Xorg, because it is probably outdated and linking to the new one:
      4. rm -rf via
      ln -s xfree86 via

      This is probably the difference with XFree, building the makefiles
      5. cd -XORG TREE-/xc
      make Makefiles

      Compile the driver:
      6. cd -XORG TREE-/xc/programs/Xserver/hw/xfree86/drivers/via
      make
      make install

      Get and install the DRM/DRI. Has to be enabled in the kernel?

      1. Get the latest DRM/DRI code via CVS:
      # cd /usr/src/linux/drivers/char/drm
      # cvs -z3 -d:Pserver:anonymous@dri.freedesktop.org:/cvs/dri co drm

      2. Compile and install
      # cd drm/linux-2.6
      # make DRM_MODULES=via
      # cp -p via.ko /lib/modules/--YOUR KERNEL VERSION--/kernel/drivers/char/drm/

      3. Refresh the module dependencies and check if the module is okay:
      # depmod -a
      # modinfo via

      In the Devices section of xorg.conf, add:
      Option "EnableAGPDMA"

      This worked on a KN400 and VIA EPIA M 10k, Gentoo/Kernel 2.6.10. No EPIA patches were applied.

      Once again, kudos to the UNICHROME PROJECT!

      Hope that helps to Alexandra and everyone that wants to get Xorg working with Unichrome.

       
    • How to build only the makefiles - look at step 5. Just to summarize, a few lines on Xorg installation and differences with XFree:

      Get and install the Unichrome Xorg driver:
      1. Unpack the latest Xorg sources [example directory /usr/local/src/]. Will be referred to as -XORG TREE-
      2. cd -XORG TREE-/xc/programs/Xserver/hw/xfree86/drivers/

      Get the the unichrome driver via CVS:
      3. cvs -z3 -d:Pserver:anonymous@cvs.sourceforge.net:/cvsroot/unichrome co xfree86

      Removing the one supplied by Xorg, because it is probably outdated and linking to the new one:
      4. rm -rf via
      ln -s xfree86 via

      This is probably the difference with XFree, building the makefiles
      5. cd -XORG TREE-/xc
      make Makefiles

      Compile the driver:
      6. cd -XORG TREE-/xc/programs/Xserver/hw/xfree86/drivers/via
      make
      make install

      Get and install the DRM/DRI. Has to be enabled in the kernel?

      1. Get the latest DRM/DRI code via CVS:
      # cd /usr/src/linux/drivers/char/drm
      # cvs -z3 -d:Pserver:anonymous@dri.freedesktop.org:/cvs/dri co drm

      2. Compile and install
      # cd drm/linux-2.6
      # make DRM_MODULES=via
      # cp -p via.ko /lib/modules/--YOUR KERNEL VERSION--/kernel/drivers/char/drm/

      3. Refresh the module dependencies and check if the module is okay:
      # depmod -a
      # modinfo via

      In the Devices section of xorg.conf, add:
      Option "EnableAGPDMA"

      This worked on a KN400 and VIA EPIA M 10k, Gentoo/Kernel 2.6.10. No EPIA patches were applied.
      Once again, kudos to the UNICHROME PROJECT!

       
      • John Robinson
        John Robinson
        2005-01-10

        Oooh cool, you managed to build the unichrome drivers without building the whole of X? OK, Alexandra and everyone else, ignore what I said...

        Seeing as I use Gentoo - which builds everything from source anyway - I don't particularly mind building from source, but rebuilding X is a bit tiresome (takes hours).

        I agree, the Unichrome Project rocks! Cheers guys!

         
    • To get only the Makefiles in Xorg, you have to execute:

      ~/xc# make Makefiles
      ~/xc# make Makefile

      You don't need to do a make World...

      You can take a look at the bottom of this forum post:
      http://forums.viaarena.com/messageview.cfm?catid=28&threadid=62271&STARTPAGE=2&FTVAR_FORUMVIEWTMP=Linear

       
    • test

       
    • (from Alexandra)
      so much answers and so quickly :D
      sorry : i shamely thought that everyone was sleeping in here ;)
      'little' project but very very active community.

      If i could help (translating maybe, cause programming is not what i do at best LOOL   ) the community, tell me.

      I gonna test all this tonight (now 15h00 in paris), so have a good day all folks, see you in the next episode : Alexandra VS Xservers

      Have a good day folks!! :)
      Alexandra