PINE64

Full Version: USB Wireless Drivers with Longsleep Linux Kernel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Let me preface this by saying I am a newbie so if I'm missing something easy here or my attempted solutions don't make sense, I apologize in advance.

I am trying to hook up a TP-Link TL-WN725N Wifi USB to my Pine64.  I attempted to download the driver I need but cannot run a `make all` on it.  It looks like the driver I need is rtl8188eu which I got here:

https://github.com/lwfinger/rtl8188eu

Looking into the error I get:

"No rule to make target `modules'. Stop."

when trying to run make all it appears to be because i need to run 

"apt-get install linux-headers-$(uname -r)" but this command won't work for Longsleep's custom Kernel build.

Perhaps I can try running "apt-get install linux-headers-generic"

I can see in the kernel drivers (/lib/modules/xxxx/kernel/net/wireless) on the OS there are many drivers installed, closes to what I need being rtl8187.

I have three ideas for solutions but am looking for some guidance/suggestions.

My ideas are:

1) get a wifi dongle that works with one of the installed drivers OR
2) try "apt-get install linux-headers-generic" and run "make all" again OR
3) compile the driver on a VM on my Mac and copy it over to the pine64 (I have no idea if that would work at all but though, why not try)

Any help/advice would be greatly appreciated!

Jacob Carter
Headers are installed in a way out-of-tree modules can be compiled since the latest release (3.10.101-4-pine64-longsleep-51) make sure you have this and it should work. Else post full output to http://paste.ubuntu.com and share the link here.
(06-10-2016, 12:16 PM)longsleep Wrote: [ -> ]Headers are installed in a way out-of-tree modules can be compiled since the latest release (3.10.101-4-pine64-longsleep-51) make sure you have this and it should work. Else post full output to http://paste.ubuntu.com and share the link here.

I'm sorry I don't quite understand, I am using the Ubuntu build from this link:

https://www.stdin.xyz/downloads/people/l...es/ubuntu/

When I run uname -r I see "3.10.101-0-pine64-longsleep" but no 51 at the end.  I see your 51 build at this link:

https://www.stdin.xyz/downloads/people/l...ges/linux/

But I only know how to flash the .img to a SD card, I'm not sure what I need to do with the .xz files here to get an image on the SD that will boot in the Pine64.  Do I follow the same process of using the "dd" command?  Perhaps the README.md at this link?:

https://www.stdin.xyz/downloads/people/l...README.txt

If you could point me in the right direction I would appreciate it.

**UPDATE**


Re-Installed this img: https://www.stdin.xyz/downloads/people/l...es/ubuntu/

I found this link:

http://forum.pine64.org/showthread.php?tid=982

In regards to the "demsg" hundreds of things are printed out and I don't know what I'm looking for.

I had to install "wireless-tools" to be able to run iwconfig but running that showed:

eth0 no wireless extensions

sit0 no wireless extensions

lo no wireless extensions

I again tried to run "make all" on the driver i got from github (see link in original post), also note first I installed "git" and "build-essential".  Here is a link to the error:

http://paste.ubuntu.com/17195195/

Next i tried the github repo's README DKMS instructions to see if that would work.

On the "dkms build" build I got this missing headers error:

http://paste.ubuntu.com/17195303/

This package: "linux-headers-3.10.101-0-pine64-longsleep" does not exist so it cannot be installed.

Any advice would be appreciated.  Thanks.
You need to read the full post you linked. It has the information how to update the kernel.
(06-10-2016, 11:26 PM)longsleep Wrote: [ -> ]You need to read the full post you linked. It has the information how to update the kernel.

I apologize I didn't see that.  I updated the kernel and rebooted. "uname -r" show I have "3.10.101-4-pine64-longsleep".

I still get the same two error when I try and run "make all" on the lwfinger rtl8188eu driver apart from the new kernel version in the output.

http://paste.ubuntu.com/17195195/

Also get the same error when trying to install via dkms except with the new kernel version number.

http://paste.ubuntu.com/17195303/

Should I keep trying to get this driver on the Pine or should I, at this point, just get a wifi dongle that uses one of the drivers you already have on the build?
You are still compiling for the older kernel according to your log. Check for that directory. It should be there.
(06-11-2016, 04:52 AM)longsleep Wrote: [ -> ]You are still compiling for the older kernel according to your log. Check for that directory. It should be there.

Sorry I was saying in my post that the log was the same apart from the updated number, I just made a new link to clear up the confusion:

http://paste.ubuntu.com/17221908/

I checked and the build directory is not there

[Image: IMG_0221.JPG]

If I make the build directory and run "make all" I then get this error:

http://paste.ubuntu.com/17231107/

So with my limited knowledge it looks like the problem is the make file doesn't know where to look for the headers.  It is looking in:

"/lib/modules/xxxx/build"

but the build folder is not there.  I can change the makefile to point to the right location unless there should be a build folder there, then that is a different problem.
Didn't you say there is a dkms package? That should just work - the build folder is not there but there is a symlink to the next necessary folder inside /usr/src.
(06-11-2016, 04:11 PM)longsleep Wrote: [ -> ]Didn't you say there is a dkms package? That should just work - the build folder is not there but there is a symlink to the next necessary folder inside /usr/src.

"sudo dkms add ./rtl8188eu" works fine, then on dkms build I get the header error:

http://paste.ubuntu.com/17233816/

It is saying I can specify where to find the headers with the --kernelsourcedir option, would that be:

"/lib/modules/3.10.101-4-pine64-longsleep/kernel" ?
Kernel headers are in /usr/src/linux-headers-...
Pages: 1 2