LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 11-10-2009, 03:17 AM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Missing modules after building new kernel?


Just built kernel 2.6.31 using kernel-package, a Debian thing which makes it into a *.deb file.

It works allright, but seems to be missing some modules neccessary to get the TV card working. Perhaps others, don't know.

Code:
lugo@fido:~$ locate saa7134|grep 2.6.31
/usr/local/src/linux-2.6.31.5/Documentation/video4linux/CARDLIST.saa7134
/usr/local/src/linux-2.6.31.5/Documentation/video4linux/README.saa7134
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/Kconfig
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/Makefile
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa6752hs.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-alsa.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-cards.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-core.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-dvb.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-empress.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-i2c.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-input.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-reg.h
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-ts.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-tvaudio.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-vbi.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134-video.c
/usr/local/src/linux-2.6.31.5/drivers/media/video/saa7134/saa7134.h
/usr/local/src/linux-2.6.31.5/drivers/staging/go7007/saa7134-go7007.c
So the stuff for the relevant saa7134 drivers seems to be present in the kernel.
Code:
lugo@fido:~$ locate saa7134|grep modules
/lib/modules/2.6.26-1-amd64/kernel/drivers/media/video/saa7134
/lib/modules/2.6.26-1-amd64/kernel/drivers/media/video/saa7134/saa6752hs.ko
/lib/modules/2.6.26-1-amd64/kernel/drivers/media/video/saa7134/saa7134-alsa.ko
/lib/modules/2.6.26-1-amd64/kernel/drivers/media/video/saa7134/saa7134-dvb.ko
/lib/modules/2.6.26-1-amd64/kernel/drivers/media/video/saa7134/saa7134-empress.ko
/lib/modules/2.6.26-1-amd64/kernel/drivers/media/video/saa7134/saa7134.ko
/lib/modules/2.6.26-2-amd64/kernel/drivers/media/video/saa7134
/lib/modules/2.6.26-2-amd64/kernel/drivers/media/video/saa7134/saa6752hs.ko
/lib/modules/2.6.26-2-amd64/kernel/drivers/media/video/saa7134/saa7134-alsa.ko
/lib/modules/2.6.26-2-amd64/kernel/drivers/media/video/saa7134/saa7134-dvb.ko
/lib/modules/2.6.26-2-amd64/kernel/drivers/media/video/saa7134/saa7134-empress.ko
/lib/modules/2.6.26-2-amd64/kernel/drivers/media/video/saa7134/saa7134.ko
/usr/src/linux-source-2.6.26/drivers/media/video/saa7134/modules.order
So the modules do not seem to have been built and shoved into /lib?? I.e. it's stuff for the previous 26 kernel.

Have run depmod -a but does not do any good. The desired modules do not seem to be in modconf, nor does 'modprobe saa7134' achieve anything. Thanks any help.

Err.... Here's how I made the new kernel:
Quote:
Downloaded kernel version 6.31 from the kernel source site. Put it in /usr/local/src and unpacked it. cd'd into the directory thus created. Then 'make oldconfig', a lot of questions, accepted the defaults on most of them except the ext4 stuff which I wanted. Then make-kpkg clean then make-kpkg --initrd --revision=custom.1.0 kernel_image. Then just installed the resulting *.deb file in the parent directory in the normal way.
Perhaps should have told it to make modules somehow??
 
Old 11-10-2009, 01:03 PM   #2
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 102

Rep: Reputation: 17
Quote:
Originally Posted by lugoteehalt View Post
Just built kernel 2.6.31 using kernel-package, a Debian thing which makes it into a *.deb file.
It works allright, but seems to be missing some modules neccessary to get the TV card working. Perhaps others, don't know.
Have run depmod -a but does not do any good. The desired modules do not seem to be in modconf, nor does 'modprobe saa7134' achieve anything. Thanks any help.
Err.... Here's how I made the new kernel:Perhaps should have told it to make modules somehow??
In the approximately 5 years, that I use Debian, it has never become clear to me, why I should use the 'Debian way to make and compile a kernel'. Surely I'm too stupid for that (and the same holds for 'initrd' or how that thing is called - presumably loading everything into RAM before starting the real system-boot).
I simply download the desired kernel-version from kernel.org, unpack it into /usr/src/...., change the symbolic link "linux" to point at that new location, run "make mrproper" in that directory (just to make sure), then copy the .config from my previous kernel into the new directory and then run "make xconfig". Yes 'oldconfig' could be easier and quicker, but I prefer to see all possibilities and their explanation in a full-screen environment. Then save the new .config, exit xconfig and run "make ARCH=x86_64 -j4" (I have a 2-core Athlon 64-bit). When that has finished without errors (as is in 99,9% of the compilations the case), the next command is "make modules_install" and - after copying the necessary files and adjusting the menu.list of GRUB - a soft-shutdown and restart.
I never was disappointed at that stage.... if I myself had not made a mistake in one of the kernel-settings. What was clearly discernable in the booting-messages!

If you want to stick to 'the Debian way', good luck!
 
Old 11-10-2009, 01:20 PM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
It might be worth it to go into the 'Build Directory' and running make menuconfig to see if (in hindsight) the kernel you built had the module that you were interested in enabled in it. In other words, though you cannot change it now without recompiling the kernel, why don't you look at the config to see if you enabled the driver?
 
Old 11-10-2009, 02:23 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
The last time I recompiled the kernel I vaguely remember something about make modules and make modules_install

But it was a while ago..... And (stupidly I didn't keep notes, or have lost them).

Maybe you have missed out some vital step. Please use your preferred internet search engine to find some up-to-date guides to recompiling the kernel, and pay attention to the above hints.

Sorry I can't help more precisely.
 
Old 11-10-2009, 02:36 PM   #5
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
http://howtoforge.com/kernel_compilation_debian_etch

I've used this one successfully in the past.
 
Old 11-10-2009, 05:50 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
What does this

cat /boot/config-$(uname -r) | grep 7134

output ?
And as a sidenote : you _can_ (re)compile single modules without recompiling the entire kernel. The simplest way is just not to run 'make clean' when recompiling.

edit: just wanted to mention that 2.6.31 is available in sid ...

Last edited by almatic; 11-10-2009 at 05:53 PM.
 
Old 11-10-2009, 10:54 PM   #7
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by almatic View Post
What does this

cat /boot/config-$(uname -r) | grep 7134

output ?
Great thanks all, all good stuff. It outputs nothing. cat /boot/config-$(uname -r) outputs a goodeal (sic).

Alright, so it simply has not been told to make the saa7134 modules??

If so, sorry to be lazy but what's the simplest way of compiling and installing the modules? I've had big trouble doing this in the past especially with lirc infra red zapper modules, as it happens.
 
Old 11-11-2009, 12:07 AM   #8
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
It will be your kernel config as suggested by radiodee1.

One trick I've found useful in the past is to start with the config from an official debian kernel (or one of your own that has the settings you need).

The procedure would look something like this

Code:
cd /usr/src
tar xjf kernel-source-2.6.31
cd kernel-source-2.6.31
cp /boot/config-2.6.30-foo .config
make oldconfig
make menuconfig
fakeroot make-kpkg clean
fakeroot make-kpkg --append-to-version=-bar --revision=1.0 --initrd kernel-image kernel-headers
Where foo and bar are whatever is appropriate for you.

Evo2.

Last edited by evo2; 11-11-2009 at 12:09 AM. Reason: s/Where foo/Where foo and bar
 
Old 11-11-2009, 10:09 AM   #9
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Original Poster
Rep: Reputation: 49
Have got television now, bit of a struggle. For the record:

Did as radiodee1 suggested and ran make menuconfig. The 'multimedia' stuff is labeled as 'new', so I might have originally vetoed it. So enabled a lot of stuff in that section. The computer then apparently autodetected the TV card, which it had not done before. Unhappily it got it wrong and buggered up detecting the tuner - this is just how it seemed.

So unloaded the TV card's desired module, saa7134, by using modconf and taking out the saa alsa module. And then put it back in again with the flags, if that's what they are called, card=78 tuner=54 . It is a PEAK pci card.

Then found alsa was not installed, bit odd. Installed it and got sound with TvTime, if anything works tvtime will.

Sorry to be prolix, but am always looking up threads like this myself.

Output of lspci:
Quote:
01:06.0 Multimedia controller: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder (rev d1)
Subsystem: KWorld Computer Co. Ltd. Device 7253
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at fdffe000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [40] Power Management version 2
Kernel driver in use: saa7134
Kernel modules: saa7134
Peak PEAK DVB-T Digital TV Hybrid PCI Card 138508AGPK

Incidentally the picture *may* have improved. New kernel better??

Last edited by lugoteehalt; 11-12-2009 at 06:09 AM. Reason: tredegar
 
Old 11-11-2009, 04:36 PM   #10
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Pleased you have it working.

Quote:
Sorry to be prolix, but am always looking up threads like this myself.
No apology is needed - follow-ups are always appreciated (as you obviously appreciate).

May I suggest you edit your post at #9 to include the output of lspci, lsusb or whatever is appropriate to your TV card so the web search engines have the correct information.

Google, for one, re-indexes LQ about every two minutes. So, better to mention the terms other people will be searching on (the hardware specifics).

That way others might find the answers they seek, faster

Best wishes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Building third-party modules into kernel KPOM Linux - Kernel 1 12-09-2007 11:14 AM
Building kernel modules problems drystan2005 Fedora 4 12-22-2006 10:08 PM
Building modules into a kernel DJNolz83 Linux - Kernel 4 09-13-2006 06:11 PM
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 04:07 AM
Building modules for the kernel... Nichole_knc Slackware 3 04-13-2004 09:28 AM


All times are GMT -5. The time now is 12:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration