Issues with rt18821AU linux Wi-Fi driver

319 views
Skip to first unread message

danie...@tamu.edu

unread,
May 23, 2018, 1:16:30 PM5/23/18
to BeagleBoard
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:

 


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?


Robert Nelson

unread,
May 23, 2018, 1:36:12 PM5/23/18
to Beagle Board, danie...@tamu.edu
ARCH=arm

Fix their broken install.sh

Regards,

--
Robert Nelson
https://rcn-ee.com/

danie...@tamu.edu

unread,
May 23, 2018, 2:22:15 PM5/23/18
to BeagleBoard
Ah, I'm sorry I am kind of a newbie at this. How would I do that?

ana6...@gmail.com

unread,
Jun 28, 2018, 3:55:24 PM6/28/18
to BeagleBoard
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.

xbi...@gmail.com

unread,
Sep 3, 2018, 5:28:17 AM9/3/18
to BeagleBoard
Hi, how do you connect 8812AU to your PocketBeagle? Did you make a Cape or buy from somewhere? Thanks.
Reply all
Reply to author
Forward
0 new messages