advice on how to install driver rtl8822bu

Post Reply
kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

advice on how to install driver rtl8822bu

Unread post by kappahd » Tue Jan 15, 2019 12:20 am

Can anyone give me some advice on how to install these drivers easily?

I found a driver page but look complicated ;(
https://drive.google.com/drive/folders/ ... wnfpkedwTf

User avatar
meveric
Posts: 9593
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by meveric » Tue Jan 15, 2019 5:44 am

Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Tue Jan 15, 2019 6:59 am

meveric wrote:
Tue Jan 15, 2019 5:44 am
viewtopic.php?p=242229#p242229
Should I follow the github page?

I did and i ran into this issue:
root@odroidxu4:~/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959# sudo dkms add -m rtl88x2bu -v ${VER}

Creating symlink /var/lib/dkms/rtl88x2bu/5.3.1/source ->
/usr/src/rtl88x2bu-5.3.1

DKMS: add completed.
root@odroidxu4:~/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959# sudo dkms build -m rtl88x2bu -v ${VER}
Error! Your kernel headers for kernel 4.9.103-odroidxu4 cannot be found.
Please install the linux-headers-4.9.103-odroidxu4 package,
or use the --kernelsourcedir option to tell DKMS where it's located
root@odroidxu4:~/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959#

User avatar
meveric
Posts: 9593
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by meveric » Tue Jan 15, 2019 7:16 am

HardKernel has a habit of not providing (working) Kernel Headers packages.. If you're not bound to Ubuntu, you can always use Debian Jessie/Stretch, or DietPi as they have working Kernel and Header packages.
It "should" work with Ubuntu from HardKernel as well, but you probably have to create your own links to wherever HardKernel has copied their Header files, as their "linux-odroid" package includes Kernel and Header files together, but dkms files of cause won't find it directly as it's not the way the system expect headers to be.
It might also work with Armbian, but I have no info about that.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Tue Jan 15, 2019 8:18 am

meveric wrote:
Tue Jan 15, 2019 7:16 am
HardKernel has a habit of not providing (working) Kernel Headers packages.. If you're not bound to Ubuntu, you can always use Debian Jessie/Stretch, or DietPi as they have working Kernel and Header packages.
It "should" work with Ubuntu from HardKernel as well, but you probably have to create your own links to wherever HardKernel has copied their Header files, as their "linux-odroid" package includes Kernel and Header files together, but dkms files of cause won't find it directly as it's not the way the system expect headers to be.
It might also work with Armbian, but I have no info about that.
I am on debian :(
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

User avatar
meveric
Posts: 9593
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by meveric » Tue Jan 15, 2019 3:10 pm

well I''m not sure what Debian you're using, the above error showed something about Kernel 4.9.103, which is not used by HardKernel or me, only Kernel 4.14 and 3.10 are supported.
If you can please try the following image: viewtopic.php?f=96&t=30552
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Tue Jan 15, 2019 9:06 pm

meveric wrote:
Tue Jan 15, 2019 3:10 pm
well I''m not sure what Debian you're using, the above error showed something about Kernel 4.9.103, which is not used by HardKernel or me, only Kernel 4.14 and 3.10 are supported.
If you can please try the following image: viewtopic.php?f=96&t=30552
I've just installed this. Awesome work! If I need the wifi drivers, do I need to do setup-odroid? or is that only for gui (im running headless)

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Tue Jan 15, 2019 9:18 pm

running: dkms build -m rtl88x2bu -v ${VER}


I got this error:

DKMS make.log for rtl88x2bu-#MODULE_VERSION# for kernel 4.14.28+ (armv7l)
Tue Jan 15 12:16:04 UTC 2019
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.14.28+/build M=/var/lib/dkms/$
make[1]: Entering directory '/usr/src/linux-headers-4.14.28+'
Makefile:643: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.14.28+'
Makefile:1584: recipe for target 'modules' failed
make: *** [modules] Error 2

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Tue Jan 15, 2019 9:39 pm

running: dkms build -m rtl88x2bu -v ${VER}


I got this error:

DKMS make.log for rtl88x2bu-#MODULE_VERSION# for kernel 4.14.28+ (armv7l)
Tue Jan 15 12:16:04 UTC 2019
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.14.28+/build M=/var/lib/dkms/$
make[1]: Entering directory '/usr/src/linux-headers-4.14.28+'
Makefile:643: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.14.28+'
Makefile:1584: recipe for target 'modules' failed
make: *** [modules] Error 2


And is the preinstalled, I see /lib/modules/4.14.28+/kernel/drivers/net/wireless/realtek/rtl8xxxu exists, how do I get it working :(

User avatar
meveric
Posts: 9593
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by meveric » Wed Jan 16, 2019 12:40 am

The DKMS module you're using has no config for armhf.
You can try to set the ARCH upfront:

ARCH=arm dkms build -m rtl88x2bu -v ${VER}

Also Kernel 4.14.28 is rather old, you probably should update the system before that.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Wed Jan 16, 2019 6:01 am

meveric wrote:
Wed Jan 16, 2019 12:40 am
The DKMS module you're using has no config for armhf.
You can try to set the ARCH upfront:

ARCH=arm dkms build -m rtl88x2bu -v ${VER}

Also Kernel 4.14.28 is rather old, you probably should update the system before that.
88x2bu:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.14.87+/kernel/drivers/net/

depmod...



thanks I managed to install it. I relised i cant run iwconfig. How do you connect to the wifi?

User avatar
meveric
Posts: 9593
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by meveric » Wed Jan 16, 2019 7:15 am

I think you should use wpa_supplicant to configure your wifi adapter, or install "iw" to have iwconfig.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

kappahd
Posts: 17
Joined: Tue Jun 19, 2018 6:51 am
languages_spoken: english
Contact:

Re: advice on how to install driver rtl8822bu

Unread post by kappahd » Wed Jan 16, 2019 7:45 am

meveric wrote:
Wed Jan 16, 2019 7:15 am
I think you should use wpa_supplicant to configure your wifi adapter, or install "iw" to have iwconfig.
thanks for the help

I am getting an error:
wpa_supplicant -B -D rtl88x2bu -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: Unsupported driver 'rtl88x2bu'

all that hard work :(

Here is some info:
root@debian-stretch:/# iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr 00:0f:00:be:07:48
type managed
txpower 12.00 dBm
root@debian-stretch:/# ip link show wlan0
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0f:00:be:07:48 brd ff:ff:ff:ff:ff:ff
root@debian-stretch:/#

readlink /sys/class/net/wlan0/device/driver
../../../../../../../bus/usb/drivers/rtl88x2bu

Post Reply

Return to “General Chat”

Who is online

Users browsing this forum: No registered users and 1 guest