Talk:VIA Unichrome
From Gentoo Linux Wiki
Forums for discussions: EpiaWiki.org GentooForums
Contents |
[edit] xorg 7
We should really update this article to work with the modular xorg! My old xorg-6.99 worked very nice. With the new one I have some unresolved issues. The OpenGL hw support quiet works but overlay video always makes the whole x server stop. Does anyone have experience on this? The old xorg-6.99 ebuild vanished so I can't return anymore... Realbuzz 11:08, 12 August 2006 (UTC)
- RE! I am trying to install Xorg7 on my system in about a week. I seriously b0rked it a while ago and was totally unwilling to anything with it. Have to reemerge some stuff, expect two weeks for testing. --the_mgt 23:52, 1 September 2006 (UTC)
[edit] Variable for make.conf
The example make.conf file lists the variable
VIDEO_CARDS="via"
However, this epiawiki page shows that it needs to be cle266. Which is the right way to do it? Can someone include instructions on getting a framebuffer to work for the console? I assume some wizardry with the DirectFB package and kernel compiling would be the way to do this?
- In the beginning the devs created "via" and "cle266" and noone was sure which one would be the right choice. I guess you just take "via", if in doubt, use both. --the_mgt 23:52, 1 September 2006 (UTC)
[edit] MESA fails to build
After following the steps, i got this error in the MESA block of steps. I guess it's nothing to with the steps but a problem in the Mease cvs tree but can anyone confirm this please ?
boom Mesa # make linux-dri (cd configs && rm -f current && ln -s linux-dri current) make default make[1]: Entering directory `/usr/src/drm-unichrome/Mesa' make[2]: Entering directory `/usr/src/drm-unichrome/Mesa/src' Making sources for make[3]: Entering directory `/usr/src/drm-unichrome/Mesa/src/mesa' Makefile:160: warning: overriding commands for target `/' Makefile:153: warning: ignoring old commands for target `/' make[4]: Entering directory `/usr/src/drm-unichrome/Mesa/src/mesa' Makefile:160: warning: overriding commands for target `/' Makefile:153: warning: ignoring old commands for target `/' make[5]: Entering directory `/usr/src/drm-unichrome/Mesa/src/mesa/x86' make[5]: Nothing to be done for `default'. make[5]: Leaving directory `/usr/src/drm-unichrome/Mesa/src/mesa/x86' make[5]: Entering directory `/usr/src/drm-unichrome/Mesa/src/mesa/x86-64' make[5]: Nothing to be done for `default'. make[5]: Leaving directory `/usr/src/drm-unichrome/Mesa/src/mesa/x86-64' cc -c -I../../include -I../../src/mesa -I../../src/mesa/main -I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl -I../../src/mesa/shader -I../../src/mesa/shader/grammar -I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux -I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast -I../../src/mesa/swrast_setup main/disp atch.c -o main/dispatch.o In file included from main/dispatch.c:90: ../../src/mesa/glapi/glapitemp.h:2109: error: conflicting types for `glTexImage3DEXT' ../../include/GL/glext.h:4195: error: previous declaration of `glTexImage3DEXT' make[4]: *** [main/dispatch.o] Error 1 make[4]: Leaving directory `/usr/src/drm-unichrome/Mesa/src/mesa' make[3]: *** [default] Error 2 make[3]: Leaving directory `/usr/src/drm-unichrome/Mesa/src/mesa' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/src/drm-unichrome/Mesa/src' make[1]: *** [default] Error 1 make[1]: Leaving directory `/usr/src/drm-unichrome/Mesa' make: *** [linux-dri] Error 2
- hi, sounds strange, i will check out. I am hanging around at the forum on epiawiki.org, greetz mgt
- Mesa always compiles fine here, what board/chipset combo are you using?
- I will look into this aswell. --the_mgt 23:52, 1 September 2006 (UTC)
- Mesa always compiles fine here, what board/chipset combo are you using?
[edit] DRM fails
grrr, i tried 2 versions of my scripts and both fail here. I dont' know why exactly, i changed too many things since the last drm build. I have sysfs support in the kernel, this kernel is compiled with devfs, but i installed udev for antoher kernel lately. I tried an older version of a kernel config, too, but nothing changed... I am still workiing on it, will post more later
CC [M] /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.o /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:130: warning: implicit declaration of function `__ATTR' /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:130: error: `dri_library_name' undeclared here (not in a function) /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:130: warning: missing braces around initializer /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:130: warning: (near initialization for `class_device_attrs[0]') /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:130: error: initializer element is not constant /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:130: error: (near initialization for `class_device_attrs[0].attr.name') /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:131: error: initializer element is not constant /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:131: error: (near initialization for `class_device_attrs[0].attr') /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:131: error: initializer element is not constant /usr/src/drm-unichrome/drm/linux-core/drm_sysfs.c:131: error: (near initialization for `class_device_attrs[0]') make[2]: *** [/usr/src/drm-unichrome/drm/linux-core/drm_sysfs.o] Error 1 make[1]: *** [_module_/usr/src/drm-unichrome/drm/linux-core] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.7-epia1' make: *** [modules] Error 2
- finally switched to 2.6.12-gentoo-r6 and all is calm with x11-drm from portage
[edit] Still required?
Is all of this still required to get xorg working on a Unichrome chipset graphics card when using x11-base/xorg-x11-6.8.99.15?
- The unichrome drm in the latest mm-sources and gentoo-sources is working with my patched xorg-x11-6.8.2-r2. The 6.8.99.15 is definetly working on my MII6000 --themgt 17:04, 28 August 2005 (GMT)
[edit] Direct rendering: No. Why?
I'm building the kernel from 2.6.15-gentoo-r5 sources and emerging xorg-x11-6.9.0.
Xorg works well with "Driver "via"" in xorg.conf, but DRI doesn't work.
#cat /var/log/Xorg.0.log | grep "direct rendering"
(II) VIA(0): direct rendering enabled
#opengl-update --get-implementation
xorg-x11
and
#glxinfo | grep "direct rendering"
direct rendering: No
Why is it so?
update: "LIBGL_DEBUG="verbose" glxinfo" shows, that there is no unichrome_dri.so file in /usr/lib/modules/dri. Do i need to patch my xorg sources or install x11-drm to get this?
- Back than, you definetly needed to patch at least xorg, dunno if unichrome valid drm was in that kernel. Does the problem persist? (Or have you kicked the board into the trash because noone answered ;) --the_mgt 23:52, 1 September 2006 (UTC)
- on the 2.6.15 kernels, you might need to grab drm from cvs and build it from source, as described. once you get to 2.6.17 or 2.6.18, you can just enable the kernel modules.
[edit] TV Out
How to get tv-out working (s-video connector on my laptop)? (Unichrome pro A series, PN800) An example xorg.conf would be nice.
[edit] xorg.conf
You forgot to say which driver to write in xorg.conf
I suggest that it must be 'via', is it correct?
