DRI-VIA-OpenChrome in Puppy 2 & 2.01 (SOLVED)

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

DRI-VIA-OpenChrome in Puppy 2 & 2.01 (SOLVED)

#1 Post by dvw86 »

I'm having trouble installing the 3D-DRI-via-openchrome.pup drivers in Puppy 2 on my VIA ML8000. It is the same dotpup that I have been using for Puppy 1.0.7 and 1.0.8. I could never get the 3D control center to work on the VIAs so I have always used the dotpup. The error I get is as follows.

Code: Select all

sh-3.00# install-via-openchrome
insmod: error inserting '/usr/local/via-openchrome/via.o': -1 Invalid module format
Last edited by dvw86 on Fri 30 Jun 2006, 01:59, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

that will not work, as it is the DRM-module for Kernel 2.4, but Puppy2 uses Kernel 2.6.

There currently is no via openchrome DRM-module for Puppy2, maybe tempestous can compile one.
DRM = Direct Rendering Manager.
That adds basic functionality to the kernel, to use the X.org DRI (Direct rendering interface).

You could try the via.ko -module in Puppy2, but I dont't know if it works with the openchrome.pup.
The 3D-Control-Center tries this combination.

Mark

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#3 Post by tempestuous »

Mark,
I already sent you all my Puppy2 DRI files last May, including VIA Unichrome stuff. I just assumed that these VIA modules and Unichrome DRI drivers were incorporated into your 3D Wizard (which is brilliant, by the way).
In the packages I sent you:

My 2D-Xorg-replacements.tar.gz package contains
/usr/X11R6/lib/modules/drivers/via_drv.ko

My DRI.tar.gz package contains
/usr/X11R6/lib/modules/dri/unichrome_dri.so

My DRI-modules-NOT-STRIPPED.tar.gz package contains
/lib/modules/2.6.16.7/char/drm/drm.ko
/lib/modules/2.6.16.7/char/drm/via.ko
... although there's nothing exotic about these modules. I think the standard versions already in Puppy2 should be fine. It's worth pointing out that agpgart and via-agp must be loaded as well.

It's really a question of how should we BEST package the different components.
Do you want to incorporate this VIA stuff into your 3D Wizard?
If yes, will the wizard include the extra VIA XvMC libraries ? -
(I sent these to you as "XvMC-for-Unichrome.tar.gz")
/usr/X11R6/lib/libviaXvMC.so.1.0
/usr/X11R6/lib/libviaXvMCPro.so.1.0

If yes to all of the above, the only remaining component necessary is my version of libGL, which includes the very important libdrm.so.2.0.0.
I think your Wizard already includes this libGL version(?).
If yes, I suggest the Wizard should advise VIA Unichrome users to choose this version.

So it's up to you Mark. I'm happy to separately package ALL, SOME, or NONE, of the files mentioned.
It depends on how perfect (!) you want your Wizard to be :wink:

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

Ok, it seems oversaw you .ko -module.
There already is the choice to install your xorg-openchrome-drivers in the wizard.

I must have a closer look, what I messed up with your Kernel-module :roll:
Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

Code: Select all

My 2D-Xorg-replacements.tar.gz package contains 
 /usr/X11R6/lib/modules/drivers/via_drv.ko 
no:
sh-3.00# pwd
/mnt/sda12/programming/3D-DRI-wizard/craig/2d/usr/X11R6/lib/modules/drivers
sh-3.00# ls -1
ati_drv.o
atimisc_drv.o
i810_drv.o
savage_drv.o
via_drv.o
sh-3.00#

The wizard currently uses the via.ko from your unstripped kernelmodules.
The XvMC libraries are part of the corresponding DRI-dotpups installed by the wizard:
dri-unichrome.pup
dri-iXXX.pup
http://dotpups.de/dotpups/XServer/DRI/

So if you could send me the via.ko -kernelmodule ( from /lib/modules/2.6.16.7/char/drm/ ) from your unichrome-pack, I
would try to add it to the wizard :)
Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

If yes to all of the above, the only remaining component necessary is my version of libGL, which includes the very important libdrm.so.2.0.0.
I think your Wizard already includes this libGL version(?).
yes, is included.
Mark

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#7 Post by tempestuous »

I just sent all VIA files - 2D/DRI/DRM :D
In case I didn't mention it earlier, the updated 2D driver (from www.openchrome.org) is very important, it links to the 3D DRI driver.
Last edited by tempestuous on Sat 24 Jun 2006, 22:40, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

thanks.
Hmmm... has the same size as the one installed by the 3D-controlCenter.

Wait...

sh-3.00# modinfo via
filename: /lib/modules/2.6.16.7/char/drm/via.ko
author: Various
description: VIA Unichrome / Pro
license: GPL and additional rights
vermagic: 2.6.16.7 486 gcc-3.3
depends: drm,drm
sh-3.00#

So it already was in your old Kernel-collecion :)

This means, we had to find out, why the wizard does not work for dvw86.

dvw86, please try to install it with the 3D-Control-Center, reboot, then attach your /var/log/Xorg.0.log

Mark

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#9 Post by tempestuous »

Just checking ... before X launches, these modules are required:

- via-agp.ko (depends on agpgart.ko)
- via.ko (depends on drm.ko)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#10 Post by MU »

- via-agp.ko (depends on agpgart.ko)
- via.ko (depends on drm.ko)
via-agp.ko - this is the agp-port. If you have a via-graficscard, you do not automatically have a agp-chipset from via, that depends on the mainboard.
Puppy2 automatically tries to detect the correct agp-port, and loads the corresponding module then.

via.ko - This is the Direct Rendering Manager for the Kernel, that allows the Direct Rendering Interface from X.org to use accelleration.

Mark

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#11 Post by tempestuous »

Yes, that's right. I was talking specifically about dvw86's Epia system, which does have a VIA main chipset.

The VIA Unichrome graphics chip was designed mainly for onboard graphics with VIA mainboards, but I know there are a few Intel-based microATX mainboards which have the Unichrome graphics chip, and there are some (rare) standalone graphics cards with the Unichrome chip.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#12 Post by dvw86 »

Ok I'll try it again. One thing I remember is that the openchrome drivers do not download with the 3D-Control-Center. It errors out. Do you want me to try option "A" or "B"?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#13 Post by MU »

Try both if the first fails.

Mark
Last edited by MU on Sun 25 Jun 2006, 05:49, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#14 Post by MU »

The Dotpup with the unichrome-drivers was named wrong, renamed it to work with the 3D-Control-Center now.

Mark

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#15 Post by dvw86 »

Well the openchrome drivers download and install now, but direct rendering does not work. I have to leave for three days but will be back to keep working on this. I will also try to tweak a few things before I leave. If I get it working, I'll post before leaving. I can't attatch my log file as a tar.gz. The forum is giving me an error so I'll have to post a link to it.

http://www.usb-linux.com/puppy/log.tar.gz

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

according to the log, DRI is enabled.

If you get no accelleration, you might have a wrong libGL.so.
Please try both OpenGL 1.3 (freedesktop) in the 3D-Control-Center.

Please also run in a console
/usr/local/3D-Control-Center/resource/xdriinfo
and post the result here.
It should show something like:
Screen 0: atiogl_a
but not:
no direct rendering

Mark

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#17 Post by dvw86 »

I'm back.
If you get no accelleration, you might have a wrong libGL.so.
Please try both OpenGL 1.3 (freedesktop) in the 3D-Control-Center.
That was it. With the name change of the unichrome Dotpup and downloading the "other" OpenGL drivers it worked.

So with the VIA ML8000 Mini-ITX and Puppy 2.00+ here is what you need to enable Direct Rendering of the video card.

1. Download and install the 3D-Control-Center.pup

2. When you run the 3D Control Center choose "Try to autodetect graphicscard (Freedesktop-drivers)".

3. Then choose option "a".

4. Then choose the "openchrome" option.

5. Restart X

6. Run the 3D Control Center again and choose to install the "OpenGL 1.3, other version (Freedesktop-drivers)"

That's it. It should now work. Thanks for all your help!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

Great :!:
Thanks for posting your final solution :P
Mark

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#19 Post by tempestuous »

dvw86,
Now that you have DRI working in Puppy2, your Epia system (with custom enclosure!) would make an elegant media centre. Puppy2's kernel supports the V4L-DVB interface, for compatibility with the latest digital TV tuner cards.
Xine with XvMC can be used to view the TV image, and in theory, the XvMC acceleration feature should decompress digital TV streams as well as it decompresses DVD's. High Definition broadcasts would raise the CPU load, but I think the Epia will cope, especially in the U.S. where I understand the HDTV standard is the relatively modest 1280x720 spec.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#20 Post by dvw86 »

Yes, the xine-unichrome.pup plays DVDs quite nicely. I was starting to toy with the idea of recording and playing TV shows with this computer. I may have to make another case though to house a hard drive and TV card :wink:

Post Reply