USB Wireless Drivers with Longsleep Linux Kernel
#1
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
  Reply
#2
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.
  Reply
#3
(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.
  Reply
#4
You need to read the full post you linked. It has the information how to update the kernel.
  Reply
#5
(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?
  Reply
#6
You are still compiling for the older kernel according to your log. Check for that directory. It should be there.
  Reply
#7
(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.
  Reply
#8
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.
  Reply
#9
(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" ?
  Reply
#10
Kernel headers are in /usr/src/linux-headers-...
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  +LTS/SOPINE Compilation procedure for U-Boot and Linux for pineA64 LTS. danpurprakash@gmail.com 1 4,097 06-05-2019, 11:50 PM
Last Post: igorp
  Frustrations with Wifi, VNC, Longsleep, etc. NexusDude 1 3,649 06-05-2019, 11:43 PM
Last Post: igorp
  Pine Board using linux stuck during boot sequence ktaragorn 0 2,759 03-23-2019, 04:06 AM
Last Post: ktaragorn
  How can I get a wireless dongle working on Xenial Desktop latest build Rocklobster 1 3,946 04-16-2018, 03:09 PM
Last Post: Rocklobster
Question Mali driver on linux? jamiechang917 8 11,223 03-04-2018, 03:01 PM
Last Post: Brian Beuken
  (ARCHIVED) Ubuntu Xenial Image (BSP Kernel) longsleep 337 633,680 01-31-2018, 11:58 AM
Last Post: Luke
  How to add kernel modules to Ubuntu 16.04 on PINE64+ Taiki Bessho 1 3,811 04-12-2017, 10:01 PM
Last Post: MarkHaysHarris777
  config error installing XML-RPC on longsleep Ubuntu tinkertom 2 4,607 02-22-2017, 06:50 AM
Last Post: MarkHaysHarris777
  linux mint fra0hf 9 10,615 10-29-2016, 11:41 AM
Last Post: jkmooney
Rainbow Ubuntu with Android Kernel JasperBrown 5 7,974 07-05-2016, 06:49 AM
Last Post: xalius

Forum Jump:


Users browsing this thread: 1 Guest(s)