LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-04-2005, 07:38 AM   #1
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Rep: Reputation: 0
spca5xx driver compile problem


Running Mandrake 10.1 official.
webcam Intel CS430.

I have downloaded the latest version of the spca5xx driver and am having trouble installing it. The camera I have is supported.

I am using the default 'make install' script and get the following error:

[root@Linux1 spca5xx-20050301]# make install
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca50x.ko
install -c -m 0644 spca5xx.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `spca5xx.ko': No such file or directory
make: *** [install] Error 1

I have trawled though the readme and various sites and made sure everything is as it should be, so I am a bit stuck. Any help would be appreciated!

Thanks,
Newbie Extraordinaire
 
Old 03-04-2005, 08:15 AM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
post the output of

ls -l /usr/src/
 
Old 03-04-2005, 08:18 AM   #3
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
output is

total 8
drwxr-xr-x 2 root root 4096 Mar 1 23:13 ati-3.14.1/
drwxr-xr-x 7 root root 4096 Mar 1 23:09 RPM/
 
Old 03-04-2005, 08:49 AM   #4
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
"cannot stat `spca5xx.ko': No such file or directory" means "you have no file named spca5xx.ko in this directory"

This in turn means either there should be a precompiled file named spca5xx.ko in the file you untarred or
the make procedure should've given an error prior to the one you posted.
That make probably requires access to the linux kernel source which you don't seem to have according to your 'ls /usr/src'.

Do a 'urpmi kernel-source-2.6' and retry your install.

- Peder
 
Old 03-04-2005, 09:56 AM   #5
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Yup, as I suspected no source tree installed.
 
Old 03-04-2005, 12:36 PM   #6
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Ok. I have downloaded the kernel and installed ok. However, install still fails as before.

Excuse my newbie questions but I thought the kernel was in /lib/modules/2.6.8.1-12mdk/kernel?

Anyway, all the directories that the readme says it uses exist. The stat command refers to a file that does not exist but I assume should be created by the previous line.

For a manual compile the readme states:

Before trying to compile the driver, ensure that you've configured your
kernel, and updated the dependencies:
'make [config|menuconfig|xconfig]; make dep'.

If i enter this I get the following error:

bash: menuconfig: command not found
bash: xconfig]: command not found
make: *** No rule to make target `[config'. Stop.
make: *** No rule to make target `dep'. Stop.

If I read the syntax correctly, am I ment to enter something else in place of [config|menuconfig|xconfig] ?

It also says to just build the driver use make, but using make generates the following:

Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/fred/tmp/spca5xx-20050301 modules
make[1]: Entering directory `/lib/modules/2.6.8.1-12mdk/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.8.1-12mdk/build'
make: *** [default] Error 2

Im am in as root so assume that gives me full access to the kernel tree.

Im sure I am missing something obvious but being a recent Windoze convert am still comming to grips with Linux. Any more suggestions?

Thanks.
 
Old 03-04-2005, 01:59 PM   #7
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
No, no, re-install the kernel source RPM again.

However this time DO NOT

make dep
make clean

or anything like this.

Instead continue on as if this is already done.

Don't do anything to the kernel-source tree.

Also be sure that the source you installed corresponds exactly the the kernel you are currently running.

Sometimes urpmi will pick up a newer version than what you have installed.
 
Old 03-04-2005, 02:31 PM   #8
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Right then,

removed the old rmp and reinstalled. The version is correct.

In the directory where the spca5xx files are from a terminal logged in as root, I enter make.

The following is outputted.

[root@Linux1 spca5xx-20050301]# make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/fred/tmp/spca5xx-20050301 modules
make[1]: Entering directory `/lib/modules/2.6.8.1-12mdk/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.8.1-12mdk/build'
make: *** [default] Error 2

Dont know where to go from here. Not sure what the "No Rule..." bit is about.

??
 
Old 03-04-2005, 03:33 PM   #9
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
It sounds like it's looking for a symlink from

/lib/modules/2.6.8.1-12mdk/build

to

/usr/src/linux-2.6.8.1-12mdk

If you originally installed your kernel either from the distribution CD or from Mandrake RPM's and booted it up, this would exist.

As it is, it seems not to.

You could try to manually create it with

ln -s /usr/src/linux-2.6.8.1-12mdk /lib/modules/2.6.8.1-12mdk/build

which should do the trick.

If you get an error after tying the above (it must be EXACTLY as shown...)

then

rm -f /lib/modules/2.6.8.1-12mdk/build
 
Old 03-04-2005, 03:50 PM   #10
zappos
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Ah. Cracked it. As you say there was no symbolic link so once created it now compiles ok. Thanks for all your help!

Cheers
 
Old 03-05-2005, 04:50 AM   #11
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Great!

No problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.8-2-k7 and webcam spca5xx driver crispyleif Linux - Software 3 11-20-2005 06:31 PM
SPCA5xx and 10.0 compile problems littlejimmy4x4 Mandriva 0 06-04-2005 01:25 PM
PowerVR (KyroII) driver compile problem on 2.6.0 popey Linux - General 0 01-09-2004 02:15 PM
Driver compile problem tungsten Linux - Software 4 08-24-2003 01:12 PM
modem driver compile problem junks Linux - Software 5 01-13-2003 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration