Installing module rtl88x2bu for 1200ac usb wifi November 14, 2019 10:10PM |
Registered: 6 years ago Posts: 183 |
cd /boot dpkg -i /boot/linux-headers-x.xx.xxx-oxnas-tld-1_1.0_armel.deb (or current version)
apt install git dkms build-essential
git clone https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git
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
cd /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/arch/ ln -s arm armv6l
cd /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/arch/armv6l/include/asm/mach (or current Linux-headers) cp -r irq.h irqs.h nano irqs.h (change all instances of irq.h in file to irqs.h)
cd /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/include/linux/ cp -r /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/arch/armv6l/include/asm/mach/irqs.h irqs.h
cp -r /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/arch/armv6l/include/asm/mach /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/arch/armv6l/include/mach
nano /usr/src/linux-headers-x.xx.xxx-oxnas-tld-1/include/net/sch_generic.h insert #include <uapi/linux/pkt_cls.h> before #include <linux/pkt_cls.h>
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
modprobe 88x2bu
Re: Installing module rtl88x2bu for 1200ac usb wifi November 15, 2019 03:58AM |
Admin Registered: 14 years ago Posts: 19,287 |
insert #include <uapi/linux/pkt_cls.h> before #include <linux/pkt_cls.h>
Re: Installing module rtl88x2bu for 1200ac usb wifi November 16, 2019 12:00AM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi November 16, 2019 09:06PM |
Admin Registered: 14 years ago Posts: 19,287 |
Quote
Kernel linux-4.4.201-oxnas-tld-1 package was uploaded.
New/Update features:
- Pickup security patches from mainline.
- This kernel header now can be installed and used to build modules, without any special tweaks (this issue was described here).
Re: Installing module rtl88x2bu for 1200ac usb wifi November 17, 2019 11:36PM |
Registered: 6 years ago Posts: 183 |
dpkg -i linux-image-4.4.201-oxnas-tld-1_1.0_armel.deb Selecting previously unselected package linux-image-4.4.201-oxnas-tld-1. (Reading database ... 54573 files and directories currently installed.) Preparing to unpack linux-image-4.4.201-oxnas-tld-1_1.0_armel.deb ... Unpacking linux-image-4.4.201-oxnas-tld-1 (1.0) ... Setting up linux-image-4.4.201-oxnas-tld-1 (1.0) ... dkms: running auto installation service for kernel 4.4.201-oxnas-tld-1:Error! Your kernel headers for kernel 4.4.201-oxnas-tld-1 cannot be found. Please install the linux-headers-4.4.201-oxnas-tld-1 package, or use the --kernelsourcedir option to tell DKMS where it's located
dpkg -i linux-headers-4.4.201-oxnas-tld-1_1.0_armel.deb Selecting previously unselected package linux-headers-4.4.201-oxnas-tld-1. (Reading database ... 55999 files and directories currently installed.) Preparing to unpack linux-headers-4.4.201-oxnas-tld-1_1.0_armel.deb ... Unpacking linux-headers-4.4.201-oxnas-tld-1 (1.0) ... Setting up linux-headers-4.4.201-oxnas-tld-1 (1.0) ...
dpkg -i linux-image-4.4.201-oxnas-tld-1_1.0_armel.deb (Reading database ... 70064 files and directories currently installed.) Preparing to unpack linux-image-4.4.201-oxnas-tld-1_1.0_armel.deb ... Unpacking linux-image-4.4.201-oxnas-tld-1 (1.0) over (1.0) ... Setting up linux-image-4.4.201-oxnas-tld-1 (1.0) ... dkms: running auto installation service for kernel 4.4.201-oxnas-tld-1: Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j2 KERNELRELEASE=4.4.201-oxnas-tld-1 KVER=4.4.201-oxnas-tld-1 src=/usr/src/rtl88x2bu-5.3.1......(bad exit status: 2) Error! Bad return status for module build on kernel: 4.4.201-oxnas-tld-1 (armv6l) Consult /var/lib/dkms/rtl88x2bu/5.3.1/build/make.log for more information.
DKMS make.log for rtl88x2bu-5.3.1 for kernel 4.4.201-oxnas-tld-1 (armv6l) Sun Nov 17 23:17:21 EST 2019 /bin/sh: 1: bc: not found make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.201-oxnas-tld-1/build M=/var/lib/dkms/rtl88x2bu> make[1]: Entering directory '/usr/src/linux-headers-4.4.201-oxnas-tld-1' Makefile:631: arch/armv6l/Makefile: No such file or directory make[1]: *** No rule to make target 'arch/armv6l/Makefile'. Stop. make[1]: Leaving directory '/usr/src/linux-headers-4.4.201-oxnas-tld-1' make: *** [Makefile:2011: modules] Error 2
/usr/src/linux-headers-4.4.201-oxnas-tld-1/arch# ln -s arm armv6l
dpkg -i linux-image-4.4.201-oxnas-tld-1_1.0_armel.deb (Reading database ... 70064 files and directories currently installed.) Preparing to unpack linux-image-4.4.201-oxnas-tld-1_1.0_armel.deb ... Unpacking linux-image-4.4.201-oxnas-tld-1 (1.0) over (1.0) ... Setting up linux-image-4.4.201-oxnas-tld-1 (1.0) ... dkms: running auto installation service for kernel 4.4.201-oxnas-tld-1: Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j2 KERNELRELEASE=4.4.201-oxnas-tld-1 KVER=4.4.201-oxnas-tld-1 src=/usr/src/rtl88x2bu-5.3.1................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. cleaning build area... DKMS: build completed. 88x2bu.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/4.4.201-oxnas-tld-1/updates/dkms/ depmod.... Failed to restart systemd-modules-load.service: Connection timed out See system logs and 'systemctl status systemd-modules-load.service' for details. DKMS: install completed. . update-initramfs: Generating /boot/initrd.img-4.4.201-oxnas-tld-1
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 02:39AM |
Registered: 6 years ago Posts: 183 |
sudo create_ap -g 10.10.6.72 wlxb wlp0s0 myap myappassword WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt Config dir: /tmp/create_ap.wlxb.conf.7Mf1i5DR PID: 14381 Network Manager found, set wlxbas unmanaged device... DONE Sharing Internet using method: nat hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlxb.conf.7Mf1i5DR/hostapd_ctrl Configuration file: /tmp/create_ap.wlxb.conf.7Mf1i5DR/hostapd.conf Using interface wlxb with hwaddr xx:xx:xx:xx:xx:xx and ssid "myap" wlxbc: interface state UNINITIALIZED->ENABLED wlxbc: AP-ENABLED
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 03:14AM |
Admin Registered: 14 years ago Posts: 19,287 |
Quote
the thing we are missing in the headers is that it is calling for (armv6l) which is actually a symbolic link to the original file arm:
/usr/src/linux-headers-4.4.201-oxnas-tld-1/arch# ln -s arm armv6l
Quote
not sure at this point how to set it to autorun on startup:)
create_ap -g 10.10.6.72 wlxb wlp0s0 myap myappassword
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 09:55AM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 05:22PM |
Admin Registered: 14 years ago Posts: 19,287 |
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.201-oxnas-tld-1/build M=/var/lib/dkms/rtl88x2bu>Usually this is just arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.201-oxnas-tld-1/build M=/var/lib/dkms/rtl88x2bu>
Linux version 4.4.201-oxnas-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
Linux version 4.4.201-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6) ) #1 SMP PREEMPT Fri Nov 15 04:12:45 PST 2019
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 06:39PM |
Registered: 6 years ago Posts: 183 |
/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.201-oxnas-tld-1/build M=/root/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 modules
PACKAGE_NAME="rtl88x2bu" PACKAGE_VERSION="5.3.1" MAKE[0]="make KVER=$kernelver src=$source_tree/rtl88x2bu-$PACKAGE_VERSION" CLEAN="make clean" BUILT_MODULE_NAME[0]="88x2bu" DEST_MODULE_LOCATION[0]="/kernel/drivers/net" AUTOINSTALL="yes"
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 06:48PM |
Admin Registered: 14 years ago Posts: 19,287 |
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.201-oxnas-tld-1/build M=/root/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 modules
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 10:08PM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 10:21PM |
Registered: 6 years ago Posts: 183 |
> create_ap -g 10.10.6.72 wlxb wlp0s0 myap > myappassword >
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 10:40PM |
Admin Registered: 14 years ago Posts: 19,287 |
Re: Installing module rtl88x2bu for 1200ac usb wifi November 18, 2019 11:08PM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi May 22, 2020 10:20PM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi May 23, 2020 08:32AM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi May 23, 2020 05:57PM |
Admin Registered: 14 years ago Posts: 19,287 |
Re: Installing module rtl88x2bu for 1200ac usb wifi May 24, 2020 10:35PM |
Registered: 6 years ago Posts: 183 |
Re: Installing module rtl88x2bu for 1200ac usb wifi May 24, 2020 10:39PM |
Admin Registered: 14 years ago Posts: 19,287 |
Re: Installing module rtl88x2bu for 1200ac usb wifi October 16, 2020 10:41PM |
Registered: 6 years ago Posts: 183 |