LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2003, 11:03 PM   #1
sky260
LQ Newbie
 
Registered: Jun 2003
Distribution: Knoppix 3.2
Posts: 6

Rep: Reputation: 0
How to upgrade BTTV properly ?


Hello,

I run a Knoppix (Kernel version 2.4.20) and the embedded BTTV driver is 0.7.96

As my Pinnacle PCTV didn't work, I decided to upgrade my kernel and my BTTV drivers.

Here is what I did :

=> download kernel source (2.4.21)
=> apply patch found on bytesex.org/v4l/build.html ("kernel patch" link)

=> compile && install the new kernel (not necessary for bttv I believe but it was quite funny)

It worked perfectly.
Then, I decided to really upgrade bttv by downloading the 0.9.x version

I opened the tarball, untar it in my /home/~/files directory, ran make && make install : it worked perfectly

BUT

at the loading of the system, the old bttv is still loaded (I saw it in kern.log)

I think that the latest bttv only creates a few .o that are in a particular directory... including bttv.o... but the kernel still loads the old one in /kernel/media....

Do you know a way to force the kernel to load the latest bttv at startup ?

Thanks in advance... already spent a lot of hours without success

Frank

Last edited by sky260; 06-24-2003 at 11:21 PM.
 
Old 06-24-2003, 11:36 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
I think (not 100% sure) that you can tell it to use the newer bttv by passing 'v4l2=1' in the opitions when you load the bttv module.
 
Old 06-24-2003, 11:59 PM   #3
sky260
LQ Newbie
 
Registered: Jun 2003
Distribution: Knoppix 3.2
Posts: 6

Original Poster
Rep: Reputation: 0
I didn't work unfortunately

here is what I put in modules.conf :

#### Begin BTTV Config ####
alias char-major-81 bttv

options bttv card=39 pll=1 v4l2=1
(as you told me)

options tuner type=33 debug=1
options msp3400 once=1 simple=1
post-install bttv modprobe tuner; modprobe videodev
#### End BTTV Config ####

Maybe that is the wrong place ?
 
Old 06-25-2003, 12:09 AM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
try unloading the module 'modprobe -r bttv'
then reload it 'modprobe bttv card=39 pll=1 v4l2=1' and see what dmesg spits out at ya
 
Old 06-25-2003, 12:19 AM   #5
sky260
LQ Newbie
 
Registered: Jun 2003
Distribution: Knoppix 3.2
Posts: 6

Original Poster
Rep: Reputation: 0
Here is the result :

Warning: ignoring v4l2=1, no such parameter in this module
Module bttv loaded, with warnings
Using /lib/modules/2.4.21/kernel/drivers/media/video/tuner.o
insmod: a module named tuner already exists
/lib/modules/2.4.21/kernel/drivers/media/video/bttv.o: post-install bttv failed

The modules.conf seems to be the key... I tried to replace the 2 lines I mentioned in the previous post with something I found on the forum :

#tv config start
alias char-major-81 bttv
options bttv card=39 pll=1
options tuner type=33 debug=1
options msp3400 once=1 simple=1
post-install bttv modprobe tuner; modprobe videodev
#tv config end

And now (without rebooting) the result of what you suggested is :

Warning: ignoring v4l2=1, no such parameter in this module
Module bttv loaded, with warnings

... but this still is the old version

Moreover, in bttv path, there is a script called update which unloads the old version of the driver and loads the new one. Maybe I could adapt it to modules.conf ?

#!/bin/sh
source modules.sh
set -e

case "`hostname --short`" in
eskarina)
btopt="card=66"
;;
esac

xrmmod bttv
xrmmod btcx-risc
xrmmod video-buf

v4l2basic

xinsmod video-buf debug=0
xinsmod btcx-risc debug=0
xinsmod bttv bttv_debug=0 vbi_debug=0 irq_debug=0 \
fdsr=0 sloppy=1 chroma_agc=1 vbibufs=4 $btopt

I think that v4l2=1 can be passed to xinsmod... which is defined in another script (modules.sh) !!!

Frankly, it's pretty hard to configure...

Last edited by sky260; 06-25-2003 at 12:25 AM.
 
Old 06-25-2003, 12:25 AM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Yep. it is the old version.

Let's see if a new one got built. try 'locate bttv.o' and then do an 'ls -la /path/to/bttv.o' for each version you find.
 
Old 06-25-2003, 12:33 AM   #7
sky260
LQ Newbie
 
Registered: Jun 2003
Distribution: Knoppix 3.2
Posts: 6

Original Poster
Rep: Reputation: 0
Locate and ls -la gave me back

******USEFUL I SUPPOSE************

-rw-r--r-- 1 root root 94364 2003-06-25 04:48 /lib/modules/2.4.21/kernel/drivers/media/video/bttv.o

-rw-r--r-- 1 root root 103384 2003-06-25 05:00 /lib/modules/2.4.21/v4l2/bttv.o

(this is the latest version i'm quite sure)


******USELESS I SUPPOSE*********
/lib/modules/2.4.20-xfs/kernel/drivers/media/video/bttv.o
/home/sky/files/bttv-0.9.10/bttv.o
/usr/src/linux-2.4.21/drivers/media/video/bttv.o
 
Old 06-25-2003, 07:52 PM   #8
sky260
LQ Newbie
 
Registered: Jun 2003
Distribution: Knoppix 3.2
Posts: 6

Original Poster
Rep: Reputation: 0
But I still don't guess what to do
 
Old 06-17-2004, 04:23 PM   #9
benben
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by sky260
But I still don't guess what to do
I have the same problem now did you find a way to load now version of bttv ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AAARG! KDE not working properly after upgrade! bulldogzerofive Linux - Software 1 03-08-2005 10:34 PM
System won't boot properly knoppix doesn't initialize properly rodewan Linux - Software 0 01-23-2005 03:35 PM
Fonts don't work properly since upgrade to 10.1 Zoe F Mandriva 1 10-03-2004 12:04 AM
TV wonder bttv supercharged Linux - Newbie 3 02-23-2004 09:25 AM
Suse 9, RH9 wont install properly. Mandrake 9 wont boot properly? Help. l2ich84 Linux - Newbie 1 01-31-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration