I also saw this when trying to install the module using the edgy
version. The problem, identified in the Debian upstream bug reports, is
that the edgy version is old and doesn't compile on the edgy kernel. The
fix is to use the latest (feisty) version, which has the fixes.

Here's what worked for me:

Install mga-vid-common from the normal edgy repository (avoids a libc
dependency in the fiesty version)

Download, compile and install the latest feisty mga-vid-source. You can
ignore the old README directions and use the Debian module tools to make
the module.

e.g. 
wget 
http://mirrors.kernel.org/ubuntu/pool/universe/m/mga-vid/mga-vid-source_1.55-1.2_i386.deb
dpgk -i mga-vid-source_1.55-1.2_i386.deb
cd /usr/src

m-a update,prepare
m-a a-i mga-vid
depmod -a

# test it out
modprobe mga_vid
tail /var/log/syslog

Dec 19 20:33:28 atlas kernel: [  349.105711] Matrox MGA G200/G400/G450/G550 YUV 
Video interface v2.01 (c) Aaron Holtzman & A'rpi
Dec 19 20:33:28 atlas kernel: [  349.105746] mga_vid: Found MGA G400/G450 at 
0000:01:00.0
Dec 19 20:33:28 atlas kernel: [  349.105814] mga_vid: MMIO at 0xf6050000 
framebuffer: 0xE2000000
Dec 19 20:33:28 atlas kernel: [  349.105829] mga_vid: OPTION word: 0x50044120  
mem: 0x10  SGRAM
Dec 19 20:33:28 atlas kernel: [  349.105839] mga_vid: detected RAMSIZE is 32 MB
Dec 19 20:33:28 atlas kernel: [  349.105847] mga_vid: 1 supported cards found
Dec 19 20:33:28 atlas kernel: [  349.105986] mga_vid: using major: 83 (assigned 
or default!)

# all is good

The only issue I found is that the 1.55-1.2 module creates its device as
/dev/mga_vid0 rather than the /dev/mga_vid that mga_vid_test and mplayer
expect.

I added this line to /etc/modutils/mga-vid-common to fix that issue:
post-install mga_vid ln --force -s /dev/mga_vid0 /dev/mga_vid

One last thing is that I found the output of mga_vid_test garbled when I
ran it at a text-mode console but when I used a framebuffer console
(e.g. vga=0x305 in the kernel boot parameter line), the Matrox output
was correct. It also worked with mplayer as expected (which was the
desired end-result).

Regards,
Tim

-- 
mga-vid-source fails to compile
https://launchpad.net/bugs/64632

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to