• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 521
  • Last Modified:

Winnov Videum Installation on RedHat 7.3

This site describes some drivers created for use with Winnov Videum video capture cards, which are often used in conjunction with webcams.

http://www.thedirks.org/winnov

I've downloaded the latest drivers and prerequisite files.  I'm trying to install it on my 7.3 system, but apparently the Video4Linux software needs to first be installed.  To do this I need to "rebuild kernel and kernel modules if necessary."

http://www.thedirks.org/v4l2

As I've never had to recompile the kernel before (being the RedHat newbie that I am), I'd appreciate steps on how to do this for purposes of getting this driver up and running with my Winnov Videum AV PCI card.
0
Zoplax
Asked:
Zoplax
  • 4
  • 3
1 Solution
 
mikeymanCommented:
Ok Here goes in a nutshell...
Assuming you installed everything (kernel source and devs)

su -
cd /usr/src/linux-2.4
make xconfig
  **choose multimedia devices and Video4Linux is there.
make dep
make clean
make bzImage
make modules
make modules_install
cd /usr/src/linux-2.4/arch/i386/boot
cp bzImage /boot/newkernel

edit /etc/grub.conf (or /etc/lilo.conf if you instl lilo)
and copy one of the entries changing the name of the kernel to your newkernel.

After this is done test the config by rebooting. Probably something will go wrong the first couple of tries as it is not typically a newbie thing (hell even seasoned vets will find it a bit of a thing).

Also, a good place to look for documentation info is http://www.tldp.org/HOWTO/Kernel-HOWTO.html which is part of linuxdoc.org.  Happy compiling, and dont give up.

0
 
ZoplaxAuthor Commented:
Thanks for your info mikeyman; so far I've finished building the new kernel and have rebooted into it, so far so good; I'll now try to get the webcam stuff compiled and installed.
0
 
ZoplaxAuthor Commented:
Ok, I'm assuming that the video4linux components are already installed (I chose this when I rebuilt the kernel).

Now that the kernel is up and running, I'm trying to compile the videum drivers (http://www.thedirks.org/winnov).  However, when I try to do the make, I get the following errors:

grep: /usr/src/linux/include/linux/version.h: No such file or directory
make: /scripts/pathdown.sh: Command not found
/usr/share/locale/en_us.iso885915/LC_MESSAGES/make.moDIR=`pwd`; (cd /usr/src/linux; make SUBDIRS=$DIR modules)
make[1]: Entering directory `/usr/src/linux'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/usr/src/linux'
make: *** [here] Error 2

I checked the /usr/src/linux directory and there doesn't appear to be anything there, but there are /usr/src/linux-2.4 and /usr/src/linux-2.4.18-3 directories there, and they appear to contain include files and other stuff.

Should I delete the existing /usr/src/linux and try copying one of these existing directories as /usr/src/linux?  Or will this not help the problem?
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
mikeymanCommented:
NO!

Some developers look for /usr/src/linux but RedHat has chosen to make this /usr/src/linux-2.4.

To fix this (as root) you must make a symbolic link to the latest kernel source.

Stock RH7.3 Kernel was linux-2.4.18-4 and updated to 2.4.18-5

Assuming you are running stock I chose 4, you issue the following command  from within the /usr/src directory

ln -s linux-2.4.18-4 linux

This creates the symbolic link linux to the linux-2.4.18-4 directory.

Now your program will compile because it finds the source directory in /usr/src/linux.

When you upgrade the kernel, you need to delete the link and recreate it to point to the new source directory.

Good luck!
0
 
mikeymanCommented:
With regard to the above, you have linux-2.4.18-3, use that for creating the symlink. BTW...the linux-2.4 is a symlink to this as well.  For ease of future upgrades, you can just link linux to linux-2.4 so if you update the kernel with RPM's you dont have to do anything else.
0
 
ZoplaxAuthor Commented:
mikeyman, in the last few days off and on I've tried to reproduce the steps at

http://www.thedirks.org/winnov/winnov-setup.html

This is an example the developer of the Linux driver for my capture card / webcam created, where he installs the videodevX and winnov (driver) onto RedHat 6.2.

I've managed to follow most of the steps.  Recompiled the kernel, booted the new kernel, etc.

However, there seem to be some problems (the following is from the /var/messages file on my system):

===

Linux video capture interface: v1.00

  (this seems to indicate that the videodev component has loaded?)

...

depmod: *** Unresolved symbols in /lib/modules/2.4.18-3custom/kernel/drivers/media/video/videodev1.o.old

rc.sysinit: Finding module dependencies:  failed

===

One aspect of the procedure which didn't correspond to my 7.3 setup appears to be the /usr/linux/src/drivers/char/Makefile file; there he's got the step to:

"Change the line "M_OBJS :=" to "M_OBJS := wnv.o wnvvid.o"."

However, I found no such line in the Makefile in that directory.

I figure something must've gone wrong with the compile or with the device loading, or both for all I know, because when I try to run the xcaptest program, I get the following:

===

No video device "/dev/video0"
called v4l2_set_fps with fps=30
time per frame is: 134593880
time per frame is: 333667
time per frame is: 0
G_STD in capture_start: Bad file descriptor
G_FMT in capture_start: Bad file descriptor
REQBUFS in capture _start: Bad file descriptor

===

Any ideas?!  Thanks.  
0
 
ZoplaxAuthor Commented:
Thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now