Mange / rtl8192eu-linux-driver

Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
1.32k stars 435 forks source link

cannot install on RPI (missing kernel headers?) #161

Closed davidobrien1985 closed 4 years ago

davidobrien1985 commented 4 years ago

I'm trying to install these drivers on my rpi following the instructions on this repo.

I've installed the prereqs but end up getting errors only.

Preparing to unpack .../raspberrypi-kernel-headers_1.20170703-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20170703-1) over (1.20170703-1) ...
Setting up raspberrypi-kernel-headers (1.20170703-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.35+
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.35-v7+
root@raspberrypi:~/rtl8192eu-linux-driver# ls /lib/modules/4.1.20-v7+/
kernel         modules.builtin  modules.dep.bin  modules.softdep
modules.alias      modules.builtin.bin  modules.devname  modules.symbols
modules.alias.bin  modules.dep      modules.order    modules.symbols.bin
root@raspberrypi:~/rtl8192eu-linux-driver# dkms install rtl8192eu/1.0
Error! echo
Your kernel headers for kernel 4.1.20-v7+ cannot be found at
/lib/modules/4.1.20-v7+/build or /lib/modules/4.1.20-v7+/source.
root@raspberrypi:~/rtl8192eu-linux-driver# make install 
/bin/sh: 1: bc: not found
install -p -m 644 8192eu.ko  /lib/modules/4.1.20-v7+/kernel/drivers/net/wireless/
install: cannot stat '8192eu.ko': No such file or directory
Makefile:2304: recipe for target 'install' failed
make: *** [install] Error 1
root@raspberrypi:~/rtl8192eu-linux-driver# 

Not sure what I'm doing wrong. Any tips?

Thanks!

davidobrien1985 commented 4 years ago

@Mange any idea?

Mange commented 4 years ago

Nope. I don't use this. I'm on Rpi 3 and 4 now exclusively.

davidobrien1985 commented 4 years ago

This is on a pi3 that I'm trying to build this on. Are you saying that on rpi3 I shouldn't need to install these drivers anymore?

Get Outlook for Androidhttps://aka.ms/ghei36


From: Magnus Bergmark notifications@github.com Sent: Monday, February 10, 2020 12:12:47 AM To: Mange/rtl8192eu-linux-driver rtl8192eu-linux-driver@noreply.github.com Cc: David O'Brien me@david-obrien.net; Author author@noreply.github.com Subject: Re: [Mange/rtl8192eu-linux-driver] cannot install on RPI (missing kernel headers?) (#161)

Nope. I don't use this. I'm on Rpi 3 and 4 now exclusively.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Mange/rtl8192eu-linux-driver/issues/161?email_source=notifications&email_token=ACBIQGIRR7VNJU4GI53JE7TRB76M7A5CNFSM4KLU77FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGMAIY#issuecomment-583843875, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACBIQGMZEETFK6XPZMNY5UDRB76M7ANCNFSM4KLU77FA.

Mange commented 4 years ago

Well yeah, RPi3 has built-in wifi and Bluetooth so there is no need to buy a wifi-dongle for it or install drivers for it.

davidobrien1985 commented 4 years ago

I need a second wifi though, and every blog on this topic on the internet references this repo and following this repo's guidance doesn't work for me. 😥

Get Outlook for Androidhttps://aka.ms/ghei36


From: Magnus Bergmark notifications@github.com Sent: Monday, February 10, 2020 1:31:21 AM To: Mange/rtl8192eu-linux-driver rtl8192eu-linux-driver@noreply.github.com Cc: David O'Brien me@david-obrien.net; Author author@noreply.github.com Subject: Re: [Mange/rtl8192eu-linux-driver] cannot install on RPI (missing kernel headers?) (#161)

Well yeah, RPi3 has built-in wifi and Bluetooth so there is no need to buy a wifi-dongle for it or install drivers for it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Mange/rtl8192eu-linux-driver/issues/161?email_source=notifications&email_token=ACBIQGJOYHTHPAQBLM7SIRDRCAHTTA5CNFSM4KLU77FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELGN52A#issuecomment-583851752, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACBIQGPE2KQAKPBFXSEZXNTRCAHTTANCNFSM4KLU77FA.

Mange commented 4 years ago

I see three errors in the output, one of which is just caused by a previous error.

  1. You don't seem to have the kernel sources installed for the running version of the kernel. Maybe you need a reboot so you boot the latest kernel that you have installed?
  2. The installer could not find the bc executable. Maybe you need to install that one too?
Teiby commented 4 years ago

Used fresh installation of 2020-02-05 Raspbian Buster Lite for Raspberry Pi 1 Model B+

sudo apt-get update
sudo apt-get install -y git raspberrypi-kernel-headers build-essential dkms bc
git clone https://github.com/Mange/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver/
export CONFIG_PLATFORM_I386_PC=n
export CONFIG_PLATFORM_ARM_RPI=y
sudo ln -s /usr/src/linux-headers-4.19.97+/arch/arm /usr/src/linux-headers-4.19.97+/arch/armv6l
sudo dkms add .
sudo dkms install rtl8192eu/1.0

It requires more steps like install bc and run ln.

CGarces commented 4 years ago

Thanks @Teiby Fell free to send a PR to update README.md @davidobrien1985 please confirm that works on order to close the issue.