Issues with rt18821AU linux Wi-Fi driver

I’m having problems running an autoinstall script for a linux Wi-Fi driver off of my pocketbeagle. When I run the install file (./install.sh) I receive the following:

debian@beaglebone:/drivers/linux$ sudo ./install.sh

[sudo] password for debian:

##################################################

Realtek Wi-Fi driver Auto installation script

Novembor, 21 2011 v1.1.0

##################################################

Decompress the driver source tar ball:

rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51.tar.gz

[…all of the files associated with rtl8821AU]

Authentication requested [root] for make clean:

cd hal/OUTSRC/ ; rm -fr /.mod.c /.mod /.o /..cmd /.ko

cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd hal/led ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd hal ; rm -fr //.mod.c //.mod //.o //..cmd //*.ko

cd hal ; rm -fr /.mod.c /.mod /.o /..cmd /.ko

cd hal ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd core/efuse ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd core ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd os_dep/linux ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd os_dep ; rm -fr *.mod.c *.mod .o ..cmd *.ko

cd platform ; rm -fr *.mod.c *.mod .o ..cmd *.ko

rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order

rm -fr *.mod.c *.mod .o ..cmd *.ko *~

rm -fr .tmp_versions

Authentication requested [root] for make driver:

make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.9.82-ti-r102/build M=/driv ers/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 m odules

make[1]: Entering directory ‘/usr/src/linux-headers-4.9.82-ti-r102’

Makefile:629: 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.9.82-ti-r102’

Makefile:1551: recipe for target ‘modules’ failed

make: *** [modules] Error 2

##################################################

Compile make driver error: 2

Please check error Mesg

##################################################

This is what my /drivers/ folder looks like in my terminal:

This driver corresponds with the Wi-Fi dongle I am using (https://www.ourlink.us/products/glam-hobby-600mbps-ac600-dual-band-usb-wifi-dongle-wireless-network-adapter-for-laptop-desktop-computer-backward-compatible-with-802-11-a-b-g-n-products-2-4-ghz-150mbps-5ghz-433mbps) and the driver download found here: https://jumpshare.com/v/M3ydBZPgr5zHnPRIuY4e

So far I have connected my pocketbeagle to the internet via my USB cable by configuring the default gateway and editing resolv.conf to be able to resolve nameservers, did a sudo apt-get install for linux-headers-4.9.82-ti-r102, and plugged in the wi-fi dongle to a breakout board. However, the autoinstall script isn’t running and I am not sure what to do from this point but am eager to learn. Anyone have any tips?

ARCH=arm

Fix their broken install.sh

Regards,

Ah, I’m sorry I am kind of a newbie at this. How would I do that?

The install.sh file from Realtek (or where ever you got the driver install script) sets the architecture (“ARCH”) to “armv7l”. I’m guessing (haven’t run this myself) that the build environment you have doesn’t know what that is and you might be able to complete the install if you find where "make ARCH=armv7l "… is in install.sh and replace “armv7l” with just “arm” and try the newly modified install.sh again. I’d recommend making a copy of install.sh and modifying that.

Hi, how do you connect 8812AU to your PocketBeagle? Did you make a Cape or buy from somewhere? Thanks.