You are not logged in.

#1 2010-08-19 19:54:59

Fackamato
Member
Registered: 2006-03-31
Posts: 579

compat-wireless-all is here (was -ck)

I managed to create a PKGBUILD that makes the modules for all installed kernels. It doesn't work with -git kernels for some reason, if you have a -git kernel installed, feel free to troubleshoot.

It's in AUR . http://aur.archlinux.org/packages.php?ID=40123

cheers

Last edited by Fackamato (2010-08-22 13:31:59)

Offline

#2 2010-10-04 16:22:09

cruznick
Member
From: México
Registered: 2010-07-15
Posts: 37
Website

Re: compat-wireless-all is here (was -ck)

Hi I want to first thank you about the pkgbuild I'm using it but i have a little problem I wanto to make a patched version o compat-wireless for using it with aircrack-ng but I'm getting some troubles with the md5sum of the source because when te source gets downloaded from http://wireless.kernel.org/download/com … eless-2.6/ it's get rename to "-}.tar.bz2" so i cant make a md5sum
here is the pkgbuild that i make in fact it's yours I only made some changes like adding the patches and the new source version

# Maintainer:  hokasch <hokasch at operamail dot com>
# Contributor: Dennis Brendel <buddabrod at gmail dot com>
# Contributor: Mathias Buren <mathias.buren at gmail dot com>
# Patched Version Contributor: Cruznick <cruznick@archlinux.us>

pkgname=compat-wireless-patched
srcname=compat-wireless
pkgver=2010_10_02
pkgrel=2
pkgdesc='compat wireless driver patched for fixing issues with "fixed-channel -1" and mac80211 patch from aircrack'
arch=('i686' 'x86_64')
url='http://wireless.kernel.org/'
license=('GPL')
depends=('kernel26')
makedepends=('linux-api-headers' 'kernel26-headers')
install=compat-wireless-all.install
md5sums=('8438704433617a2ecf74409cfd7e1c0b' '12553c7b16b615f979def399c47b3a76')
source=('http://wireless.kernel.org/download/compat-wireless-2.6/$srcname-${pkgver//_/-}.tar.bz2' 'mac80211.compat08082009.wl_frag+ack_v1.patch' 'channel-negative-one-maxim.patch')

### Enable using of version numbers from pacman. This should only be used if you have kernels with
### long version numbers (for example if compiled with git-suffixes). This will not work with kernels
### compiled outside pacman's management, and takes much longer than the canonical method, due to 
### needing to search the local repository. Set to '1' to enable.
USE_PACMAN_VERSION=0

# If you don't want to build all drivers, select which group you want to build
# below by setting the variable to the group name. If the variable is empty then
# then all drivers will be built. Example:
# DRIVER_GROUP='iwlwifi'

# Supported 802.11 drivers:
#    ath5k
#    ath9k
#    ath9k_htc
#    ar9170
#    b43
#    zd1211rw
#    rt2x00

# Supported Ethernet drivers:
#    atl1
#    atl2
#    atl1e
#    atl1c

# Supported groups of drivers:
# atheros <  ath5k ath9k ar9170 zd1211rw >
# ath <  ath5k ath9k ar9170 >
# intel <  iwl3945 iwlagn ipw2100 ipw2200 >
# iwlwifi <  iwl3945 iwlagn >
# rtl818x <  rtl8180 rtl8187 >
# wl12xx <  wl1251 (SPI and SDIO) wl1271 >

DRIVER_GROUP='b43'

build() {

  if [ "$USE_PACMAN_VERSION" = "0" ]; then
   _KERNELS=`file /boot/* | grep 'Linux kernel.*boot executable' | sed 's/.*version \([^ ]\+\).*/\1/'`
   # Skip -git kernels, they don't work for now, for some reason
  else
    _PACKAGES=`pacman -Qsq kernel26`
    _KERNELS=`pacman -Ql $PACKAGES | grep /modules.alias.bin | sed 's/kernel26.*\/lib\/modules\/\(.*\)\/modules.alias.bin/\1/g'`
  fi

  cd "$srcdir/$srcname-${pkgver//_/-}"
  
  #Patching 

  patch -p1 -i ${srcdir}/mac80211.compat08082009.wl_frag+ack_v1.patch || return 1 
  patch -p1 -i ${srcdir}/channel-negative-one-maxim.patch || return 1 

  ##uncomment if you encounter problems with rt2870 
  #sed -i 's/^\# CONFIG_RT2800USB_RT30XX/CONFIG_RT2800USB_RT30XX/' config.mk

  # Select the driver group
  if [ "DRIVER_GROUP" = "" ]; then
    msg "All drivers selected for build."
  else
    msg "Selecting $DRIVER_GROUP as requested..."
    scripts/driver-select $DRIVER_GROUP || return 1  
  fi

  # Loop through all detected kernels and build
  for _kernver in $_KERNELS; do  
    msg "Building drivers for $_kernver ..."
    make KLIB=/lib/modules/${_kernver} || return 1

    msg "Done building for $_kernver."
    msg "Installing modules for $_kernver inside package..."
    mkdir -p $pkgdir/lib/modules/${_kernver}/updates/drivers/{net/{wireless,mac80211,bluetooth/{bnep,cmtp,hidp,rfcomm}},ssb,misc/eeprom,bluetooth}
    mkdir -p $pkgdir/lib/modules/${_kernver}/updates/{compat,net/{bluetooth/{bnep,cmtp,hidp,rfcomm},mac80211,wireless}}

    make KLIB=/lib/modules/${_kernver} KMODPATH_ARG="INSTALL_MOD_PATH=$pkgdir" install-modules || return 1
    msg "Done installing modules for $_kernver."

  done
    install -dm755 $pkgdir/usr/sbin
    install -dm755 $pkgdir/lib/udev/rules.d
    install -dm755 $pkgdir/usr/lib/compat-wireless
    install scripts/madwifi-unload    $pkgdir/usr/sbin/
    install scripts/athenable        $pkgdir/usr/sbin/
    install scripts/b43enable        $pkgdir/usr/sbin/
    install scripts/iwl-enable        $pkgdir/usr/sbin/
    install scripts/athload        $pkgdir/usr/sbin/
    install scripts/b43load        $pkgdir/usr/sbin/
    install scripts/iwl-load        $pkgdir/usr/sbin/
    install udev/compat_firmware.sh    $pkgdir/lib/udev/
    install udev/50-compat_firmware.rules $pkgdir/lib/udev/rules.d/
    install scripts/modlib.sh        $pkgdir/usr/lib/compat-wireless/
    install scripts/check_depmod      $pkgdir/usr/lib/compat-wireless/
}

Offline

#3 2010-10-04 18:22:58

fphillips
Member
From: Austin, TX
Registered: 2009-01-24
Posts: 202

Re: compat-wireless-all is here (was -ck)

Just remove the single quotes from around the first item so they don't interfere with that sed code or whatever it is:

source=(http://wireless.kernel.org/download/compat-wireless-2.6/$srcname-${pkgver//_/-}.tar.bz2 'mac80211.compat08082009.wl_frag+ack_v1.patch' 'channel-negative-one-maxim.patch')

Thanks, I was trying to find out why injection wasn't working with my iwl3945. I just installed aircrack-ng for the first time yesterday.

I'm getting stuff like this when I use makepkg:

==> Building drivers for &͘
                                , ...
/home/fp/builds/compat-wireless-all/src/compat-wireless-2010-10-02/config.mk:196: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
make -C /lib/modules/\261\323\001\216\211&\001\264\315\230\020\013,/build M=/home/fp/builds/compat-wireless-all/src/compat-wireless-2010-10-02 modules
/bin/sh: 001264315230020013,/build: No such file or directory
make: *** [modules] Error 127
make: *** /lib/modules/261323001216211: No such file or directory.  Stop.
    Aborting...

I don't know if bsdtar is not uncompressing correctly or what. I've tried downloading multiple compat*tar.bz2, with the same result.

Offline

#4 2010-10-04 18:44:03

fphillips
Member
From: Austin, TX
Registered: 2009-01-24
Posts: 202

Re: compat-wireless-all is here (was -ck)

Well it has something to do with USE_PACMAN_VERSION in the PKGBUILD, so it's Arch specific.
See the comments here, for example:
https://aur.archlinux.org/packages.php?ID=31123

Offline

#5 2010-10-04 20:55:55

cruznick
Member
From: México
Registered: 2010-07-15
Posts: 37
Website

Re: compat-wireless-all is here (was -ck)

Thanks @fphillips for the help thanks to your coments I was able to solve  some issues now i'm compiling it for various drivers but I'm getting some errors when trying to compile al drivers also with athereos and ath group of drivers  but when selecting what i think is a single driver it compiles

selecting  ath group getting this error :

Processing new driver-select request...
Backup exists: Makefile.bk
Backup exists: drivers/net/wireless/Makefile.bk
Backup exists: Makefile.bk
Backup exists: net/wireless/Makefile.bk
Backup exists: drivers/net/Makefile.bk
Backup exists: drivers/ssb/Makefile.bk
Backup exists: drivers/misc/eeprom/Makefile.bk
make -C /lib/modules/2.6.35-ARCH/build M=/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02 modules
make[1]: se ingresa al directorio `/usr/src/linux-2.6.35-ARCH'
  CC [M]  /home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.o
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.c:1566:5: error: redefinición de 'ath_rate_control_register'
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.h:231:19: nota: la definición previa de 'ath_rate_control_register' estaba aquí
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.c:1571:6: error: redefinición de 'ath_rate_control_unregister'
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.h:236:20: nota: la definición previa de 'ath_rate_control_unregister' estaba aquí
make[5]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.o] Error 1
make[4]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath] Error 2
make[2]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.35-ARCH'
make: *** [modules] Error 2
    Abortando...

selecting atheros group of drivers  (almost the same error)

Processing new driver-select request...
Backup exists: Makefile.bk
Backup exists: drivers/net/wireless/Makefile.bk
Backup exists: Makefile.bk
Backup exists: net/wireless/Makefile.bk
Backup exists: drivers/net/Makefile.bk
Backup exists: drivers/ssb/Makefile.bk
Backup exists: drivers/misc/eeprom/Makefile.bk
make -C /lib/modules/2.6.35-ARCH/build M=/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02 modules
make[1]: se ingresa al directorio `/usr/src/linux-2.6.35-ARCH'
  CC [M]  /home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.o
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.c:1566:5: error: redefinición de 'ath_rate_control_register'
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.h:231:19: nota: la definición previa de 'ath_rate_control_register' estaba aquí
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.c:1571:6: error: redefinición de 'ath_rate_control_unregister'
/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.h:236:20: nota: la definición previa de 'ath_rate_control_unregister' estaba aquí
make[5]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k/rc.o] Error 1
make[4]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless/ath] Error 2
make[2]: *** [/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/cruznick/Repo/Pkgbuilds/compat/src/compat-wireless-2010-10-02] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.35-ARCH'
make: *** [modules] Error 2
    Abortando...

As I said above selecting individual drivers works (wich i have tested):
b43, ath5k, rt2x00
(b43 fully working )

drivers groups wich I have tested
intel , iwlwifi, wl12xx


here it is
http://aur.archlinux.org/packages.php?ID=41472

Last edited by cruznick (2010-10-05 01:21:00)

Offline

#6 2010-10-04 21:07:47

cruznick
Member
From: México
Registered: 2010-07-15
Posts: 37
Website

Re: compat-wireless-all is here (was -ck)

and about your error I think you should check about this

/home/fp/builds/compat-wireless-all/src/compat-wireless-2010-10-02/config.mk:196: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."

Offline

#7 2010-10-04 21:31:37

fphillips
Member
From: Austin, TX
Registered: 2009-01-24
Posts: 202

Re: compat-wireless-all is here (was -ck)

Yes I get the same error. ath9k needs a patch. Maybe a different compat tarball won't have the bug.

iwlwifi group is working here, too. Here are some other comments:

I have stock and -lts kernels installed. It tries to build for both kernels, but -lts doesn't have a build directory in /lib/modules, so it fails. I uninstalled the -lts kernel, but it should skip it like it does for -git kernels.

There is two DRIVER_GROUP lines. You can remove the one for b43, but mention it as a possible group.

Also, it would be nice if all the bluetooth stuff didn't get built, I think it is unnecessary for this package. Maybe patch the Makefile with a BT=FALSE ?

Last edited by fphillips (2010-10-04 22:30:15)

Offline

#8 2010-10-05 01:38:36

cruznick
Member
From: México
Registered: 2010-07-15
Posts: 37
Website

Re: compat-wireless-all is here (was -ck)

well I just figure out that the reason it wasn't the pkgbuild it was the source maybe a bug but now with source version 2010-10-04 it compiles complety so I think it's a matter of luck when compiling the pkg for bluetooth well I haven't think about that so I don't have a way to do it in this moment I'm going to search some info about it and for a posible way to skip that part  and  for the momente the pkg its working with  last update


Edit : Well having random troubles with atheros and ath groups again from that group only ath5k driver is compiling

Edit 2 : Well it seems that this is kernel trouble see this https://bbs.archlinux.org/viewtopic.php?id=105871

Last edited by cruznick (2010-10-05 02:10:09)

Offline

#9 2010-10-05 16:17:54

cruznick
Member
From: México
Registered: 2010-07-15
Posts: 37
Website

Re: compat-wireless-all is here (was -ck)

I made another pkgbuild but for the stable compat-wireless with that one all groups compiles http://aur.archlinux.org/packages.php?ID=41472

Offline

Board footer

Powered by FluxBB