make clean mod command failing due to missing .ko file

Asked by Chris

Hi,
    I'm trying to install a driver for my network card. I keep getting an error of 'r8168.ko' no such file or directory

cgp@cgp-System-Product-Name:~/r8168-8.012.00$ make clean modules
make -C src/ clean
make[1]: Entering directory `/home/cgp/r8168-8.012.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers Module.markers *.order
rm: cannot remove `.tmp_versions': Permission denied
make[1]: *** [clean] Error 1
make[1]: Leaving directory `/home/cgp/r8168-8.012.00/src'
make: *** [clean] Error 2

So I figure no prob, it just didn't remove a temp file. Then I do this.....

cgp@cgp-System-Product-Name:~/r8168-8.012.00$ make install
make -C src/ install
make[1]: Entering directory `/home/cgp/r8168-8.012.00/src'
install -m 744 -c r8168.ko /lib/modules/2.6.38-11-generic/kernel/drivers/net/
install: cannot stat `r8168.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/cgp/r8168-8.012.00/src'
make: *** [install] Error 2

The .ko file is missing. Big problem. My question is, what can I do to get,make or replace that .ko file or what am I doing wrong? Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
José Antonio Rey
Solved:
Last query:
Last reply:
Revision history for this message
Chris (chris-cpowers) said :
#1

Just realized I have the wrong driver. I need the r8169 version because that .ko file is in the directory. Now jut to find that version

Revision history for this message
Best José Antonio Rey (jose) said :
#2

In that case, please mark your question as solved, clicking 'My problem is solved'.

Revision history for this message
Chris (chris-cpowers) said :
#3

Thanks José Antonio Rey, that solved my question.