On 14/06/10 18:58, m.roth@5-cent.us wrote:
The standalone gspca code is old and deprecated. It's now maintained
as part of the Video4Linux v4l-dvb tree here:
<snip>
The main v4l-dvb tree is here - just grab the latest tarball and build
it. Here if you don't see it:
<snip>
Development work on the gspca branch appears to happen here:
http://linuxtv.org/hg/~hgoede/gspca/
before being merged into the main v4l-dvb tree.
Elrepo.org has a version built for el5 that supports many gspca based
devices:
<snip> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild, and that failed, because it *required* xen-devel. So I grabbed the tarfile from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make. And ten or so later, I had 265 kernel modules. I don't want or need to install all of that, so I tried just building gspca, and that failed with unresolved errors.
Does anyone know if I can just install gspca*.ko, or even some subgroup of that, or is it dependent on other of the built modules?
Two other notes: on an FC 13 box, I see that gspca literally comes with the kernel - does anyone have a clue whether part of that subsystem is available, or is that what I'm looking at, above?
Finally, in googling, I found a UVC that's supposed to deal with most USB cameras. Does anyone know anything about it, or will I still need gspca?
mark
On Thu, 2010-06-17 at 16:10 -0400, m.roth@5-cent.us wrote:
<snip> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild, and that failed, because it *required* xen-devel. So I grabbed the tarfile from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make. And ten or so later, I had 265 kernel modules. I don't want or need to install all of that, so I tried just building gspca, and that failed with unresolved errors.
--- rpmbuild -ba --target=i686 --nodeps video4linux-kmod-rt.spec
Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.jerepo.src.rpm Wrote: /RPMS/i686/kmod-video4linux-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-xen-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-PAE-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.jerepo.i686.rpm
Use that command to build it. You should get the above then trash xen, pae and debug. That builds and works on a pure kernel-rt install. Allthough there things said left to do get it built the right way but it is usable.
lib/modules/2.6.24.7-149.el5rt/extra/video4linux/ has several gspca modules so your better off installing all to get the correct one.
John
On 18/06/10 14:10, JohnS wrote:
On Thu, 2010-06-17 at 16:10 -0400, m.roth@5-cent.us wrote:
<snip> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild, and that failed, because it *required* xen-devel. So I grabbed the tarfile from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make. And ten or so later, I had 265 kernel modules. I don't want or need to install all of that, so I tried just building gspca, and that failed with unresolved errors.
rpmbuild -ba --target=i686 --nodeps video4linux-kmod-rt.spec
Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.jerepo.src.rpm Wrote: /RPMS/i686/kmod-video4linux-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-xen-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-PAE-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.jerepo.i686.rpm
Use that command to build it. You should get the above then trash xen, pae and debug. That builds and works on a pure kernel-rt install. Allthough there things said left to do get it built the right way but it is usable.
lib/modules/2.6.24.7-149.el5rt/extra/video4linux/ has several gspca modules so your better off installing all to get the correct one.
John
No, define kvariants as appropriate and only build for the variants you want.
http://wiki.centos.org/HowTos/BuildingKernelModules#head-b86b6eec08d5719cf18...
rpmbuild -ba --target=i686 --define 'kvariants ""' video4linux-kmod.spec
If you don't, then by default the package will be built for *all* kernel variants and you will of course need the appropriate BuildRequires installed on your build system (eg, kernel-devel, kernel-xen-devel, kernel-PAE-devel).
Also, you can't just install the modules you want as there are also kernel module dependencies to consider. For example, your required gspca module might depend on gspca_main which might depend on videodev, which might depend on v4l2-compat-ioctl32, v4l1-compat etc. And you can't just update those modules because something else might also depend on them and it's dependencies will then be broken. This is why we package the whole lot - so you don't get screwed up dependencies. I admit it's not a perfect solution, and is very much one size fits all but if your hardware is not detected by the EL5 kernel then it is the simplest option.
On Fri, 2010-06-18 at 14:50 +0100, Ned Slider wrote:
On 18/06/10 14:10, JohnS wrote:
On Thu, 2010-06-17 at 16:10 -0400, m.roth@5-cent.us wrote:
<snip> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild, and that failed, because it *required* xen-devel. So I grabbed the tarfile from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make. And ten or so later, I had 265 kernel modules. I don't want or need to install all of that, so I tried just building gspca, and that failed with unresolved errors.
rpmbuild -ba --target=i686 --nodeps video4linux-kmod-rt.spec
Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.jerepo.src.rpm Wrote: /RPMS/i686/kmod-video4linux-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-xen-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-PAE-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.jerepo.i686.rpm
Use that command to build it. You should get the above then trash xen, pae and debug. That builds and works on a pure kernel-rt install. Allthough there things said left to do get it built the right way but it is usable.
lib/modules/2.6.24.7-149.el5rt/extra/video4linux/ has several gspca modules so your better off installing all to get the correct one.
John
No, define kvariants as appropriate and only build for the variants you want.
http://wiki.centos.org/HowTos/BuildingKernelModules#head-b86b6eec08d5719cf18...
rpmbuild -ba --target=i686 --define 'kvariants ""' video4linux-kmod.spec
If you don't, then by default the package will be built for *all* kernel variants and you will of course need the appropriate BuildRequires installed on your build system (eg, kernel-devel, kernel-xen-devel, kernel-PAE-devel).
--- Would you so nicely post that on the appropiate page elsewhere please.?
rpmbuild -ba --target=i686 --define 'kvariants "rt"' video4linux-kmod.spec
This is a bug also In my opinion because kmodtool should not allow the nodepts parameter to be used.
It was by luck I decided to try """rt""". You see my idiot self tried kernel-rt there lol. So this is the right way correct?
Build is running with only installed kernel-rt and kernel-rt-devel: 2.6.24.7-149.el5rt #1 SMP PREEMPT RT
We will see if it indeed works later on tonight.
John
On Fri, 2010-06-18 at 10:22 -0400, JohnS wrote:
http://wiki.centos.org/HowTos/BuildingKernelModules#head-b86b6eec08d5719cf18...
rpmbuild -ba --target=i686 --define 'kvariants ""' video4linux-kmod.spec
If you don't, then by default the package will be built for *all* kernel variants and you will of course need the appropriate BuildRequires installed on your build system (eg, kernel-devel, kernel-xen-devel, kernel-PAE-devel).
Would you so nicely post that on the appropiate page elsewhere please.?
rpmbuild -ba --target=i686 --define 'kvariants "rt"' video4linux-kmod.spec
--- Let me clarify that. What I mean is the "kvariants" as in what variants there is. How to use the kmod tool from the command line also. What I don't know for sure is if "rt" is correct? It's the only way it will build with --define kvariants. More to be found out.
John
On Fri, 2010-06-18 at 14:50 +0100, Ned Slider wrote:
On 18/06/10 14:10, JohnS wrote:
On Thu, 2010-06-17 at 16:10 -0400, m.roth@5-cent.us wrote:
<snip> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild, and that failed, because it *required* xen-devel. So I grabbed the tarfile from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make. And ten or so later, I had 265 kernel modules. I don't want or need to install all of that, so I tried just building gspca, and that failed with unresolved errors.
rpmbuild -ba --target=i686 --nodeps video4linux-kmod-rt.spec
Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.jerepo.src.rpm Wrote: /RPMS/i686/kmod-video4linux-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-xen-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-PAE-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.jerepo.i686.rpm
Use that command to build it. You should get the above then trash xen, pae and debug. That builds and works on a pure kernel-rt install. Allthough there things said left to do get it built the right way but it is usable.
lib/modules/2.6.24.7-149.el5rt/extra/video4linux/ has several gspca modules so your better off installing all to get the correct one.
John
No, define kvariants as appropriate and only build for the variants you want.
http://wiki.centos.org/HowTos/BuildingKernelModules#head-b86b6eec08d5719cf18...
rpmbuild -ba --target=i686 --define 'kvariants ""' video4linux-kmod.spec
If you don't, then by default the package will be built for *all* kernel variants and you will of course need the appropriate BuildRequires installed on your build system (eg, kernel-devel, kernel-xen-devel, kernel-PAE-devel).
rpmbuild -ba --target=i686 --define 'kvariants "rt"' video4linux-kmod.spec
Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.elrepo.src.rpm Wrote: /RPMS/i686/kmod-video4linux-rt-0.0-5.20090615.el5.elrepo.i686.rpm Wrote: /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.elrepo.i686.rpm
Nice.. Will check usability out tonight.
John
Warning: elrepo.org does not offer kmods for kernel-rt. This is just a rebuild test by none other than myself to test compatability and interest.
JohnS wrote:
On Thu, 2010-06-17 at 16:10 -0400, m.roth@5-cent.us wrote:
<snip> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild, and that failed, because it *required* xen-devel. So I grabbed the tarfile from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make. And ten or so later, I had 265 kernel modules. I don't want or need to install all of that, so I tried just building gspca, and that failed with unresolved errors.
rpmbuild -ba --target=i686 --nodeps video4linux-kmod-rt.spec
Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.jerepo.src.rpm Wrote: /RPMS/i686/kmod-video4linux-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-xen-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/kmod-video4linux-PAE-0.0-5.20090615.el5.jerepo.i686.rpm Wrote: /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.jerepo.i686.rpm
Use that command to build it. You should get the above then trash xen, pae and debug. That builds and works on a pure kernel-rt install. Allthough there things said left to do get it built the right way but it is usable.
Um, what's kernel-rt got to do with anything I said? And actually, the first server I'm trying to build this on is a Sunfire, but it's running Opterons, and the o/s is 64-bit. I also do *not* have any xen installed.
Fine, I tried running rpmbuild -ba --target=x86_64 --without xen video4linux-kmod.spec Building target platforms: x86_64 Building for target x86_64 error: Failed build dependencies: kernel-xen-devel-x86_64 = 2.6.18-194.3.1.el5 is needed by video4linux-kmod-0.0-5.20090615.el5.elrepo.x86_64
My last trick was to edit the stupid spec file, and comment out #%ifarch i686 x86_64 #%define xenvar xen #%endif and it *still* wants to build for xen.
No, the rpmbuild is not correct. So, back to the original, of trying to figure out just what kernel modules I need to install, rather than the laundry list it correctly builds when I drop the rpm, and build from the blown-out tarfile.
mark
lib/modules/2.6.24.7-149.el5rt/extra/video4linux/ has several gspca modules so your better off installing all to get the correct one.
John
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Fri, 2010-06-18 at 11:34 -0400, m.roth@5-cent.us wrote:
Um, what's kernel-rt got to do with anything I said? And actually, the first server I'm trying to build this on is a Sunfire, but it's running Opterons, and the o/s is 64-bit. I also do *not* have any xen installed.
Fine, I tried running rpmbuild -ba --target=x86_64 --without xen video4linux-kmod.spec Building target platforms: x86_64 Building for target x86_64 error: Failed build dependencies: kernel-xen-devel-x86_64 = 2.6.18-194.3.1.el5 is needed by video4linux-kmod-0.0-5.20090615.el5.elrepo.x86_64
My last trick was to edit the stupid spec file, and comment out #%ifarch i686 x86_64 #%define xenvar xen #%endif and it *still* wants to build for xen.
No, the rpmbuild is not correct. So, back to the original, of trying to figure out just what kernel modules I need to install, rather than the laundry list it correctly builds when I drop the rpm, and build from the blown-out tarfile.
--- Wrong the rpm build will *WORK* I promise it will if done correct with out the other cruft.. You did not read the rest of the threads? Ned showed how to do it the right way.
rpmbuild -ba --target=i686 --define 'kvariants "put kvariant_here"' video4linux-kmod.spec
knownvariants=@(BOOT|PAE|@(big|huge)mem|debug|enterprise|kdump|? \ (large)smp|uml| xen[0U]?(-PAE)|xen)
--target=x86_64 if you have 64 bit..
And it works on the main CentOS Kernel also this way,,,just tried it for the hell of it.
And you ask what does kernel-rt have to do with it? Read the posts with the disclaimer.
John
On 18/06/10 16:34, m.roth@5-cent.us wrote:
Fine, I tried running rpmbuild -ba --target=x86_64 --without xen video4linux-kmod.spec
Go back and read my last reply, or read the SPEC file again.
If you don't want to build for xen then you must define kvariants on the rpmbuild command line for the variants you do want to build for. As you only want the plain kernel, you must define kvariants as null:
rpmbuild -ba --target=x86_64 --define 'kvariants ""' video4linux-kmod.spec
Alternatively, try with the latest src.rpm, which isn't compatible with xen kernels so support for xen has been removed (much as you tried to do):
http://elrepo.org/linux/testing/el5/SRPMS/video4linux-kmod-0.0-7.20100410.el...