I recently got a usb wifi based on RTL8192EU chipset.
$this->bbcode_second_pass_code('', '
lsusb: ID 0bda:818b Realtek Semiconductor Corp.
')
In archlinux, there is no support for this chip. There is no aur package as well.
So i took the zip that came with the CD: RTL8192EU_linux_v4.2.2_7585.20130524.zip and tried to compile it. These are the steps in order to compile it in my X64_86 machine running archlinux:
$this->bbcode_second_pass_code('', '
unzip RTL8192EU_linux_v4.2.2_7585.20130524.zip
cd RTL8192EU_linux_v4.2.2_7585.20130524/driver
tar zxvf rtl8192EU_linux_v4.2.2_7585.20130524.tar.gz
cd ../
patch -p0 < os_intfs.c.patch.txt
cd driver/rtl8192EU_linux_v4.2.2_7585.20130524
')
I had to add EXTRA_CFLAGS += -Wno-error=date-time in Makefile located in driver/rtl8192EU_linux_v4.2.2_7585.20130524 folder and also change function name strnicmp to strncasecmp in file /driver/rtl8192EU_linux_v4.2.2_7585.20130524/os_dep/linux/rtw_android.c (line 227).
Finally running make inside driver/rtl8192EU_linux_v4.2.2_7585.20130524 produces the apropriate kernel modules that i load successfully with insmod ./
So there are 3 patches and one source code zip file.
How can i make a PKGBUILD in order to compile automatically the module every time i update my system?
My purpose is to put this wifi card in my raspbery pi.
But when i run make on my raspberry pi, while following the above steps i get almost nothing:
$this->bbcode_second_pass_code('', '
☁ rtl8192EU_linux_v4.2.2_7585.20130524 make
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/3.18.10-3-ARCH/build M=/home/user/download/temp/realtek/RTL8192EU_linux_v4.2.2_7585.20130524/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules
make[1]: Entering directory '/usr/lib/modules/3.18.10-3-ARCH/build'
Makefile:610: arch/armv6l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv6l/Makefile'. Stop.
make[1]: Leaving directory '/usr/lib/modules/3.18.10-3-ARCH/build'
Makefile:1043: recipe for target 'modules' failed
make: *** [modules] Error 2
')
Is there a way to make a PKGBUILD for any architecture, that will take care of compiling? I don't know where to start!
Do you think that the driver supports armv architecture?