Drivers / Modules help

Patrick Johnson pjohnson at imsav.com
Thu Oct 21 20:21:33 UTC 2004


Rick,

Thank you so much for responding back.

I looked under the /lib/modules/2.4.21-20.EL/kernel/drivers directory as
you said and I don't see the bttv module or the media directory
anywhere.
I ran "lsmod" and didn't see the bttv module listed.  I don't understand
why it is in the source directory but nowhere else to be found.
Also, I am running all this as root just to eliminate any permissions.

I again tried "modprobe bttv" as root and again it returned "modeprobe:
can't locate module bttv"

Was the kernel (2.4.21-20.EL) possibly built with out the module on my
system?  I'm guessing this maybe the case because I can find it in the
src directory but not in the lib/module directory.

Thanks again, 

Patrick


-----Original Message-----
From: redhat-install-list-bounces at redhat.com
[mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Rick
Stevens
Sent: Wednesday, October 20, 2004 11:48 AM
To: Getting started with Red Hat Linux
Subject: Re: Drivers / Modules help

Patrick Johnson wrote:
> I'm attempting to install a Hauppauge WINTV RADIO pci card (BT878 
> chipset) on my RedHat Enterprise Linux WS version 3.  The driver for
the 
> card is the bttv driver.  From my research about the driver it is 
> suppose to be built into the Linux kernel.  I'm running Kernel 
> 2.4.21-20EL-i686.

It's not built-in, it's a module.  Do an "lsmod" to see if it loaded.

>                     RedHat's hardware browser shows the card as a
video 
> capture card and defines the driver as bttv.  However the card is not 
> "mapped" to a device.  I tried running
> 
>  
> 
> % xawtv -noxv
> 
> And it returned
> 
> Can't open /dev/video0

That's possible.  By default, /dev/video is owned by root, group of root
and has 600 permissions.  This means you must be the root user to open
/dev/video0.  Try it again as the root user.

If you must run that as an unprivileged user, do this:

	% su -          (yes, that's "su dash")
	Password:       (put in the root password to become root)
	# chmod 666 /dev/video0
	# exit
	%

That makes you root, changes the permissions on /dev/video0 and changes
you back to the unprivileged user.  /dev/video0 should now be available
to you.

> I don't really now how to troubleshoot this as I'm still a novice
Linux 
> user.

Hang in there.  You'll get it.

> I looked under /lib/modules/<Kernel version>/Kernel/drivers and I
didn't 
> see the bttv module.  When I try to modprobe for bttv it returns an 
> error saying it can't locate the module.

Check "/lib/modules/`uname -r`/kernel/drivers/media/video".  Note that
there's no capital "K", and the "`uname -r`" is the same thing as your 
"<Kernel version>" bit.

Note that when you do modprobe, you must "modprobe bttv", not "modprobe
bttv.o" (don't include the ".o" bit).

> However, when I look under 
> /usr/src/linux-2.4.21-20.EL/drivers/media/video I do see the bttv
module 
> source.

Yes, that's the source.

> Do I need to rebuild the Kernel?

No.  The distribution kernel RPM includes the module pre-built.

>                                 I don't know how to tell if the bttv 
> driver is already there and I don't know how to rebuild the kernel 
> either.  I apologize if this is the wrong mailing list to be asking
this 
> type of question but if it is could you direct me to where I can get
help?

"lsmod" (as the root user) will display all of the modules that are
loaded.  The module itself lives in the directory I mentioned above.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-         If this is the first day of the rest of my life...         -
-                        I'm in BIG trouble!                         -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request at redhat.com
Subject: unsubscribe




More information about the Redhat-install-list mailing list