Web lists-archives.com

Re: [Spca50x-devs] 046d:08d9 - works with gspca-modules but not 2.6.27-rc3




On Sat, 2008-08-30 at 14:29 +0930, Arthur Marsh wrote:
	[snip]
> I'm compiling on a different machine to the machine that built the kernel.
> 
> What I had to do after:
> 
> apt-get install mercurial
> 
> cd /usr/src
> 
> hg clone http://linuxtv.org/hg/~jfrancois/gspca/
> 
> was:
> 
> apt-get linux-source-2.6.27
> 
> cd /usr/src
> bzip2 -dc linux-source-2.6.27-rc4.tar.bz2|tar -xf /dev/fd/0
> ln -s linux-source-2.6.27-rc4 linux
> cd linux
> cp /boot/config-2.6.27-rc4 .config
> make prepare
> make scripts
> 
> cd /lib/modules/2.6.27-rc4
> ln -s /usr/src/linux build
> 
> cd /usr/src/gspca
> make
> checkinstall make install
> 
> This failed as the installation attempted to overwrite existing modules.

Hi Arthur,

It seems complicated.

First, you must have a running kernel. Say 2.6.27-rc4 (but it may any
kernel from 2.6.18).

Assuming you have the kernel sources and you have compiled and installed
it, you should have:
- in '/usr/src/linux-2.6.27-rc4/', a file '.config' (which should be the
  same as '/boot/config').
- in '/lib/modules/`uname -r`/', a link 'build' which points to
  '/usr/src/linux-2.6.27-rc4'.

You have cloned my mercurial tree in '/usr/src/gspca'. Do:

	cd /usr/src/gspca
	cp /usr/src/linux-2.6.27-rc4/.config v4l/
	make menuconfig
		(or 'make gconfig'...)

In menuconfig, add the GSPCA driver if it is not set.
Then do:

	make
	sudo make install

This last command will overwrite all the V4L modules
of /lib/modules/`uname -r`/kernel/drivers/media/).
This is normal.

If your webcam was connected, unplug it and, as root, do:

	rmmod gspca_zc3xx
	rmmod gspca_main

Then plug the webcam. There should be no error looking at:

	dmesg | tail

Best regards.

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



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs