nothreat33
September 28th, 2010, 02:36 PM
I'm installing rt61 wireless drivers. I'm getting an error during make. I've looked around the internet so let me first say that I have installed build-essential, linux-source, and linux-headers.
The error:
michael@michael-desktop:~/Downloads/rt61-cvs-2007051818/Module$ sudo make
[sudo] password for michael:
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-19-generic'
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-19-generic'
rt61.ko failed to build!
make: *** [module] Error 1
michael@michael-desktop:~
I've gotten the impression that this error is because kernel/bounds.c is part of linux-source not linux-headers. So it can't find it because it's entering the linux-headers directory.
for clarity this is how my /usr/src is organized:
root@michael-desktop:/lib/modules# cd /usr/src
root@michael-desktop:/usr/src# ls
linux-headers-2.6.35-19 linux-source-2.6.35.tar.bz2
glibc linux-headers-2.6.35-19-generic nvidia-current-256.53
linux linux-source-2.6.35 uClibc-0.9.30.2.tar.bz2
root@michael-desktop:/usr/src# cd linux-source-2.6.35
root@michael-desktop:/usr/src/linux-source-2.6.35# ls
debian debian.master linux-source-2.6.35 linux-source-2.6.35.tar.bz2
root@michael-desktop:/usr/src/linux-source-2.6.35# cd linux-source-2.6.35
root@michael-desktop:/usr/src/linux-source-2.6.35/linux-source-2.6.35# ls
arch Documentation init MAINTAINERS REPORTING-BUGS tools
block drivers ipc Makefile samples ubuntu
COPYING firmware Kbuild mm scripts usr
CREDITS fs kernel net security virt
crypto include lib README sound
root@michael-desktop:/usr/src/linux-source-2.6.35/linux-source-2.6.35#
I've thought of a few things to do. Edit the Makefile (don't really know how to do that). Link linux-source to linux-headers. or move around the linux-source data up one so it's usr/src/linux-source2.6.35/ and not /usr/src/linux-source2.6.35/linux-source2.6.35.
But I'm not sure exactly what to do. But I feel like I'm close.
The error:
michael@michael-desktop:~/Downloads/rt61-cvs-2007051818/Module$ sudo make
[sudo] password for michael:
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-19-generic'
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-19-generic'
rt61.ko failed to build!
make: *** [module] Error 1
michael@michael-desktop:~
I've gotten the impression that this error is because kernel/bounds.c is part of linux-source not linux-headers. So it can't find it because it's entering the linux-headers directory.
for clarity this is how my /usr/src is organized:
root@michael-desktop:/lib/modules# cd /usr/src
root@michael-desktop:/usr/src# ls
linux-headers-2.6.35-19 linux-source-2.6.35.tar.bz2
glibc linux-headers-2.6.35-19-generic nvidia-current-256.53
linux linux-source-2.6.35 uClibc-0.9.30.2.tar.bz2
root@michael-desktop:/usr/src# cd linux-source-2.6.35
root@michael-desktop:/usr/src/linux-source-2.6.35# ls
debian debian.master linux-source-2.6.35 linux-source-2.6.35.tar.bz2
root@michael-desktop:/usr/src/linux-source-2.6.35# cd linux-source-2.6.35
root@michael-desktop:/usr/src/linux-source-2.6.35/linux-source-2.6.35# ls
arch Documentation init MAINTAINERS REPORTING-BUGS tools
block drivers ipc Makefile samples ubuntu
COPYING firmware Kbuild mm scripts usr
CREDITS fs kernel net security virt
crypto include lib README sound
root@michael-desktop:/usr/src/linux-source-2.6.35/linux-source-2.6.35#
I've thought of a few things to do. Edit the Makefile (don't really know how to do that). Link linux-source to linux-headers. or move around the linux-source data up one so it's usr/src/linux-source2.6.35/ and not /usr/src/linux-source2.6.35/linux-source2.6.35.
But I'm not sure exactly what to do. But I feel like I'm close.