You are not logged in.

#1 2006-04-06 02:55:52

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

How to patch wlan-ng for compilation in 2.6.16 [solved]

The wlan-ng driver requires a patch to compile under the new kernel. It is in the CVS here:
http://cvs.archlinux.org/cgi-bin/viewcv … ag=CURRENT

How do I apply this patch?

Some specifics: http://lists.linux-wlan.com/pipermail/l … 03557.html

Thanks in advance.

Offline

#2 2006-04-06 06:27:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

It's all in the PKGBUILD, which is also in CVS.

Offline

#3 2006-04-06 22:54:33

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

Running the pkgbuild tells me I need wlan-ng26-utils. wlan-ng26 and wlan-ng26-utils are the same file:
ftp://ftp.linux-wlan.org/pub/linux-wlan … 2.3.tar.gz
The utils have their own pkgbuild and scripts. When trying to compile this the autoconfigure chooses the modules I don't want, and leaves out the one I do (usb). It also exits on an error.

How can I compile with pkgbuild but do the configuration myself?

Offline

#4 2006-04-06 23:25:51

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

There's a wlan-ng26 package in the repos for the Arch kernel

If you however want one for your kernel, Use abs, then modify the arch wlan-ng26 package to compile for your kernel

Offline

#5 2006-04-07 01:29:19

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

Thanks iphitus, I'd rather use the binaries. I installed them with pacman, but I don't know the name of the module to load. Before it was prism2_usb.

Offline

#6 2006-04-07 06:36:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

BurtHawk101 wrote:

Thanks iphitus, I'd rather use the binaries.

"The binaries" are the packages in the repos. wlan-ng26-utils provides the userspace utilities and firmware, and wlan-ng26 provides the kernel modules - including prism2_usb. All required patches have been applied.

If you want to recompile wlan-ng26 for a custom kernel, you just need to change the _kernver= line in the PKGBUILD to your particular kernel version e.g.

_kernver=2.6.16.1-burthawk

Offline

#7 2006-04-07 13:15:46

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

I downloaded both packages from the repo and installed them. The modules show up in
/lib/modules/2.6.16-ARCH/linux-wlan-ng which does match uname -r. Unfortunately, "modprobe prism2_usb" reports module not found, even when I cd to the wlan-ng folder and specify the .ko file.

If I can get the module loaded I should be set, because your post
http://bbs.archlinux.org/viewtopic.php? … ght=wlanng
is pretty comprehensive.

Offline

#8 2006-04-07 13:57:38

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

fixed in new package modules were installed to wrong place

Offline

#9 2006-04-07 22:08:41

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

I installed the new package (wlan-ng26-0.2.3-7.pkg.tar.gz), and now there is no wlan-ng folder in modules at all. modprobe prism2_usb still can't find the module.

Thanks

Offline

#10 2006-04-07 23:10:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

The directory is /lib/modules/2.6.16-ARCH/kernel/drivers/net/wireless/linux-wlan-ng.
I'm using 0.2.3-7 here, and it's working perfectly. Can you post the response to the following commands:

- modprobe prism2_usb
- lsusb
- uname -r
- ls /lib/modules/2.6.16-ARCH/kernel/drivers/net/wireless/linux-wlan-ng/

Offline

#11 2006-04-07 23:31:08

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

modprobe prism2_usb
FATAL: Module prism2_usb not found.
ls /lib/modules/2.6.16-ARCH/kernel/drivers/net/wireless/linux-wlan-ng/
p80211.ko
prism2_cs.ko
prism2_pci.ko
prism2_plx.ko
prism2_usb.ko

uname -r
2.6.16-ARCH

lsusb
Bus 001 Device 004: ID 08ec:0015 M-Systems Flash Disk Pioneers
Bus 001 Device 001: ID 0000:0000 
Bus 003 Device 002: ID 413c:8100 Dell Computer Corp. TrueMobile 1180 802.11b Adapter
Bus 003 Device 001: ID 0000:0000 
Bus 004 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000

Offline

#12 2006-04-08 00:13:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

This is a bit puzzling. Can you do

depmod -a

and then try the modprobe again? If you get no response, it's working. If you get an error, post it here, and then try

insmod /lib/modules/2.6.16-ARCH/kernel/drivers/net/wireless/linux-wlan-ng/prism2_usb.ko

Offline

#13 2006-04-08 00:23:06

BurtHawk101
Member
Registered: 2006-04-06
Posts: 8

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

Success with depmod -a.
Thank you tomk. You are truly a Trusted User.

Offline

#14 2006-04-27 18:06:30

Corneliax
Member
From: Indianapolis, IN
Registered: 2004-04-27
Posts: 43
Website

Re: How to patch wlan-ng for compilation in 2.6.16 [solved]

solved my problem as well with "depmod -a"
Thanks, tomk!

Offline

Board footer

Powered by FluxBB