Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59739 - ebuild update for madwifi-driver
Summary: ebuild update for madwifi-driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-07 17:52 UTC by Pau Oliva
Modified: 2004-12-29 07:37 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cvs snapshot of madwifi-driver as 20040808 (madwifi-driver-0.1_pre20040808.tar.bz2,1.68 MB, application/octet-stream)
2004-08-07 17:58 UTC, Pau Oliva
Details
ebuild for the 20040808 snapshot of madwifi-driver (madwifi-driver-0.1_pre20040808.ebuild,1.25 KB, text/plain)
2004-08-07 18:00 UTC, Pau Oliva
Details
ebuild for the 20040808 snapshot of madwifi-driver (madwifi-driver-0.1_pre20040808.ebuild,1.26 KB, text/plain)
2004-08-08 09:30 UTC, Pau Oliva
Details
modified to detect and build against linux 2.6.8 (madwifi-driver-0.1_pre20040808.ebuild,1.58 KB, text/plain)
2004-08-19 11:13 UTC, Tavin Cole
Details
this is the patch to go in the FILESDIR (linux-2.6.8.patch,2.05 KB, patch)
2004-08-19 11:16 UTC, Tavin Cole
Details | Diff
madwifi-driver-0.1_pre20040824-r1 ebuild patch (madwifi-driver-0.1_pre20040824-r1.diff,926 bytes, patch)
2004-09-02 09:02 UTC, Bob Ketterhagen (RETIRED)
Details | Diff
madwifi-driver-0.1_pre20040824-r2.ebuild (madwifi-driver-0.1_pre20040824-r2.ebuild,2.11 KB, patch)
2004-09-06 07:54 UTC, Kai Zimmermann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pau Oliva 2004-08-07 17:52:51 UTC
Since 5 August, WPA branch of madwifi driver has been merged into HEAD. WPA branch is needed for wpa_supplicant (which is still not in portage, see bug 52854). Read official announcement here:

http://article.gmane.org/gmane.linux.drivers.madwifi.user/3774

The last ebuild in portage for madwifi-driver is 20040726 which still doesn't have WPA support on it.

Please find attached ebuild and cvs-snapshot of madwifi-driver with WPA support.

A modified ebuild for wpa_supplicant with madwifi support (using this newer version) is in bug 52854.
Comment 1 Pau Oliva 2004-08-07 17:58:54 UTC
Created attachment 36986 [details]
cvs snapshot of madwifi-driver as 20040808
Comment 2 Pau Oliva 2004-08-07 18:00:56 UTC
Created attachment 36987 [details]
ebuild for the 20040808 snapshot of madwifi-driver
Comment 3 Pau Oliva 2004-08-08 09:30:15 UTC
Created attachment 37045 [details]
ebuild for the 20040808 snapshot of madwifi-driver

This ebuild also builds and installs madwifi tools (athstats, athctrl...)
Comment 4 Tavin Cole 2004-08-19 11:13:39 UTC
Created attachment 37742 [details]
modified to detect and build against linux 2.6.8

this version of the ebuild checks for linux 2.6.8 and patches the madwifi
sources to build against 2.6.8
Comment 5 Tavin Cole 2004-08-19 11:16:11 UTC
Created attachment 37744 [details, diff]
this is the patch to go in the FILESDIR

/usr/local/portage/net-wireless/madwifi-driver/files/linux-2.6.8.patch
Comment 6 solar (RETIRED) gentoo-dev 2004-08-24 12:00:03 UTC
Please try todays snapshot.
emerge '=net-wireless/sys-madwifi-driver-0.1_pre20040824'
It's pulled directly from the WPA branch now.
Comment 7 adrian von buttlar 2004-08-25 01:38:34 UTC
madwifi-driver-0.1_pre20040824.ebuild doesn't compile against gentoo-dev-source-2.6.8-r2. you mentioned madwifi-driver-sys: typo or is my portage not current?

/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211/ieee80211_linux.c: In function `ieee80211_sysctl_debug':
/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211/ieee80211_linux.c:369: error: too few arguments to function `proc_dointvec'
/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211/ieee80211_linux.c:374: error: too few arguments to function `proc_dointvec'
Comment 8 Bob Ketterhagen (RETIRED) gentoo-dev 2004-08-26 15:21:40 UTC
Ya the upgrade from 2.6.7 to 2.6.8 went rather badly for my box. I will beat on it some more tonight with solar.
Comment 9 Bob Ketterhagen (RETIRED) gentoo-dev 2004-08-30 06:53:18 UTC
New madwifi-driver with support for 2.6.8
net-wireless/madwifi-driver-0.1_pre20040824-r1
Comment 10 Jan Dusek 2004-09-02 02:22:05 UTC
madwifi-driver-0.1_pre20040824-r1 doesn't compile against 2.6.8.1-mm4:

/var/tmp/portage/madwifi-driver-0.1_pre20040824-r1/work/net80211/ieee80211_wireless.c: In function `ieee80211_ioctl_iwsetup':
/var/tmp/portage/madwifi-driver-0.1_pre20040824-r1/work/net80211/ieee80211_wireless.c:2092: error: assignment of read-only member `num_private_args'
Comment 11 Bob Ketterhagen (RETIRED) gentoo-dev 2004-09-02 08:59:33 UTC
Try the attached diff.
To patch you ebuild.
Download the ebuild diff.
cd /usr/portage/net-wireless
patch -p0 < /path/to/diff
ebuild /usr/portage/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040824-r1 fetch
ebuild /usr/portage/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040824-r1 digest
ACCEPT_KEYWORD="~x86" emerge madwifi-driver
If this patch works for mm-sources let us know please.
Comment 12 Bob Ketterhagen (RETIRED) gentoo-dev 2004-09-02 09:02:37 UTC
Created attachment 38763 [details, diff]
madwifi-driver-0.1_pre20040824-r1
ebuild patch
Comment 13 Bob Ketterhagen (RETIRED) gentoo-dev 2004-09-02 09:04:29 UTC
Comment on attachment 38763 [details, diff]
madwifi-driver-0.1_pre20040824-r1
ebuild patch

for the mm-sources
Comment 14 solar (RETIRED) gentoo-dev 2004-09-03 09:05:07 UTC
Re comment #10 please confirm comment #11 && comment #12
Comment 15 Jan Dusek 2004-09-04 07:00:37 UTC
Confirmed. Compiles cleanly and seems to work.
Comment 16 Kai Zimmermann (RETIRED) gentoo-dev 2004-09-06 07:54:12 UTC
Created attachment 39051 [details, diff]
madwifi-driver-0.1_pre20040824-r2.ebuild

Hi,

somehow got the ''tools (athstats...) building section'' lost between Comment
#3 an the actual version :) I think the tools are a helpful thing and we should
install them with the driver.

kai
Comment 17 solar (RETIRED) gentoo-dev 2004-09-06 10:41:13 UTC
Re: comment #3 and comment #16 the file athctrl or a source file does not appear to exist.

I'd also rather make a separate madwifi-tools-YYYYMMDD.ebuild for the 
tool building of these tools.

For the driver..
Give us a few to do some testing on HEAD to see what's been updated.
Hopefully we wont have to do any patching.
Comment 18 solar (RETIRED) gentoo-dev 2004-09-06 11:13:13 UTC
I see why it does not exist now. athcrtl is not in the WPA brach.
It is however in HEAD
http://cvs.sourceforge.net/viewcvs.py/madwifi/madwifi/tools/

Update coming shortly however.
Comment 19 solar (RETIRED) gentoo-dev 2004-09-06 12:38:52 UTC
madwifi-driver-0.1_pre20040906 and madwifi-tools-0.1_pre20040906 
are both in the tree now. This should work for everybody.

emerge rsync
ACCEPT_KEYWORDS=~x86 emerge madwifi-driver madwifi-tools

Please test and CLOSE appropriate bugs if this solves the problem anybody was
having.
Comment 20 Jan Dusek 2004-09-08 12:08:37 UTC
madwifi-driver-0.1_pre20040906 again won't compile against 2.6.8.1:

/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_wireless.c: In function `ieee80211_ioctl_iwsetup':
/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_wireless.c:2180: error: assignment of read-only member `num_private_args'
Comment 21 solar (RETIRED) gentoo-dev 2004-09-08 12:50:27 UTC
Re comment #20
Are you using the -mm stuff? 
Comment 22 Jan Dusek 2004-09-08 13:30:01 UTC
Yes I am - sorry I forgot to mention that.
Comment 23 Pau Oliva 2004-09-21 15:55:36 UTC
Solar:

madwifi-driver pre20040906 doesn't build for me with kernel 2.6.9-rc2-mm1

I think the patch posted in comment #12 is outdated.

Will keep on messing with this and post if I have any success...
Comment 24 solar (RETIRED) gentoo-dev 2004-09-21 16:18:52 UTC
From: 	Ned Ludd <solar@gentoo.org>
To: 	Chris Saunders <csaunders@cogeco.net>
Subject: 	Re: madwifi-driver ebuilds 2.6.9 kernel
Date: 	Tue, 21 Sep 2004 11:47:08 -0400	
On Tue, 2004-09-21 at 05:40, Chris Saunders wrote:
> Good day gentlemen,
> 
> I've been having some strange problems with madwifi-driver packages with
> kernels linux-2.6.9-rc2-mm1 and linux-2.6.8-gentoo-r3.  The ebuilds
> don't compile at all under 2.6.9, and the modules won't load without an
> oops under the 2.6.8.  Where can I look for help on this one?  I have no
> problems running through docs, or digging into code (although I am
> definitely not a programmer) - I'm just not sure where to look!

With 2.6.8 the -mm series does not behave as the normal 2.6.8 it reverts
or incorrectly assumes a field is read-only when it should not be. This
section that it claims is a read-only variable seems to be incorrect. We
have made an attempt to make the madwifi-driver work for most cases. But
it's a pretty safe assumption to say that -mm is not supported or won't
be by us. -mm is a highly experimental kernel series which more or less
is a testing ground for scheduler of the week and stuff like reiser4
(It's not production ready)

Now. You assertion of saying you get segfaults with a -gentoo kernel
baffles me. This should not be the case unless somebody on our kernel
team is adding experimental patchsets to it (which they should not!).
When we chased down all the patches needed to make madwifi-driver multi
ssid & 2.6.x aware it was tested with gentoo's own kernel series and it
worked as expected.
If however it fails with what's going to be 2.6.9 you might want to send
a heads up to the madwifi author (UPSTREAM) as we Gentoo are only the
integrators vs the designers of it. 

Note: If you want a working madwifi please consider regressing your
kernel versions or spend a little time on the madwifi mailing list
hunting for patchsets.

Best of luck to you. 

> 
> Any suggestions?
> 
> Thank you for your help,
> 
> Chris
Comment 25 Pau Oliva 2004-09-21 18:44:16 UTC
I managed to compile it just by using the gentoo patch and commenting the function ieee80211_ioctl_iwsetup() in net80211/ieee80211_wireless.c 

It works fine but WPA suport is br0ken :(
Comment 26 Pau Oliva 2004-09-26 23:44:52 UTC
New patch from Volker Gropp in madwifi-devel to make madwifi compile with -mm kernels. Only works with CVS versions >= 040927 which have the changes done by Sam Leffler to deal with the sysctl handler api change in new kernel versions.

You can find the patch at
http://users.informatik.haw-hamburg.de/~gropp_v/madwifi-2.6.8-mm_and_later-040927.patch.bz2
Comment 27 Matteo Spreafico 2004-10-17 06:04:46 UTC
net-wireless/madwifi-driver-0.1_pre20040906 failed with development-sources-2.6.9_rc4

  CC [M]  /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.o
/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c: In function `eapol_input':
/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:289: error: union has no member named `ethernet'
/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:294: error: union has no member named `ethernet'
/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:296: error: union has no member named `ethernet'
make[3]: *** [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.o] Error 1
make[2]: *** [_module_/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-rc4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211'
make: *** [all] Error 1
Comment 28 Matteo Spreafico 2004-10-17 06:31:47 UTC
The problem in my previous comment is fixed in the madwifi CVS (17-10-2004).
Comment 29 solar (RETIRED) gentoo-dev 2004-10-19 12:03:52 UTC
A new 20041019 snapshot of madwifi-driver / madwifi-tools is in the tree. 

Please test with the following kernels.
linux-2.4.27
linux-2.6.7
linux-2.6.9
Comment 30 Matteo Spreafico 2004-10-20 13:02:27 UTC
madwifi-driver-0.1_pre20041019 works for me on linux 2.6.9 with gcc 3.4.2-r2
Comment 31 Henrik Brix Andersen 2004-11-01 05:41:15 UTC
Can this bug be closed as FIXED?
Comment 32 Henrik Brix Andersen 2004-12-29 06:37:47 UTC
horton, solar: what is the status of this bug report?
Comment 33 Bob Ketterhagen (RETIRED) gentoo-dev 2004-12-29 07:37:40 UTC
I am closing this one. It was fixed in our last ebuild.