Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

Installing module rtl88x2bu for 1200ac usb wifi (1 reply)

$
0
0
This is my workaround for installing rtl88x2bu module for 1200ac usb wifi, I had a difficult time and days of searches to make it work and since no one else made a finished what to do if this happens list for it I kept notes:)

I won't go into all the errors that prompted all of the edits as I would need to do a fresh install and to be honest who wants to do such a thing twice?

to start you will need to install the following:


dpkg -i /boot/linux-headers-4.4.189-oxnas-tld-1_1.0_armel.deb
(or current version)

then

apt install git dkms build-essential


git clone https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git

or latest update which is maintained on github.

dkms add ./rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959

cd /lib/modules/$(uname -r)
rm -r build
rm -r source      
( these two files above may not be there)

ln -s /usr/src/linux-headers-$(uname -r) build
ln -s /usr/src/linux-headers-$(uname -r) source

verify these are there when completed!

cd  /usr/src/linux-headers-4.4.189-oxnas-tld-1/arch/
ln -s arm armv6l


 cd /usr/src/linux-headers-4.4.189-oxnas-tld-1/arch/armv6l/include/asm/mach (or current Linux-headers)
 cp -r irq.h to irqs.h 
 nano irqs.h  (change all instances of irq.h in file to irqs.h)

cd /usr/src/linux-headers-4.4.189-oxnas-tld-1/include/linux/
cp -r /usr/src/linux-headers-4.4.189-oxnas-tld-1/arch/armv6l/include/asm/mach/irqs.h  irqs.h

cp -r /usr/src/linux-headers-4.4.189-oxnas-tld-1/arch/armv6l/include/asm/mach  /usr/src/linux-headers-4.4.189-oxnas-tld-1/arch/armv6l/include/mach

nano /usr/src/linux-headers-4.4.189-oxnas-tld-1/include/net/sch_generic.h
insert #include <uapi/linux/pkt_cls.h>  before #include <linux/pkt_cls.h>

(leave # in front of the command)

nano /usr/src/rtl88x2bu-5.3.1/core/rtw_debug.c
delete RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__); (on line 45)

sudo dkms install rtl88x2bu/5.3.1

if everything worked ok it should run for a long time with no error messages.

modprobe 88x2bu

after that it should show up in iwconfig.

note: this may be a work around for other realtek devices and may need to be used when kernel updates are completed.
I also tried this on my Ubuntu laptop and it worked the same.
I tried not to miss any steps but if you get and error please post it and I will try to help:)

Viewing all articles
Browse latest Browse all 3178

Trending Articles