Hi,
I'm having problems accessing the Matrox Meteor framegrabber with a test program - I'm kinda new to Linux so please forgive me if some of the questions seem trivial. I've downloaded the V4L2 and meteor_v4l2 packages and did the following (I'll try to provide as much information as possible about what I did - the questions are in bold italics):
A) Installed Video for Linux 2
1) Enabled VFL as a module
2) Unpacked videodev20020411.tgz in /usr/src/linux
3) Copied videodev.h to /usr/include/linux
4) Did a "make modules;make modules_install" in /usr/src/linux
5) Appended /etc/conf.modules with:
options meteor_v4l2 unit_video=0,1
alias char-major-81 videodev
alias char-major-81-0 meteor_v4l2
alias char-major-81-1 meteor_v4l2
Question: I don't see the new file /proc/videodev. Is the installation procedure for V4L2 complete? I suspect the subsequent questions are related to the section.
B) Make Install Meteor_V4L2 driver
1) Do "tar zxfv videodev20020411.tgz" in /usr/local/src/meteor-1.5.4/
2) Did a "make install" in the same directory - following errors noted:
insmod drivers/char/videodevX.o
drivers/char/videodevX.o: init module: Device or resource busy
make: *** [install] Error 1
insmod drivers/char/v4l_compat.o
drivers/char/v4l_compat.o: unresolved symbol v4l2_v4l_compat_register
drivers/char/v4l_compat.o: unresolved symbol v4l2_video_std_confirm...
make: *** [install] Error 1
insmod drivers/char/meteor_v4l2.o
drivers/char/meteor_v4l2.o: unresolved symbol v4l2_timestamp_correct
drivers/char/meteor_v4l2.o: unresolved symbol v4l2_device_fromfile...
make: *** [insta!
! ll] Error 1
3) Also tried editing Makefile in /usr/src/linux/drivers/char and adding "meteor_v4l2" to the M_OBJS list and then doing a sequence of make commands - "make clean;make config","make dep","make". The files videodev.o, videodevX.o & v4l_compat.o appear in the .../char directory. Problem: Test program using system call "i=open("/dev/meteor_v4l20",O_RDONLY)" returns a failure to read the framegrabber.
Question: Is the failure to open the framegrabber and the errors in (2) due to the improper installation of V4L2 ? How should I proceed from here? If it's not due to V4L2, any idea where the errors are coming from? Does the assignment of the major device number matter in this case and is it fixed for the framegrabber? How do I check what major number I should use?
Thanks for your patience in reading this. Would appreciate any help anyone can give - need to get this up in 2 weeks.
Regards
Des
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more