ksclarke / rtl8192cu

Realtek (RTL8192CU) Wireless USB Drivers for the Raspberry Pi
24 stars 5 forks source link

install: target ‘/root/lib/modules/3.2.21-nectarine-rpi+/kernel/drivers/net/wireless/’ is not a directory: No such file or directory #3

Closed vyruz1986 closed 10 years ago

vyruz1986 commented 10 years ago

Hi, thanks for this module, I'm really hoping I can use it to get my TP-Link WN-8200ND wireless adapter working on my RPi. Unfortunately I know very little to nothing about coding/compiling on linux, so I just followed your readme, which worked fine until the very end where It mentioned to run sudo make install INSTALL_MOD_PATH=/media/[SD_ROOT]. I ran this with the below output indicating a path cannot be found:

alex@ubuntu:~/rtl8192 cu$ sudo make install INSTALL_MOD_PATH=/media/alex/root
install -p -m 644 8192cu.ko  /media/alex/root/lib/modules/3.2.21-nectarine-rpi+/kernel/drivers/net/wireless/
install: target ‘/media/alex/root/lib/modules/3.2.21-nectarine-rpi+/kernel/drivers/net/wireless/’ is not a directory: No such file or directory
make: *** [install] Error 1

This seems to be correct as the following 3 are the only directories I have in the /root/lib/modules/ directory:

alex@ubuntu:~/rtl8192cu$ ls -la /media/alex/root/lib/modules/
total 20
drwxr-xr-x  5 root root 4096 Aug 10 11:34 .
drwxr-xr-x 13 root root 4096 Aug  8 14:59 ..
drwxr-xr-x  3 root root 4096 Dec 31  1969 3.12.22+
drwxr-xr-x  3 root root 4096 Aug  8 15:01 3.12.26+
drwxr-xr-x  3 root root 4096 Aug 10 11:35 3.2.21+

Any help would be much appreciated ,thanks!

ksclarke commented 10 years ago

Ah, thanks... it looks like I need to update the Makefile. It's referencing a kernel that was a project kernel of mine (but no longer exists). In the meantime, you should be able to run with the KVER argument pointing to the right kernel on your system:

sudo make install KVER=3.2.21 INSTALL_MOD_PATH=/media/alex/root

I'm assuming that's the kernel you're using. I haven't tried compiling it with newer kernels yet (haven't gotten back around to this project in awhile).

ksclarke commented 10 years ago

I updated the Makefile in the repo now but will leave this ticket open for a bit in case there are any other gotchas you stumble across. Feel free to close it (or I will after a bit of no response).

vyruz1986 commented 10 years ago

Thanks for the quick reply and fix! I tested both the KVER= workaround, and afterwards updated the folder from the git repo and ran the command again without the KVER= parameter. In both cases no error was given. Thanks again!