All of lore.kernel.org
 help / color / mirror / Atom feed
* About Webcam module
@ 2009-09-11  7:20 Niamathullah sharief
       [not found] ` <b89eadb20909110234v2b8ee579nc19eed163cc77463@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Niamathullah sharief @ 2009-09-11  7:20 UTC (permalink / raw)
  To: kernelnewbies; +Cc: video4linux-list

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

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?
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
       [not found] ` <b89eadb20909110234v2b8ee579nc19eed163cc77463@mail.gmail.com>
@ 2009-09-11 12:07   ` Niamathullah sharief
  2009-09-12  6:24     ` Jean-Francois Moine
  0 siblings, 1 reply; 8+ messages in thread
From: Niamathullah sharief @ 2009-09-11 12:07 UTC (permalink / raw)
  To: Steven Yao; +Cc: kernelnewbies, video4linux-list

No i am getting the following error

root@sharief-desktop:/home/sharief# rmmod gspca_zc3xx
>
ERROR: Module gspca_zc3xx is in use
>
root@sharief-desktop:/home/sharief# rmmod gspca_main
>
ERROR: Module gspca_main is in use by gspca_zc3xx
>
root@sharief-desktop:/home/sharief#


So i am confused how to check.
if i check through "module -d "modulename". I am following things

sharief@sharief-desktop:~$ modinfo -d gspca_zc3xx
>
GSPCA ZC03xx/VC3xx USB Camera Driver
>
sharief@sharief-desktop:~$ modinfo -d gspca_main
>
GSPCA USB Camera Driver
>
sharief@sharief-desktop:~$ modinfo -d videodev
>
Device registrar for Video4Linux drivers v2
>
sharief@sharief-desktop:~$ modinfo -d v4l1_compat
>
v4l(1) compatibility layer for v4l2 drivers.
>
sharief@sharief-desktop:~$
>

So first two things are showing as camera driver. bur how it is possible.
kindly help me

>


>
> 2009/9/11 Steven Yao <yaohaiping.linux@gmail.com>

> Hi Niamathullah sharief,
>
>    i think you can use rmmod  to test which module is exactly for your
> webcam.
>
> Best regards
> Steven Yao
>
> 2009/9/11 Niamathullah sharief <newbiesha@gmail.com>
>
>> 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
>>
>> 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?
>>
>>
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
  2009-09-11 12:07   ` Niamathullah sharief
@ 2009-09-12  6:24     ` Jean-Francois Moine
  2009-09-14 18:00       ` Niamathullah sharief
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Francois Moine @ 2009-09-12  6:24 UTC (permalink / raw)
  To: Niamathullah sharief; +Cc: Steven Yao, kernelnewbies, video4linux-list

On Fri, 11 Sep 2009 17:37:19 +0530
Niamathullah sharief <newbiesha@gmail.com> wrote:

	[snip]
> sharief@sharief-desktop:~$ modinfo -d gspca_zc3xx
> >
> GSPCA ZC03xx/VC3xx USB Camera Driver
> >
> sharief@sharief-desktop:~$ modinfo -d gspca_main
> >
> GSPCA USB Camera Driver
> >
> sharief@sharief-desktop:~$ modinfo -d videodev
> >
> Device registrar for Video4Linux drivers v2
> >
> sharief@sharief-desktop:~$ modinfo -d v4l1_compat
> >
> v4l(1) compatibility layer for v4l2 drivers.
> >
> sharief@sharief-desktop:~$
> >
> 
> So first two things are showing as camera driver. bur how it is
> possible. kindly help me

Hi,

The driver of a USB device is easily found looking at
	/lib/modules/`uname -r`/modules.usbmap

So, your driver is gspca_zc3xx. Then, this module uses the gspca
framework, i.e it calls functions of the module gspca_main. This last
one calls functions of the common video module videodev. Then again, if
v4l1 compatibility is enabled, videodev calls functions of v4l1_compat.

lsmod shows all that directly:

Module              Size   Used by
gspca_zc3xx        55936   0
gspca_main         29312   1   gspca_zc3xx
videodev           41344   1   gspca_main 
v4l1_compat        22404   1   videodev

Regards.

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
  2009-09-12  6:24     ` Jean-Francois Moine
@ 2009-09-14 18:00       ` Niamathullah sharief
  2009-09-14 18:28         ` Jean-Francois Moine
  0 siblings, 1 reply; 8+ messages in thread
From: Niamathullah sharief @ 2009-09-14 18:00 UTC (permalink / raw)
  To: Jean-Francois Moine, kernelnewbies, video4linux-list

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


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?





On Sat, Sep 12, 2009 at 11:54 AM, Jean-Francois Moine <moinejf@free.fr>wrote:

> On Fri, 11 Sep 2009 17:37:19 +0530
> Niamathullah sharief <newbiesha@gmail.com> wrote:
>
>        [snip]
> > sharief@sharief-desktop:~$ modinfo -d gspca_zc3xx
> > >
> > GSPCA ZC03xx/VC3xx USB Camera Driver
> > >
> > sharief@sharief-desktop:~$ modinfo -d gspca_main
> > >
> > GSPCA USB Camera Driver
> > >
> > sharief@sharief-desktop:~$ modinfo -d videodev
> > >
> > Device registrar for Video4Linux drivers v2
> > >
> > sharief@sharief-desktop:~$ modinfo -d v4l1_compat
> > >
> > v4l(1) compatibility layer for v4l2 drivers.
> > >
> > sharief@sharief-desktop:~$
> > >
> >
> > So first two things are showing as camera driver. bur how it is
> > possible. kindly help me
>
> Hi,
>
> The driver of a USB device is easily found looking at
>        /lib/modules/`uname -r`/modules.usbmap
>
> So, your driver is gspca_zc3xx. Then, this module uses the gspca
> framework, i.e it calls functions of the module gspca_main. This last
> one calls functions of the common video module videodev. Then again, if
> v4l1 compatibility is enabled, videodev calls functions of v4l1_compat.
>
> lsmod shows all that directly:
>
> Module              Size   Used by
> gspca_zc3xx        55936   0
> gspca_main         29312   1   gspca_zc3xx
> videodev           41344   1   gspca_main
> v4l1_compat        22404   1   videodev
>
> Regards.
>
> --
> Ken ar c'hentań |             ** Breizh ha Linux atav! **
> Jef             |               http://moinejf.free.fr/
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
  2009-09-14 18:00       ` Niamathullah sharief
@ 2009-09-14 18:28         ` Jean-Francois Moine
  2009-09-15  2:23           ` Niamathullah sharief
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Francois Moine @ 2009-09-14 18:28 UTC (permalink / raw)
  To: Niamathullah sharief; +Cc: kernelnewbies, video4linux-list

On Mon, 14 Sep 2009 23:30:27 +0530
Niamathullah sharief <newbiesha@gmail.com> wrote:

> 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
> 
> 
> 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?

Indeed, the 2 modules videodev and v4l1_compat must be loaded prior to
load first gspca_main and then gspca_zc3xx, as shown by lsmod (below).

Usually, insmod is not directly used. You must use modprobe which looks
at the symbols and loads the required modules.

> On Sat, Sep 12, 2009 at 11:54 AM, Jean-Francois Moine
> <moinejf@free.fr>wrote:
> > 
> > So, your driver is gspca_zc3xx. Then, this module uses the gspca
> > framework, i.e it calls functions of the module gspca_main. This
> > last one calls functions of the common video module videodev. Then
> > again, if v4l1 compatibility is enabled, videodev calls functions
> > of v4l1_compat.
> >
> > lsmod shows all that directly:
> >
> > Module              Size   Used by
> > gspca_zc3xx        55936   0
> > gspca_main         29312   1   gspca_zc3xx
> > videodev           41344   1   gspca_main
> > v4l1_compat        22404   1   videodev


-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
  2009-09-14 18:28         ` Jean-Francois Moine
@ 2009-09-15  2:23           ` Niamathullah sharief
       [not found]             ` <41d311580909160826v7ab50508k96ed1035558263f8@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Niamathullah sharief @ 2009-09-15  2:23 UTC (permalink / raw)
  To: Jean-Francois Moine, kernelnewbies, video4linux-list

Yes thank you..Now i am not getting my modules exactly. 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

*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


* **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
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
       [not found]             ` <41d311580909160826v7ab50508k96ed1035558263f8@mail.gmail.com>
@ 2009-09-16 16:57               ` Niamathullah sharief
       [not found]                 ` <41d311580909161827m3d8d59aam37b1a22396799335@mail.gmail.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Niamathullah sharief @ 2009-09-16 16:57 UTC (permalink / raw)
  To: Pei Lin; +Cc: kernelnewbies, video4linux-list

Yes thank you...Its working fine...but i am having some doubt

Insmod is working fine. But modprobe is not working properly..I know
modprobe will install all necessary dependent modules. But in this case all
dependent modules are already installed...But i dont know why its happening
here..Please help me..see below

root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe v4l1_compat

> *root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe videodev
> *

*root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe gspca_main
> *

*FATAL: Module gspca_main not found.
> *

*root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe
> gspca_zc3xx
> *

*FATAL: Module gspca_zc3xx not found.
> *

*root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod
> gspca_main.ko
> *

*root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod
> gspca_zc3xx.ko
> *

*root@sharief-desktop:/home/sharief/Desktop/video/gspca#*


 Please help me....what will be the error

>
>
On Wed, Sep 16, 2009 at 8:56 PM, Pei Lin <telent997@gmail.com> wrote:

> 2009/9/15 Niamathullah sharief <newbiesha@gmail.com>:
> >
> > Yes thank you..Now i am not getting my modules exactly. 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
> >>
> >> 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
> >>
> what is the result u want to get ?
> Is it to make one videodev.ko file?
> So it should be like this:
> obj-m += gspca_main.o
> obj-m += gspca_zc3xx.o
> obj-m += videodev.o
> gspca_main-objs := gspca.o
> gspca_zc3xx-objs := zc3xx.o
> videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o
>
> u need read the document about kbuild,module and makefile
> http://lxr.linux.no/linux+v2.6.31/Documentation/kbuild/makefiles.txt
>
> >>
> >> 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
> >
> >
> >>  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
> >
> >
> >
> >
>
>
>
> --
> Best Regards
> Lin
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: About Webcam module
       [not found]                 ` <41d311580909161827m3d8d59aam37b1a22396799335@mail.gmail.com>
@ 2009-09-17  5:32                   ` Niamathullah sharief
  0 siblings, 0 replies; 8+ messages in thread
From: Niamathullah sharief @ 2009-09-17  5:32 UTC (permalink / raw)
  To: Pei Lin; +Cc: kernelnewbies, video4linux-list

yes pei,
   See i am using 2.6.30 kernel. And this module belongs to that kernel only

*sharief@sharief-desktop:/lib/modules$ ls
> *

*2.6.27-7-generic 2.6.30*
>


On Thu, Sep 17, 2009 at 6:57 AM, Pei Lin <telent997@gmail.com> wrote:

> When you get a module unrelated to the kernel distribution you should
> place it in one of the version-independent directories under
> /lib/modules.
>
> And do u place them in the right place ?
>
>
> 2009/9/17 Niamathullah sharief <newbiesha@gmail.com>:
> > Yes thank you...Its working fine...but i am having some doubt
> >
> > Insmod is working fine. But modprobe is not working properly..I know
> > modprobe will install all necessary dependent modules. But in this case
> all
> > dependent modules are already installed...But i dont know why its
> happening
> > here..Please help me..see below
> > root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe
> v4l1_compat
> >>
> >> root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe
> videodev
> >>
> >> root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe
> >> gspca_main
> >>
> >> FATAL: Module gspca_main not found.
> >>
> >> root@sharief-desktop:/home/sharief/Desktop/video/gspca# modprobe
> >> gspca_zc3xx
> >>
> >> FATAL: Module gspca_zc3xx not found.
> >>
> >> root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod
> >> gspca_main.ko
> >>
> >> root@sharief-desktop:/home/sharief/Desktop/video/gspca# insmod
> >> gspca_zc3xx.ko
> >>
> >> root@sharief-desktop:/home/sharief/Desktop/video/gspca#
> >
> >  Please help me....what will be the error
> >
> > On Wed, Sep 16, 2009 at 8:56 PM, Pei Lin <telent997@gmail.com> wrote:
> >>
> >> 2009/9/15 Niamathullah sharief <newbiesha@gmail.com>:
> >> >
> >> > Yes thank you..Now i am not getting my modules exactly. 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
> >> >>
> >> >> 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
> >> >>
> >> what is the result u want to get ?
> >> Is it to make one videodev.ko file?
> >> So it should be like this:
> >> obj-m += gspca_main.o
> >> obj-m += gspca_zc3xx.o
> >> obj-m += videodev.o
> >> gspca_main-objs := gspca.o
> >> gspca_zc3xx-objs := zc3xx.o
> >> videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o
> >>
> >> u need read the document about kbuild,module and makefile
> >> http://lxr.linux.no/linux+v2.6.31/Documentation/kbuild/makefiles.txt
> >>
> >> >>
> >> >> 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
> >> >
> >> >
> >> >>  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
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Best Regards
> >> Lin
> >
> >
>
>
>
> --
> Best Regards
> Lin
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-17  5:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-11  7:20 About Webcam module Niamathullah sharief
     [not found] ` <b89eadb20909110234v2b8ee579nc19eed163cc77463@mail.gmail.com>
2009-09-11 12:07   ` Niamathullah sharief
2009-09-12  6:24     ` Jean-Francois Moine
2009-09-14 18:00       ` Niamathullah sharief
2009-09-14 18:28         ` Jean-Francois Moine
2009-09-15  2:23           ` Niamathullah sharief
     [not found]             ` <41d311580909160826v7ab50508k96ed1035558263f8@mail.gmail.com>
2009-09-16 16:57               ` Niamathullah sharief
     [not found]                 ` <41d311580909161827m3d8d59aam37b1a22396799335@mail.gmail.com>
2009-09-17  5:32                   ` Niamathullah sharief

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.