I’m using a ReComputer J1020, and trying to install the AC1300 T4U v3 usb wireless adapter driver from https://github.com/cilynx/rtl88x2bu using:
cd rtl88x2bu-5.8.7.1_35809.20191129_COEX20191120-7777
VER=$(sed -n ‘s/\PACKAGE_VERSION=“(.*)”/\1/p’ dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu
Running
sudo dkms build -m rtl88x2bu -v ${VER}
gives
Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area…
‘make’ -j 4 KVER=4.9.299-tegra src=/usr/src/rtl88x2bu-5.8.7.1…(bad exit status: 2)
ERROR (dkms apport): binary package for rtl88x2bu: 5.8.7.1 not found
Error! Bad return status for module build on kernel: 4.9.299-tegra (aarch64)
Consult /var/lib/dkms/rtl88x2bu/5.8.7.1/build/make.log for more information.
Then
more /var/lib/dkms/rtl88x2bu/5.8.7.1/build/make.log
gives
DKMS make.log for rtl88x2bu-5.8.7.1 for kernel 4.9.299-tegra (aarch64)
Fri 22 Mar 12:49:12 GMT 2024
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/4.9.299-tegra/build M=/var/lib/
dkms/rtl88x2bu/5.8.7.1/build modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.9.299-tegra-ubuntu18.04_aa
rch64/kernel-4.9’
Makefile:677: arch/aarch64/Makefile: No such file or directory
make[1]: *** No rule to make target ‘arch/aarch64/Makefile’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.9.299-tegra-ubuntu18.04_aar
ch64/kernel-4.9’
Makefile:2394: recipe for target ‘modules’ failed
make: *** [modules] Error 2
I think the issue might be aarch64/amd64 confusion. I tried
export ARCH=arm64
at the command line but no joy.
What is wrong?
(I have a fair amount of computer and programming experience, not a huge amount with Linux but I can normally get by. I have the same wireless adapter running fine on an old HP laptop running Ubuntu 22.04).
Many thanks!