Discussion:
compilation mga_vid
Markus Hiereth
2006-07-04 17:09:32 UTC
Permalink
Hello,

I would like to compile the mga_vid driver of the MPlayer-1.0pre8
tar-archives.

I use an installation of xubuntu 6.06 with a precompiled kernel 2.6.15
and installed the linux-headers deb-packages linux-headers-2.6.15-23-386 and
linux-headers-2.6.15-23.

These are the first lines of the output on the screen..

***@lune:/usr/src/tar/MPlayer-1.0pre8/drivers# make
make mga_vid.ko mga_vid_test
make[1]: Entering directory `/usr/src/tar/MPlayer-1.0pre8/drivers'
make -C /lib/modules/`uname -r`/build
SUBDIRS=/usr/src/tar/MPlayer-1.0pre8/drivers modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.15-23-386'
CC [M] /usr/src/tar/MPlayer-1.0pre8/drivers/mga_vid.o
In Datei, eingefügt von include/linux/irq.h:22,
von include/asm/hardirq.h:6,
von include/linux/hardirq.h:7,
von include/linux/interrupt.h:11,
von include/linux/rcuref.h:36,
von include/linux/fs.h:12,
von include/linux/mm.h:15,
von /usr/src/tar/MPlayer-1.0pre8/drivers/mga_vid.c:42:
include/asm/irq.h:16:25: Fehler: irq_vectors.h: No such file or directory
In file included from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,


Another trial to compile mga_vid, with complete kernel-source package
2.6.15-7 installed, led to other problems (e.g. make modules und make
modules_install are stopped) due to errors in the package. Afterwards,
make for mga_vid was impossible too.

I attached the dmesg as it might be informative. How can I solve the
problems?

Thank You for advice.
Markus



----- Forwarded message from Markus Hiereth -----

Date: Sat, 01 Jul 2006 07:45:39 +0200

ich versuche gerade, in Zusammenhang mit der Installation des mplayers
den Treiber mga_vid zu kompilieren und dabei wird Ihre Datei irq.h
aufgerufen, die wiederum eine Datei irq_vectors.h einschließen möchte.
Ich habe zwar keinen Durchblick welche Rolle die Dateien irq.h und
irq_vectors.h spielen, aber das Dateipaar ist eben das erste, das in den
Fehlermeldungen von make auftaucht.

Information zum System:
Installiert ist Ubuntu 6.06 mit fertigkompiliertem Kernel 2.6.15. Da es
mir angeblich die Installation des Kernel-Source-Paketes erspart und auf
der Ubuntu-CD auch nichts anderes ist, habe ich zu dieser
Grundinstallation nur die Paket linux-headers-2.6.15-23-386 und
linux-headers-2.6.15-23 nachinstalliert.

Beim mplayer klappte das Kompilieren, nur meldet er beim Starten, dass
er für die Grafikdarstellung mga_vid benutzen möchte und diesen Treiber
habe ich noch nicht erzeugen können. So komme ich aktuell nur in den
Genuß der Tonspur meiner mpg- und avi-Dateien.

Vielleicht können Sie mir weiterhelfen. Viele Grüße

Markus Hiereth
Tamas, Gergely
2006-07-05 16:33:55 UTC
Permalink
Hi Marcus,

Try to compile following :
http://dice.mfa.kfki.hu/dl/mga-vid-2.6.15-rc5.tar.gz

Gergo
Attila Kinali
2006-07-05 16:46:05 UTC
Permalink
On Wed, 5 Jul 2006 18:33:55 +0200
Post by Tamas, Gergely
http://dice.mfa.kfki.hu/dl/mga-vid-2.6.15-rc5.tar.gz
Or try http://attila.kinali.ch/mga/mga_vid-svn-r241.tar.gz
I'm about to make a new release, but haven't fully tested the
code yet. I hope i'm ready this weekend.

Attila Kinali
--
心をこめて聞け心をこめて話せ
Tamas, Gergely
2006-07-05 18:36:06 UTC
Permalink
Hi!
Post by Attila Kinali
On Wed, 5 Jul 2006 18:33:55 +0200
Post by Tamas, Gergely
http://dice.mfa.kfki.hu/dl/mga-vid-2.6.15-rc5.tar.gz
Or try http://attila.kinali.ch/mga/mga_vid-svn-r241.tar.gz
I'm about to make a new release, but haven't fully tested the
code yet. I hope i'm ready this weekend.
Great. Any chances that you add udev support?

An old patch for 2.6.11 van be found at :
http://dice.mfa.kfki.hu/dl/mga-vid-2.6.11-udev.diff.gz

Thanks,
Gergely
Markus Hiereth
2006-07-05 06:08:24 UTC
Permalink
Hello Gergo and Attila,

A) thank You very much for You mga_vid source files.


B) I tried both of them, with
http://dice.mfa.kfki.hu/dl/mga-vid-2.6.15-rc5.tar.gz
I succeeded. with the module generated from
http://attila.kinali.ch/mga/mga_vid-svn-r241.tar.gz
under identical conditions (loaded manually with insmod) I got an error
message
Couldn't open driver: /dev/mga_vid

Probably this helps for further improvement.


C) Maybe I could help to update the documentation on
MPlayer-1.0pre8/DOCS/HTML/xx/output-trad.html#mga_vid

There are technical changes char-major now 83 as announced by both of
You and some instructions are probably not correct for my Linux
installation (Ubuntu / Debian):

DOCUMENT
CORRECTION/SUBSTITUTION/ADDITION

----------------- chgrp video
/dev/mga_vid
----------------- chmod g+w
/dev/mga_vid
mga_vid.o mga_vid.ko

/etc/modules.conf /etc/modprobe.conf
alias char-major-178 mga_vid alias char-major-83 mga_vid

Sequence 1.2.3.4.5 1., copying module into
/lib/modules/..., 5., 2.,3.,4.,

I come the the conclusion that a change of sequence is necessary as,
having compiled MPlayer as last step, I could not find the device
/dev/mga_vid anymore. Though it's quite strange, I regard it as possible
that it has been deleted during compilation. Probably You know what
really happened on my PC.

In case it helps, I would introduce the changes in into html and pass
them to the documentation team.


D)
One last thing I do not understand is the repeated appearance of the
mga_vid in the boot logging. (See attachment dmesg...)

Yours
Markus
Tamas, Gergely
2006-07-06 04:35:44 UTC
Permalink
Hi Marcus!
Post by Markus Hiereth
A) thank You very much for You mga_vid source files.
B) I tried both of them, with
http://dice.mfa.kfki.hu/dl/mga-vid-2.6.15-rc5.tar.gz
I succeeded. with the module generated from
http://attila.kinali.ch/mga/mga_vid-svn-r241.tar.gz
under identical conditions (loaded manually with insmod) I got an error
message
Couldn't open driver: /dev/mga_vid
mga_vid from Attila still misses udev support (see mail in this thread
for patch).
Post by Markus Hiereth
D)
One last thing I do not understand is the repeated appearance of the
mga_vid in the boot logging. (See attachment dmesg...)
You loaded and unloaded the module multiple times.

On insmod :

[...] Matrox MGA G200/G400/G450/G550 YUV Video interface v2.01 (c) Aaron Holtzman & A'rpi
[...] mga_vid: Found MGA G400/G450 at 0000:01:00.0
[...] mga_vid: MMIO at 0xe0b78000 framebuffer: 0xDC000000
[...] mga_vid: OPTION word: 0x50044120 mem: 0x10 SGRAM
[...] mga_vid: Detected 16MB card reporting 32 MB RAMSIZE, overriding
[...] mga_vid: detected RAMSIZE is 16 MB
[...] mga_vid: 1 supported cards found
[...] mga_vid: using major: 83 (assigned or default!)

And on rmmod :

[...] mga_vid: Cleaning up module

Gergo

Loading...