LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-27-2014, 08:23 PM   #1
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Rep: Reputation: 1
I'm getting an error while trying to insert a module. What am I doing wrong?


I'm running slackware 14.1 and I'm trying to install a DVR card for zoneminder. The card is supposed to use BTTV. This is the error I get when trying to set it up.

modprobe: ERROR: could not insert 'bttv': Invalid argument

I tried:

modprobe bttv

modprobe bttv card=150,150

modprobe bttv tuner type=150,150
 
Old 07-27-2014, 10:31 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
You are doing this as root, yes?

What does
Code:
modprobe -l | grep bttv
return?
 
Old 07-28-2014, 07:29 AM   #3
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
I get an error. Also I'm running it as root.

Code:
modprobe: invalid option -- 'l'
 
Old 07-28-2014, 09:27 PM   #4
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
try this instead:
Code:
find /lib*/modules/`uname -r` -type f -iname "*bttv*"
to see if the module for your currently running module is installed.
 
Old 07-28-2014, 11:14 PM   #5
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
Looks like it's there.

Code:
/lib/modules/3.14.12/kernel/drivers/media/pci/bt8xx/bttv.ko
modinfo bttv shows this.

Code:
version:        0.9.19
license:        GPL
author:         Ralph Metzler & Marcus Metzler & Gerd Knorr
description:    bttv - v4l/v4l2 driver module for bt848/878 based cards
srcversion:     0DCFA15EE97DB4AB53FA3F2
alias:          pci:v0000109Ed0000036Csv*sd*bc*sc*i*
alias:          pci:v0000109Ed0000036Fsv*sd*bc*sc*i*
alias:          pci:v0000109Ed0000036Esv*sd*bc*sc*i*
alias:          pci:v0000109Ed00000351sv*sd*bc*sc*i*
alias:          pci:v0000109Ed00000350sv*sd*bc*sc*i*
depends:        videobuf-core,videobuf-dma-sg,i2c-core,videodev,rc-core,v4l2-common,tveeprom,btcx-risc,i2c-algo-bit
intree:         Y
vermagic:       3.14.12 SMP mod_unload
Then a lot of parameters for the module.
 
Old 07-29-2014, 02:59 AM   #6
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Try

sudo insmod /lib/modules/3.14.12/kernel/drivers/media/pci/bt8xx/bttv.ko

If that works, I suspect your problem has something to do with module dependencies rather than the bttv module itself.
 
Old 07-29-2014, 10:12 AM   #7
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94

Original Poster
Rep: Reputation: 1
Code:
insmod: ERROR: could not insert module /lib/modules/3.14.12/kernel/drivers/media/pci/bt8xx/bttv.ko: Unknown symbol in module
dmesg shows:

Code:
[   79.047495] bttv: Unknown symbol videobuf_streamoff (err 0)
[   79.047511] bttv: Unknown symbol v4l2_fh_exit (err 0)
[   79.047528] bttv: Unknown symbol videobuf_poll_stream (err 0)
[   79.047540] bttv: Unknown symbol video_ioctl2 (err 0)
[   79.047552] bttv: Unknown symbol v4l2_get_timestamp (err 0)
[   79.047587] bttv: Unknown symbol v4l2_ctrl_radio_filter (err 0)
[   79.047618] bttv: Unknown symbol v4l2_ctrl_add_handler (err 0)
[   79.047630] bttv: Unknown symbol v4l2_fh_del (err 0)
[   79.047643] bttv: Unknown symbol videobuf_dma_free (err 0)
[   79.047655] bttv: Unknown symbol v4l2_fh_add (err 0)
[   79.047671] bttv: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
[   79.047683] bttv: Unknown symbol videobuf_reqbufs (err 0)
[   79.047700] bttv: Unknown symbol btcx_sort_clips (err 0)
[   79.047714] bttv: Unknown symbol videobuf_waiton (err 0)
[   79.047731] bttv: Unknown symbol videobuf_queue_is_busy (err 0)
[   79.047743] bttv: Unknown symbol videobuf_dqbuf (err 0)
[   79.047769] bttv: Unknown symbol btcx_screen_clips (err 0)
[   79.047783] bttv: Unknown symbol btcx_align (err 0)
[   79.047799] bttv: Unknown symbol v4l2_ctrl_handler_log_status (err 0)
[   79.047811] bttv: Unknown symbol v4l2_ctrl_handler_setup (err 0)
[   79.047840] bttv: Unknown symbol video_devdata (err 0)
[   79.047855] bttv: Unknown symbol btcx_calc_skips (err 0)
[   79.047883] bttv: Unknown symbol v4l2_ctrl_find (err 0)
[   79.047909] bttv: Unknown symbol videobuf_stop (err 0)
[   79.047923] bttv: Unknown symbol rc_keyup (err 0)
[   79.047936] bttv: Unknown symbol btcx_riscmem_alloc (err 0)
[   79.047949] bttv: Unknown symbol v4l2_ctrl_new_custom (err 0)
[   79.047962] bttv: Unknown symbol tveeprom_read (err 0)
[   79.047974] bttv: Unknown symbol btcx_riscmem_free (err 0)
[   79.047985] bttv: Unknown symbol videobuf_queue_sg_init (err 0)
[   79.047997] bttv: Unknown symbol rc_keydown_notimeout (err 0)
[   79.048009] bttv: Unknown symbol videobuf_dma_unmap (err 0)
[   79.048020] bttv: Unknown symbol videobuf_read_stream (err 0)
[   79.048032] bttv: Unknown symbol videobuf_sg_alloc (err 0)
[   79.048045] bttv: Unknown symbol rc_register_device (err 0)
[   79.048057] bttv: Unknown symbol videobuf_querybuf (err 0)
[   79.048069] bttv: Unknown symbol rc_keydown (err 0)
[   79.048081] bttv: Unknown symbol v4l2_ctrl_subscribe_event (err 0)
[   79.048092] bttv: Unknown symbol v4l2_fh_init (err 0)
[   79.048103] bttv: Unknown symbol v4l2_event_pending (err 0)
[   79.048114] bttv: Unknown symbol video_unregister_device (err 0)
[   79.048125] bttv: Unknown symbol videobuf_qbuf (err 0)
[   79.048140] bttv: Unknown symbol video_device_alloc (err 0)
[   79.048155] bttv: Unknown symbol videobuf_read_one (err 0)
[   79.048169] bttv: Unknown symbol rc_free_device (err 0)
[   79.048180] bttv: Unknown symbol v4l2_ctrl_s_ctrl (err 0)
[   79.048193] bttv: Unknown symbol v4l2_device_register (err 0)
[   79.048216] bttv: Unknown symbol rc_allocate_device (err 0)
[   79.048240] bttv: Unknown symbol videobuf_iolock (err 0)
[   79.047495] bttv: Unknown symbol videobuf_streamoff (err 0)
[   79.047511] bttv: Unknown symbol v4l2_fh_exit (err 0)
[   79.047528] bttv: Unknown symbol videobuf_poll_stream (err 0)
[   79.047540] bttv: Unknown symbol video_ioctl2 (err 0)
[   79.047552] bttv: Unknown symbol v4l2_get_timestamp (err 0)
[   79.047587] bttv: Unknown symbol v4l2_ctrl_radio_filter (err 0)
[   79.047618] bttv: Unknown symbol v4l2_ctrl_add_handler (err 0)
[   79.047630] bttv: Unknown symbol v4l2_fh_del (err 0)
[   79.047643] bttv: Unknown symbol videobuf_dma_free (err 0)
[   79.047655] bttv: Unknown symbol v4l2_fh_add (err 0)
[   79.047671] bttv: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
[   79.047683] bttv: Unknown symbol videobuf_reqbufs (err 0)
[   79.047700] bttv: Unknown symbol btcx_sort_clips (err 0)
[   79.047714] bttv: Unknown symbol videobuf_waiton (err 0)
[   79.047731] bttv: Unknown symbol videobuf_queue_is_busy (err 0)
[   79.047743] bttv: Unknown symbol videobuf_dqbuf (err 0)
[   79.047769] bttv: Unknown symbol btcx_screen_clips (err 0)
[   79.047783] bttv: Unknown symbol btcx_align (err 0)
[   79.047799] bttv: Unknown symbol v4l2_ctrl_handler_log_status (err 0)
[   79.047811] bttv: Unknown symbol v4l2_ctrl_handler_setup (err 0)
[   79.047840] bttv: Unknown symbol video_devdata (err 0)
[   79.047855] bttv: Unknown symbol btcx_calc_skips (err 0)
[   79.047883] bttv: Unknown symbol v4l2_ctrl_find (err 0)
[   79.047909] bttv: Unknown symbol videobuf_stop (err 0)
[   79.047923] bttv: Unknown symbol rc_keyup (err 0)
[   79.047936] bttv: Unknown symbol btcx_riscmem_alloc (err 0)
[   79.047949] bttv: Unknown symbol v4l2_ctrl_new_custom (err 0)
[   79.047962] bttv: Unknown symbol tveeprom_read (err 0)
[   79.047974] bttv: Unknown symbol btcx_riscmem_free (err 0)
[   79.047985] bttv: Unknown symbol videobuf_queue_sg_init (err 0)
[   79.047997] bttv: Unknown symbol rc_keydown_notimeout (err 0)
[   79.048009] bttv: Unknown symbol videobuf_dma_unmap (err 0)
[   79.048020] bttv: Unknown symbol videobuf_read_stream (err 0)
[   79.048032] bttv: Unknown symbol videobuf_sg_alloc (err 0)
[   79.048045] bttv: Unknown symbol rc_register_device (err 0)
[   79.048057] bttv: Unknown symbol videobuf_querybuf (err 0)
[   79.048069] bttv: Unknown symbol rc_keydown (err 0)
[   79.048081] bttv: Unknown symbol v4l2_ctrl_subscribe_event (err 0)
[   79.048092] bttv: Unknown symbol v4l2_fh_init (err 0)
[   79.048103] bttv: Unknown symbol v4l2_event_pending (err 0)
[   79.048114] bttv: Unknown symbol video_unregister_device (err 0)
[   79.048125] bttv: Unknown symbol videobuf_qbuf (err 0)
[   79.048140] bttv: Unknown symbol video_device_alloc (err 0)
[   79.048155] bttv: Unknown symbol videobuf_read_one (err 0)
[   79.048169] bttv: Unknown symbol rc_free_device (err 0)
[   79.048180] bttv: Unknown symbol v4l2_ctrl_s_ctrl (err 0)
[   79.048193] bttv: Unknown symbol v4l2_device_register (err 0)
[   79.048216] bttv: Unknown symbol rc_allocate_device (err 0)
[   79.048240] bttv: Unknown symbol videobuf_iolock (err 0)
 
Old 07-29-2014, 02:58 PM   #8
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Looks to me that your kernel is built without support for some of the modules that bttv (or maybe bttv itself) needs to control. C think if you compiled a new kernel, explicitly setting support for bttv, that this problem would probably be resolved.

Last night on my Slackware laptop, I was able to modprobe bttv without error, and that was with the default huge kernel config. What distro are you on, and can you recompile the kernel?
 
  


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
cannot able to insert the driver module rajagopalviswanath Linux - Newbie 2 06-19-2010 11:22 AM
What is the error "invalid module format" and "insert kernel module"? shayori Linux - Newbie 8 02-25-2010 03:48 AM
insert module failure iansoundz Linux - General 10 07-05-2005 07:21 PM
insert module problem euslisu Fedora 8 02-07-2005 05:45 AM
Can't insert module into kernel swamysk Linux - Newbie 14 08-22-2003 05:27 PM

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

All times are GMT -5. The time now is 08:05 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