Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
Hi friends, I have some doubts in video device driver. I have an Creative webcam with me. After inserting the webcam i have seen the following modules installed Code: Module ...
  1. #1
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308

    About Webcam module

    Hi friends,
    I have some doubts in video device driver. I have an Creative webcam with me. After inserting the webcam i have seen the following modules installed
    Code:
    Module              Size       Used by
    gspca_zc3xx      55936      0 
    gspca_main       29312      1   gspca_zc3xx
    videodev            41344      1   gspca_main
    v4l1_compat      22404      1   videodev
    I dont know which module is exactly for my webcam? i am seeing 5 extra module installed after inserting my webcam. I am confused. Can anyone help me?
    Thanks in advance...

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    The first module is the driver code specific for the hardware.
    The rest are more general routines that the driver depends on.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    so you mean this "gspca_zc3xx" is hardware driver?
    Thanks in advance...

  4. #4
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    It contains the parts that are specific to this hardware model.
    Together with the other, more generic, modules it forms the device driver.
    Debian GNU/Linux -- You know you want it.

  5. #5
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    ok finally you mean this is the module for my device....right?
    Thanks in advance...

  6. #6
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    Here i am facing a new problem. I tried to compile and install the gspca_main and gspca_zc3xx modules separately. I compiled them successfully. but i am getting error when inserting that modules

    Code:
    root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod gspca_zc3xx.ko 
    insmod: error inserting 'gspca_zc3xx.ko': -1 Unknown symbol in module
    root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod gspca_main.ko 
    insmod: error inserting 'gspca_main.ko': -1 Unknown symbol in module
    I think this both modules what some other modules to get insert in to kernel...But i am sure about that modules. Can anyone help me?
    Thanks in advance...

  7. #7
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    I cam to know that i need the other two modules to be installed to work this module..ie "videodev" and "v4l1-compat"...so i copiled that modules too...but i am getting the following error..
    I compiled all the required modules...ie gspca_main, gspca_zc3xx, v4l1-compat. But i am not getting this "videodev" module..I dont know why...

    My Makefile

    Code:
    obj-m += gspca_main.o
    obj-m += gspca_zc3xx.o
    obj-m += v4l1-compat.o
    obj-m += v4l2-dev.o
    obj-m += v4l2-ioctl.o
    obj-m += v4l2-device.o
     
    gspca_main-objs := gspca.o
    gspca_zc3xx-objs := zc3xx.o
    videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o
    
    all:
    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
    
    clean:
    make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
    if i compile i am getting the the modules as

    Code:
    sharief@sharief-desktop:~/Desktop/video/gspca$ make
    make -C /lib/modules/2.6.30/build M=/home/sharief/Desktop/video/gspca modules
    make[1]: Entering directory `/home/sharief/Desktop/kernelroot/linux-2.6.30'
    CC [M] /home/sharief/Desktop/video/gspca/gspca.o
    CC [M] /home/sharief/Desktop/video/gspca/zc3xx.o
    LD [M] /home/sharief/Desktop/video/gspca/gspca_main.o
    LD [M] /home/sharief/Desktop/video/gspca/gspca_zc3xx.o
    CC [M] /home/sharief/Desktop/video/gspca/v4l1-compat.o
    CC [M] /home/sharief/Desktop/video/gspca/v4l2-dev.o
    CC [M] /home/sharief/Desktop/video/gspca/v4l2-ioctl.o
    CC [M] /home/sharief/Desktop/video/gspca/v4l2-device.o
    Building modules, stage 2.
    MODPOST 6 modules
    CC /home/sharief/Desktop/video/gspca/gspca_main.mod.o
    LD [M] /home/sharief/Desktop/video/gspca/gspca_main.ko
    CC /home/sharief/Desktop/video/gspca/gspca_zc3xx.mod.o
    LD [M] /home/sharief/Desktop/video/gspca/gspca_zc3xx.ko
    CC /home/sharief/Desktop/video/gspca/v4l1-compat.mod.o
    LD [M] /home/sharief/Desktop/video/gspca/v4l1-compat.ko
    CC /home/sharief/Desktop/video/gspca/v4l2-dev.mod.o
    LD [M] /home/sharief/Desktop/video/gspca/v4l2-dev.ko
    CC /home/sharief/Desktop/video/gspca/v4l2-device.mod.o
    LD [M] /home/sharief/Desktop/video/gspca/v4l2-device.ko
    CC /home/sharief/Desktop/video/gspca/v4l2-ioctl.mod.o
    LD [M] /home/sharief/Desktop/video/gspca/v4l2-ioctl.ko
    
      I dont know why i am getting like this...?Please help me
    I am not getting the exact videodev module....please help me
    Thanks in advance...

  8. #8
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    That driver is part of the kernel. You shouldn't need to compile it. Here is the info on it that I get from the kernel.
    Code:
      │ CONFIG_VIDEO_DEV:                                                                    │  
      │                                                                                      │  
      │ V4L core support for video capture and overlay devices, webcams and                  │  
      │ AM/FM radio cards.                                                                   │  
      │                                                                                      │  
      │ This kernel includes support for the new Video for Linux Two API,                    │  
      │ (V4L2).                                                                              │  
      │                                                                                      │  
      │ Additional info and docs are available on the web at                                 │  
      │ <http://linuxtv.org>                                                                 │  
      │                                                                                      │  
      │ Documentation for V4L2 is also available on the web at                               │  
      │ <http://bytesex.org/v4l/>.                                                           │  
      │                                                                                      │  
      │ To compile this driver as a module, choose M here: the                               │  
      │ module will be called videodev.                                                      │  
      │                                                                                      │  
      │ Symbol: VIDEO_DEV [=m]                                                               │  
      │ Prompt: Video For Linux                                                              │  
      │   Defined at drivers/media/Kconfig:14                                                │  
      │   Depends on: HAS_IOMEM                                                              │  
      │   Location:                                                                          │  
      │     -> Device Drivers                                                                │  
      │       -> Multimedia devices                                                          │  
      │                                                                                      │
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  9. #9
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    Thanks for your information. yes i know it. But i am trying it for experiment. I want to compile it separately. That why i tried to compiled it....I am not gettig that videodev module....
    Thanks in advance...

  10. #10
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    It looks like it is part of the v4l-dvb drivers:

    v4l-dvb: 75184c1912a1 /linux/include/linux/

    I don't know if it cam be compiled separately, as there is no Makefile for that branch. You may have to compile the entire driver package.

    v4l-dvb: 75184c1912a1 /
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...