Mailing List Archive

bttv driver
Hi all...my odyssey continues. I have managed to install X, ALSA, XMLTV,
LAME, and mythtv but when I run mythtv-setup it segfaults at input
connections, apparently because I have no /dev/video. I am assuming this
is probably because I have not properly installed my bttv driver. The
problem is, the website and docs are not very clear on the proper way of
installing the bttv driver. I read the READMEs, I had a /usr/src/linux
ready because of a previous kernel recompile, so I thought a simple make,
make install would work for the 0.7 bttv driver, it seemed like it worked,
but then I had a bunch of unresolved symbols and the module doesn't work.
I am willing to do it over or do it a different way, but would like some
guidance on the best way to install the bttv-driver and where I can get
good step-by-step instructions. I plan on putting all of this on my
website for future reference once I get it working...

Thanks!

Iohan
http://www.routex.net/modules.php?name=Forums&file=viewforum&f=4
Re: bttv driver [ In reply to ]
Thus spake Iohan Reyes:
> Hi all...my odyssey continues. I have managed to install X, ALSA, XMLTV,
> LAME, and mythtv but when I run mythtv-setup it segfaults at input
> connections, apparently because I have no /dev/video. I am assuming this
> is probably because I have not properly installed my bttv driver. The
> problem is, the website and docs are not very clear on the proper way of
> installing the bttv driver. I read the READMEs, I had a /usr/src/linux
> ready because of a previous kernel recompile, so I thought a simple make,
> make install would work for the 0.7 bttv driver, it seemed like it worked,
> but then I had a bunch of unresolved symbols and the module doesn't work.
> I am willing to do it over or do it a different way, but would like some
> guidance on the best way to install the bttv-driver and where I can get
> good step-by-step instructions. I plan on putting all of this on my
> website for future reference once I get it working...

The source tree that you had... did you configure, compile, and install
your currently running kernel from it? Also, when you went into the
configuration to add the bttv driver, did you make everything a module?

A good thing to try is often to do a make clean on your kernel tree,
make sure it's configured the way you want it, and then do a fresh
build, install it, and boot into it... Typically when you get
unresolved symbols like that, it indicates some sort of kernel mismatch.

--
Nathan Poznick <poznick@conwaycorp.net>

The censure of those who are opposed to us, is the highest commendation
that can be given us. - Seigneur de Saint-Evremond
Re: bttv driver [ In reply to ]
--On Sunday, April 06, 2003 3:04 PM -0500 Nathan Poznick
<poznick@conwaycorp.net> wrote:
>
> The source tree that you had... did you configure, compile, and install
> your currently running kernel from it? Also, when you went into the
> configuration to add the bttv driver, did you make everything a module?

Actually, I had recompiled and upgraded the kernel to 2.4 just after I
installed Debian 3.0. I did not patch it to include the bttv driver, but I
did enable Video4Linux support. I am assuming now that the correct way is
to patch it and recompile. I will try that. However, one of the things I
usually do is make everything built-in to the kernel and not use any
modules at all. It can probably be argued either way whether that is a
good or bad thing, but I have never had problems before doing it that way.

>
> A good thing to try is often to do a make clean on your kernel tree,
> make sure it's configured the way you want it, and then do a fresh
> build, install it, and boot into it... Typically when you get
> unresolved symbols like that, it indicates some sort of kernel mismatch.
>

Will try this. I wish the docs were clearer on how to patch the kernel
using the bttv driver 0.7. Maybe I'll try the 0.9 driver.


> --
> Nathan Poznick <poznick@conwaycorp.net>
RE: bttv driver [ In reply to ]
> <poznick@conwaycorp.net> wrote:
> >
> > The source tree that you had... did you configure, compile, and install
> > your currently running kernel from it? Also, when you went into the
> > configuration to add the bttv driver, did you make everything a module?
>
> Actually, I had recompiled and upgraded the kernel to 2.4 just after I
> installed Debian 3.0. I did not patch it to include the bttv driver, but I
> did enable Video4Linux support. I am assuming now that the correct way is
> to patch it and recompile. I will try that. However, one of the things I
> usually do is make everything built-in to the kernel and not use any
> modules at all. It can probably be argued either way whether that is a
> good or bad thing, but I have never had problems before doing it that way.

Compiling the bttv driver as a module allows you to setup certain parameters easily such as the card type and number of buffers. I suggest that this is probably the way you want to go in this case (unless you are quite fortunate and the defaults work OK)

> > A good thing to try is often to do a make clean on your kernel tree,
> > make sure it's configured the way you want it, and then do a fresh
> > build, install it, and boot into it... Typically when you get
> > unresolved symbols like that, it indicates some sort of kernel mismatch.
> >
>
> Will try this. I wish the docs were clearer on how to patch the kernel
> using the bttv driver 0.7. Maybe I'll try the 0.9 driver.

You shouldn't need to patch a standard 2.4.20 kernel to get the bttv driver working. I missed the first part of the thread so I don't know if you have some special requirements, but most people are OK just grabbing the 2.4 source and configuring v4l support and then choosing bt8xx drivers.
Re: bttv driver [ In reply to ]
Thus spake Iohan Reyes:
> Will try this. I wish the docs were clearer on how to patch the kernel
> using the bttv driver 0.7. Maybe I'll try the 0.9 driver.

You really shouldn't have to, the version included with the kernel
should be sufficiently recent to work. However, if you really want
to...

wget http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz
cd /usr/src/linux-2.4.20
zcat /path/to/patch-2.4.20-kraxel.gz | patch -p1

--
Nathan Poznick <poznick@conwaycorp.net>

Don't use our trashcan, it's only for apples!
Re: bttv driver [ In reply to ]
OK, maybe I'm a bigger newbie than I thought I was, but I did not see any
specific option in the kernel for bttv (does this mean they are built-into
Video For Linux?) , all I saw was the following:
<M> Video For Linux
Video For Linux --->
Radio Adapters --->

Then I go into Video For Linux....
[*] V4L information in proc filesystem (NEW)
--- Video Adapters
< > Mediavision Pro Movie Studio Video For Linux (NEW)
< > CPiA Video For Linux (NEW)

I originally had compiled everything to be built-in. I will try setting it
as a module next time. And how do I know if my bt848 card is being
recognized properly? It will show up during boot-time right (or dmesg)?
Because if that's the case, wouldn't it have shown up since I had already
compiled Video4Linux support and the drivers are built-in?

Thanks for all the help....

Iohan

--On Monday, April 07, 2003 8:43 AM -0500 Nathan Poznick
<poznick@conwaycorp.net> wrote:

> Thus spake Iohan Reyes:
>> Will try this. I wish the docs were clearer on how to patch the kernel
>> using the bttv driver 0.7. Maybe I'll try the 0.9 driver.
>
> You really shouldn't have to, the version included with the kernel
> should be sufficiently recent to work. However, if you really want
> to...
>
> wget http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz
> cd /usr/src/linux-2.4.20
> zcat /path/to/patch-2.4.20-kraxel.gz | patch -p1
>
> --
> Nathan Poznick <poznick@conwaycorp.net>
>
> Don't use our trashcan, it's only for apples!
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
RE: bttv driver [ In reply to ]
In my kernel configuration screen (stock 2.4.20), the first option under
"--- Video Adapters" is "BT848 for Linux".

FYI, it's possible that this option does not appear if you do not enable
"I2C support" and "I2C bit-banging interfaces" in the character device
section.

-Joe C.

> -----Original Message-----
> From: mythtv-users-bounces@snowman.net
> [mailto:mythtv-users-bounces@snowman.net]On Behalf Of Iohan Reyes
> Sent: Monday, April 07, 2003 10:06 AM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] bttv driver
>
>
> OK, maybe I'm a bigger newbie than I thought I was, but I did not see any
> specific option in the kernel for bttv (does this mean they are
> built-into
> Video For Linux?) , all I saw was the following:
> <M> Video For Linux
> Video For Linux --->
> Radio Adapters --->
>
> Then I go into Video For Linux....
> [*] V4L information in proc filesystem (NEW)
> --- Video Adapters
> < > Mediavision Pro Movie Studio Video For Linux (NEW)
> < > CPiA Video For Linux (NEW)
>
> I originally had compiled everything to be built-in. I will try
> setting it
> as a module next time. And how do I know if my bt848 card is being
> recognized properly? It will show up during boot-time right (or dmesg)?
> Because if that's the case, wouldn't it have shown up since I had already
> compiled Video4Linux support and the drivers are built-in?
>
> Thanks for all the help....
>
> Iohan
>
> --On Monday, April 07, 2003 8:43 AM -0500 Nathan Poznick
> <poznick@conwaycorp.net> wrote:
>
> > Thus spake Iohan Reyes:
> >> Will try this. I wish the docs were clearer on how to patch the kernel
> >> using the bttv driver 0.7. Maybe I'll try the 0.9 driver.
> >
> > You really shouldn't have to, the version included with the kernel
> > should be sufficiently recent to work. However, if you really want
> > to...
> >
> > wget http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz
> > cd /usr/src/linux-2.4.20
> > zcat /path/to/patch-2.4.20-kraxel.gz | patch -p1
> >
> > --
> > Nathan Poznick <poznick@conwaycorp.net>
> >
> > Don't use our trashcan, it's only for apples!
> >
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users@snowman.net
> > http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
>
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
RE: bttv driver [ In reply to ]
If you are in the kernel config screen and you go to the "help" button, it refers you to a readme document. Something like /Documentation/video/v4l/bttv

In there you can read up on all the kernel config options. In fact you can find a lot of documentation in there. Most of the kernel options have some text under the "help" button which refers you to the real documentation.

Sorry, don't have a linux machine on me to give you precise directions...

-----Original Message-----
From: Iohan Reyes [mailto:ijr@routex.net]
Sent: 07 April 2003 15:06
To: Discussion about mythtv
Subject: Re: [mythtv-users] bttv driver


OK, maybe I'm a bigger newbie than I thought I was, but I did not see any
specific option in the kernel for bttv (does this mean they are built-into
Video For Linux?) , all I saw was the following:
<M> Video For Linux
Video For Linux --->
Radio Adapters --->

Then I go into Video For Linux....
[*] V4L information in proc filesystem (NEW)
--- Video Adapters
< > Mediavision Pro Movie Studio Video For Linux (NEW)
< > CPiA Video For Linux (NEW)

I originally had compiled everything to be built-in. I will try setting it
as a module next time. And how do I know if my bt848 card is being
recognized properly? It will show up during boot-time right (or dmesg)?
Because if that's the case, wouldn't it have shown up since I had already
compiled Video4Linux support and the drivers are built-in?

Thanks for all the help....

Iohan

--On Monday, April 07, 2003 8:43 AM -0500 Nathan Poznick
<poznick@conwaycorp.net> wrote:

> Thus spake Iohan Reyes:
>> Will try this. I wish the docs were clearer on how to patch the kernel
>> using the bttv driver 0.7. Maybe I'll try the 0.9 driver.
>
> You really shouldn't have to, the version included with the kernel
> should be sufficiently recent to work. However, if you really want
> to...
>
> wget http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz
> cd /usr/src/linux-2.4.20
> zcat /path/to/patch-2.4.20-kraxel.gz | patch -p1
>
> --
> Nathan Poznick <poznick@conwaycorp.net>
>
> Don't use our trashcan, it's only for apples!
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users




_______________________________________________
mythtv-users mailing list
mythtv-users@snowman.net
http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
RE: bttv driver [ In reply to ]
Ahh! That did the trick. I did not even think about enabling I2C support
(nor do I have any idea what it is). That is why I never saw any BT848
option under Video For Linux. I will make sure to put this in my notes on
my website for future reference for others. I will recompile my kernel now
(remotely via SSH), but I won't be able to test mythtv until tonight.
Check it out on my website if you want to keep up on the progress. Also,
please feel free to register for a username login so that you can post
messages on the forum.

Thanks!

Iohan
http://www.routex.net/modules.php?name=Forums&file=index



--On Monday, April 07, 2003 10:32 AM -0400 "Joseph A. Caputo"
<jcaputo1@comcast.net> wrote:

> In my kernel configuration screen (stock 2.4.20), the first option under
> "--- Video Adapters" is "BT848 for Linux".
>
> FYI, it's possible that this option does not appear if you do not enable
> "I2C support" and "I2C bit-banging interfaces" in the character device
> section.
>
> -Joe C.
>
>> -----Original Message-----
>> From: mythtv-users-bounces@snowman.net
>> [mailto:mythtv-users-bounces@snowman.net]On Behalf Of Iohan Reyes
>> Sent: Monday, April 07, 2003 10:06 AM
>> To: Discussion about mythtv
>> Subject: Re: [mythtv-users] bttv driver
>>
>>
>> OK, maybe I'm a bigger newbie than I thought I was, but I did not see any
>> specific option in the kernel for bttv (does this mean they are
>> built-into
>> Video For Linux?) , all I saw was the following:
>> <M> Video For Linux
>> Video For Linux --->
>> Radio Adapters --->
>>
>> Then I go into Video For Linux....
>> [*] V4L information in proc filesystem (NEW)
>> --- Video Adapters
>> < > Mediavision Pro Movie Studio Video For Linux (NEW)
>> < > CPiA Video For Linux (NEW)
>>
>> I originally had compiled everything to be built-in. I will try
>> setting it
>> as a module next time. And how do I know if my bt848 card is being
>> recognized properly? It will show up during boot-time right (or dmesg)?
>> Because if that's the case, wouldn't it have shown up since I had already
>> compiled Video4Linux support and the drivers are built-in?
>>
>> Thanks for all the help....
>>
>> Iohan
>>
>> --On Monday, April 07, 2003 8:43 AM -0500 Nathan Poznick
>> <poznick@conwaycorp.net> wrote:
>>
>> > Thus spake Iohan Reyes:
>> >> Will try this. I wish the docs were clearer on how to patch the
>> >> kernel using the bttv driver 0.7. Maybe I'll try the 0.9 driver.
>> >
>> > You really shouldn't have to, the version included with the kernel
>> > should be sufficiently recent to work. However, if you really want
>> > to...
>> >
>> > wget http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz
>> > cd /usr/src/linux-2.4.20
>> > zcat /path/to/patch-2.4.20-kraxel.gz | patch -p1
>> >
>> > --
>> > Nathan Poznick <poznick@conwaycorp.net>
>> >
>> > Don't use our trashcan, it's only for apples!
>> >
>> > _______________________________________________
>> > mythtv-users mailing list
>> > mythtv-users@snowman.net
>> > http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users@snowman.net
>> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users