View previous topic :: View next topic |
Author |
Message |
rinnan Tux's lil' helper


Joined: 24 May 2003 Posts: 138 Location: Honolulu, Hawai`i
|
Posted: Sun Oct 09, 2005 5:24 am Post subject: Gonig nuts -- Unichrome (CLE266) |
|
|
I'm using a VIA Epia MII 12000. I want to get accellerated 2d and 3d to work on it, but so far haven't been able to do 3d, after working on it for months, off and on. Also I want accellerated MP2 video and lm_sensors and whatnot, but all that is secondary.
I have tried every Unichrome HOWTO written for every Linux distribution for which there is a Unichrome HOWTO. I have tried every permutation of it. Along with hundreds of attempts which have failed and I can't call to mind at this second (mental block no doubt) I have tried under various distros including Gentoo:
www.epiawiki.org scripts, with Gentoo
Ubuntu Hoary with tomy's script -- which worked on my M10000 but did not on this one.
The Gentoo Unichrome HOWTO, both build-it-yourself method and use-portage method
Fedora Core 3 and Unichrome packages
CVS x-org, via, and drm (with Gentoo)
epiOS live and install CD's, both stnadard and beta
I have installed Linux of various flavors on this about 30 times.
At this point I suspect that the hardware is b0rked, but can't prove it. Is there a liveCD out there with known working accellerated 3d for Unichrome on MII boards? I would like to try it, or any "it must work or your hardware is toast" method. What I'm looking for is -- "I have an Epia MII, and I've tried this live CD and it works, I get a glxgears FPS of about 700 or so" -- OR -- "I have an Epia MII, and I've done _EXACTLY THESE STEPS NO LESS NO MORE_ (written with the kind of precision and completeness where they could be followed by a factory robot) and have had a successful test.
PLEASE HELP ME, I'm going CRAZY HERE. Far too many hours gone. HELP!!!
-------------
Current Status:
lspci
Code: | erik@oak ~ $ /sbin/lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8623 [Apollo CLE266]
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
0000:00:0a.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
0000:00:0a.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
0000:00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
0000:01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8623 [Apollo CLE266] integrated CastleRock graphics (rev 03)
|
glxinfo
Code: |
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIS_multisample
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_point_parameters,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
GL_ATIX_texture_env_combine3, GL_IBM_texture_mirrored_repeat,
GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
GL_NV_blend_square, GL_NV_point_sprite, GL_NV_texgen_reflection,
GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x22 16 tc 0 16 0 r y . 5 6 5 0 0 24 8 0 0 0 0 0 0 None
0x23 16 tc 0 16 0 r . . 5 6 5 0 0 24 8 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x25 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x26 16 tc 0 16 0 r y . 5 6 5 0 0 0 0 0 0 0 0 0 0 None
0x27 16 tc 0 16 0 r . . 5 6 5 0 0 0 0 0 0 0 0 0 0 None
0x28 16 tc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 0 0 0 Slow
0x29 16 tc 0 16 0 r . . 5 6 5 0 0 24 8 16 16 16 0 0 0 Slow
0x2a 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x2b 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x2c 16 tc 0 16 0 r y . 5 6 5 0 0 0 0 16 16 16 0 0 0 Slow
0x2d 16 tc 0 16 0 r . . 5 6 5 0 0 0 0 16 16 16 0 0 0 Slow
0x42 32 tc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
|
uname -a
Code: | erik@oak ~ $ uname -a
Linux oak 2.6.13-gentoo-r3 #5 Fri Oct 7 07:14:29 HST 2005 i686 VIA Nehemiah CentaurHauls GNU/Linux
|
cat /etc/X11/xorg.conf
Code: | erik@oak ~ $ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/free-bangla-font/"
FontPath "/usr/share/fonts/nepali-fonts/"
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "glx"
Load "xtrap"
Load "freetype"
Load "type1"
Load "v4l"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/misc/psaux"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-107
VertRefresh 55-78
Option "NoDDC"
#
#
EndSection
Section "Device"
Identifier "Card0"
Driver "via"
#Driver "vesa"
VendorName "Unknown Vendor"
BoardName "Unknown Board"
BusID "PCI:1:0:0"
Option "ActiveDevice" "CRT"
EndSection
Section "Device"
Identifier "CardTV"
Driver "via"
VendorName "Unknown Vendor"
BoardName "Unknown Board"
BusID "PCI:1:0:0"
Option "ActiveDevice" "CRT,TV"
Option "TVType" "PAL"
Option "TVOutput" "Composite"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024"
Modes "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "ScreenTV"
Device "CardTV"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
|
lsmod
Code: | erik@oak ~ $ lsmod
Module Size Used by
snd_pcm_oss 47840 0
snd_mixer_oss 17120 1 snd_pcm_oss
snd_seq_oss 31712 0
snd_seq_midi_event 5504 1 snd_seq_oss
snd_seq 47856 4 snd_seq_oss,snd_seq_midi_event
snd_via82xx 22688 1
snd_ac97_codec 83164 1 snd_via82xx
snd_pcm 80232 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer 20516 2 snd_seq,snd_pcm
snd_page_alloc 8456 2 snd_via82xx,snd_pcm
snd_mpu401_uart 5856 1 snd_via82xx
snd_rawmidi 19712 1 snd_mpu401_uart
snd_seq_device 6956 3 snd_seq_oss,snd_seq,snd_rawmidi
snd 44804 13 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
via 45696 1
drm 66840 2 via
via_agp 7680 1
padlock 22688 0
hw_random 4212 1
|
Xorg log -- direct rendering
Code: | erik@oak ~ $ grep rendering /var/log/Xorg.0.log
(II) VIA(0): direct rendering enabled
|
|
|
Back to top |
|
 |
chunderbunny Veteran


Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Sun Oct 09, 2005 2:56 pm Post subject: |
|
|
Unfortunately Unichrome boards are exceptionally difficult to get working properly. I've had my ME6000 for nearly two years and I only got the hardware acceleration working today. I don't know of any CLE266 based liveCDs that are guaranteed to work, the only distro which hase come close is linPVR but that requires some funky DHCP setup so you can net-boot your board. If it helps, this is what I did to get my ME6000 working:
Firstly, install a stable Getoo system. I used stage 3 2005.1 x86 tarball, then I updated with "emerge sync && emerge -avuND world". This is my make.conf Code: | # Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-src/portage/cnf/make.conf.x86,v 1.5.2.5 2005/04/13 15:28:38 jstubbs Exp $
USE="X gtk gtk2 alsa -qt -gnome -kde dvd mmx 3dnow unicode -arts hal"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=c3 -O3 -pipe -fomit-frame-pointer"
# If you set a CFLAGS above, then this line will set your default C++ flags to
# the same settings.
CXXFLAGS="${CFLAGS}"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
MAKEOPTS="-j2" | This is my /etc/portage/package.keywords Code: | x11-base/xorg-x11 ~x86 | This is my /etc/portage/package.unmask Code: | x11-base/xorg-x11-6.8.99.15-r3 | This is my /etc/portage/package.use Code: | sys-libs/glibc userlocales
media-libs/xine-lib ffmpeg cle266 xvmc
x11-base/xorg-x11 insecure-drivers | As part of this I installed the gentoo-2.6.13-r3 kernel, the important kernel options were Code: | "device drivers" > "character devices" > "<M> /dev/agpgart (AGP Support) "
"device drivers" > "character devices" > "<M> VIA chipset support "
"device drivers" > "character devices" > "<M> Direct Rendering Manager"
"device drivers" > "character devices" > "<M> Via unichrome video cards" |
(I can post my entire kernel config if you want)
In order to load these modules I emerged coldplug and set it to run in the boot runlevel Code: | emerge -av coldplug
rc-update add coldplug boot |
Next I emerged xorg (pulling in the 6.8.99 version of xorg) and XFCE, but I don't think the window manager is important. This is my xorg.conf Code: |
Section "Module"
SubSection "extmod"
EndSubSection
Load "type1"
Load "freetype"
Load "glx"
Load "dri"
EndSection
Section "Files"
RgbPath "/usr/lib/X11/rgb"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/local/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "Default Monitor"
HorizSync 31.5 - 57.0
VertRefresh 50-90
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection
Section "Device"
Identifier "Onboard VIA"
Driver "via"
Option "DisableIRQ"
Option "EnableAGPDMA"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "Onboard VIA"
Monitor "Default Monitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "DRI"
Mode 0666
EndSection |
Once XFCE was installed I installed gxine "emerge -av gxine" and it should have all the relavent xvmc options automatically compiled in. I made sure that my dvd drive had dma mode enabled "hdparm -d1 /dev/dvd". I put my user in the video and cdrom groups, and I changed the /etc/udev/rules/50-udev.rules so that the /dev/dvd device had "cdrom" as the group permission. Code: | # cdrom symlinks and other good cdrom naming
... 3 lines I didn't touch here...
ENV{ID_CDROM}=="?*", SYMLINK+="cdrom%e", GROUP="cdrom"
ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw%e", GROUP="cdrom"
ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd%e", GROUP="cdrom"
ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw%e", GROUP="cdrom" | I think you need to run "udevstart" to get these changes to take effect, but I just rebooted.
All this should give you hardware MPEG2 acceleration. You can enable it in gxine with "gxine -V xxmc dvd://", there should be a message indicating unichrome hardware acceleration is active on the current stream. getting 3D acceleration was a little more tricky, I'm a little unsure that what I did was a good idea but it seems to work. First I downloaded the unichrome 3D driver tbz2 file (version opensource_ubranch_20050302.tbz2) and extracted in my home directory. I copied the libGL.so.2 file to /usr/X11/lib/libGL.so.2 and the modules/dri/unichrome_dri.so file to /usr/X11/lib/modules/dri/unichrome_dri.so. This last file overwrites one that already exists.
Next, I restarted xorg and everything worked! glxgears gave 400fps compared to 30fps before I did the 3D driver thing. Obviously I've missed the parts about networking, PCI chipset support and getting ALSA working, but that isn't any different from any other gentoo install. |
|
Back to top |
|
 |
rinnan Tux's lil' helper


Joined: 24 May 2003 Posts: 138 Location: Honolulu, Hawai`i
|
Posted: Sun Oct 09, 2005 9:18 pm Post subject: It works! (sort of) |
|
|
Well, it works! I get 450 or so on my glxgears fps. The problem I'm running into now is that only glxgears works(!) and the kde screensavers which use opengl just give a blank screen with corruption in it (which doesn't move or change). Next I'll try tuxracer. But this gives me something to look at -- those two files I assume are necessary and if they aren't there in a build at least I'll know something is wrong.
The next thing I'd like to do is figure out what those files exactly are and why they aren't being built during ordinary builds such as the ones using the epiawiki.org build scripts. They look very out of date as well.
So next up -- test tuxracer (have to build it), and accellerated movie playing. I'll report back. My main mission, however, which was to confirm that the hardware basically works, has been accomplished. |
|
Back to top |
|
 |
chunderbunny Veteran


Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Sun Oct 09, 2005 10:27 pm Post subject: |
|
|
I'm glad I could help, I know only too well how difficult is to get EPIA boards up and running. |
|
Back to top |
|
 |
rinnan Tux's lil' helper


Joined: 24 May 2003 Posts: 138 Location: Honolulu, Hawai`i
|
Posted: Mon Oct 10, 2005 5:13 am Post subject: A few more problems -- and thanks again |
|
|
Thanks again, I now can prove that my hardware basically works. This was my main goal. I can now charge ahead and perfect it!
Software is still giving some problems.
glxgears works and gives me the 400+ fps. But the .kss kde screensavers don't work and tuxracer goes for about 3 or 4 frames and then hangs the system hard. We see tux just begin to make his entrace then, freeze.
video MP2 accelleration works perfectly it seems and gives me about 12-16% total CPU usage on full screen dvd-from-harddrive (cpdvd) playback. Very good.
2D hardware accelleration in general works very, very well and stuff seems to happen instantaneously.
So now I am going to research these two files and try to figure out why they weren't produced for me during the www.epiawiki.org script builds.
Erik |
|
Back to top |
|
 |
|
|
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
|
|