You are not logged in.

#1 2011-02-08 20:33:12

ernia
Member
Registered: 2008-03-08
Posts: 27

aur newbie need help with a Realtek wireless driver PKGBUILD

Owning an RTL8188CUS usb dongle device i made myself a PKGBUILD for personal use, knowing almost nothig about AUR and makepkg.
While i'm trying to read this https://wiki.archlinux.org/index.php/Ar … _Etiquette and others related guides i think that maybe someone else would be glad to see it in AUR before i end reading :-) , e.g. https://bbs.archlinux.org/viewtopic.php?id=112790
So if someone would like to suggest  something or to propose a better PKGBUILD or to be the AUR maintainer of this I would be glad

#Mantainer ernia (or whoever more skilled feels like)
pkgname=8192cu
pkgver=2.0.1324
pkgrel=1
pkgdesc="Drivers for realtek RTL8188CUS chipset wireless cards"
arch=('i686' 'x86_64')
url="http://218.210.127.131/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&Downloads=true"
depends=('kernel26')
makedepends=('kernel26-headers')
license='unknown'
install='install.8192cu'
md5sums=('427bd8a8422b65223feb0198b22eb444')
fileprefix=''
source=("RTL8188CUS_linux_v2.0.1324.zip")

build() {

  cd ${srcdir}/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver
  tar xvf rtl8192CU_linux_v2.0.1324.20110126.tar.gz
  cd rtl8192CU_linux_v2.0.1324.20110126
  #it will not build without this sed
  sed "s#init_MUTEX(pmutex)#sema_init(pmutex,1)#" -i os_dep/osdep_service.c
  make
}
package() {
  mkdir -p ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/net/wireless/
  cd ${srcdir}/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126/
  install -p -m 644 8192cu.ko  ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/net/wireless/
} 

install.8192cu

 # arg 1:  the new package version
 post_install() {
   depmod -a
   echo "This driver is called 8192cu. Use 'modprobe 8192cu' to load it. If wicd does"
   echo "not work out of the box you could try to downgrade wpa_supplicant to 0.6.9"
 }
  
 # arg 1:  the new package version
 # arg 2:  the old package version
 post_upgrade() {
   post_install $1
 }
    
 # arg 1:  the old package version
 post_remove() {
   depmod -a
 }
      
 op=$1
 shift
 $op $*

The first question that would arise is about the src tarball download: they let you download the src tarball from an ftp server which does not let you authenticate as anonymous user but requires you to have an account that get created from the web site
http://218.210.127.131/downloads/downlo … Down=false
This account expires so you are supposed to visit the site before you are allowed to download. Where should (if allowed by licence which i did not find out yet)   the tarball could be made available? a dropbox account would be ok?
About the name of the pkg: viewing the name of the src folder the driver should fit RTL8192CU, 8188CUS and 8188CE-VAU chipsets, but the tarball that you download from realtek site are identical (same md5sum even if they have different filenames) for RTL8192CU and 8188CUS , while there is no available linux driver for 8188CE-VAU, which i don't know if works or not. would it make sense to change pkgname to RTL8192CU_8188CUS_8188CE-VAU and pkg ver to 2.0.1324.20110126? thanks for your help

Offline

#2 2011-02-16 02:20:37

naguz
Member
Registered: 2008-11-05
Posts: 98

Re: aur newbie need help with a Realtek wireless driver PKGBUILD

So that is what caused the wait until the ftp connection was made. Best thing to dou would be contact the Realtek maintainer (sorce code should contain email adress.
First, inform him that their drivers doesn't even build, (which is quite serious when they claim linux support to to the manufacturers who pish this to end users and naturally claims the same.), and secondly ask them if you'd be allowed to mirror the code for the purpose of making it possible for end users to easily install the drivers, or better yet: If Realtek could host it accessible by direct link.

I'd imagine it is pretty bad practice to host the source yourself, as (paranoid) people would have no idea if it is the original source, or if you have baked in some nasty stuff.

Offline

#3 2011-04-22 08:53:08

kahlil88
Member
From: Mendocino, CA
Registered: 2010-08-10
Posts: 138
Website

Re: aur newbie need help with a Realtek wireless driver PKGBUILD

I'm getting compile errors (no fault of your PKGBUILD, as they occur when compiling manually). Any chance you could hook me up with a pre-compiled i686 package?

make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.38-ARCH/build M=/home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126  modules
make[1]: Entering directory `/usr/src/linux-2.6.38-ARCH'
  CC [M]  /home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126/os_dep/osdep_service.o
  CC [M]  /home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126/os_dep/linux/usb_intf.o
/home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126/os_dep/linux/usb_intf.c: In function ‘rtw_drv_init’:
/home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126/os_dep/linux/usb_intf.c:917:23: error: ‘struct usb_device’ has no member named ‘autosuspend_delay’
make[2]: *** [/home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126/os_dep/linux/usb_intf.o] Error 1
make[1]: *** [_module_/home/kahlil/Downloads/realtek/src/RTL8192CU_8188CUS_8188CE-VAU_linux_v2.0.1324.20110126/driver/rtl8192CU_linux_v2.0.1324.20110126] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-ARCH'
make: *** [modules] Error 2


There is no system but GNU and Linux is one of its kernels.

Offline

#4 2011-05-12 12:24:48

Dehir
Member
From: Finland
Registered: 2009-11-08
Posts: 28

Re: aur newbie need help with a Realtek wireless driver PKGBUILD

Whats the status of this driver? I mean does it work. I figured out that i buy http://www.dealextreme.com/p/ultra-mini … pter-48166 card which is using this RTL8188CUS chip. But if the driver status is still broken i think ill try some more failsafe. Linux-wireless doesnt support these at moment i guess :\

Offline

#5 2013-04-07 11:37:36

hruodland
Member
Registered: 2011-05-17
Posts: 15

Re: aur newbie need help with a Realtek wireless driver PKGBUILD

This one works:

https://aur.archlinux.org/packages/dkms-8192cu/

Last edited by hruodland (2013-04-07 11:37:49)

Offline

Board footer

Powered by FluxBB