Linux - Kernel This forum is for all discussion relating to the Linux kernel.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-27-2014, 08:23 PM
#1
Member
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94
Rep:
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
07-27-2014, 10:31 PM
#2
Senior Member
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077
You are doing this as root, yes?
What does
Code:
modprobe -l | grep bttv
return?
07-28-2014, 07:29 AM
#3
Member
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94
Original Poster
Rep:
I get an error. Also I'm running it as root.
Code:
modprobe: invalid option -- 'l'
07-28-2014, 09:27 PM
#4
Senior Member
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077
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.
07-28-2014, 11:14 PM
#5
Member
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94
Original Poster
Rep:
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.
07-29-2014, 02:59 AM
#6
Senior Member
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077
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.
07-29-2014, 10:12 AM
#7
Member
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 94
Original Poster
Rep:
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)
07-29-2014, 02:58 PM
#8
Senior Member
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077
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?
All times are GMT -5. The time now is 08:05 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News