Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181984 - net-wireless/rt2500 kernel config check fails w/ vanilla-sources 2.6.22-rc4
Summary: net-wireless/rt2500 kernel config check fails w/ vanilla-sources 2.6.22-rc4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.22
  Show dependency tree
 
Reported: 2007-06-14 06:08 UTC by Andi
Modified: 2007-07-15 22:12 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,3.60 KB, text/plain)
2007-07-10 22:59 UTC, Thomas Cort
Details
rt2500/rt2500-1.1.0_pre2007020911.ebuild (rt2500-1.1.0_pre2007020911.ebuild,1.58 KB, text/plain)
2007-07-15 12:35 UTC, Ed Catmur
Details
2.6.22.patch (2.6.22.patch,934 bytes, patch)
2007-07-15 12:36 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andi 2007-06-14 06:08:51 UTC
Upgraded my system to use Kernel vanilla-sources 2.6.22-rc4, but now I can't install rt2500.

 * checking rt2500-1.1.0_pre2007020911.tar.gz ;-) ...                                                                [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.22-rc4
 * Checking for suitable kernel configuration options...
 *   CONFIG_NET_RADIO:	 is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge rt2500
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-14 07:02:52 UTC
This is *not* a Gentoo bugzilla product bug; read the descriptions please.
Comment 2 Thomas Cort 2007-06-30 01:38:34 UTC
I also have this problem. I tried removing the CONFIG_NET_RADIO check from the ebuild, but it still failed due to a compile error. I believe some kernel APIs changed since 2007020911.

I used the latest CVS snapshot (2007062815) from the driver homepage ( http://rt2x00.serialmonkey.com ) and got it to compile. The module loads and I can see an access point via RaConfig2500. I haven't done any further testing, I'm away from home on vacation.

This bug should really be closed as a duplicate of Bug #181973 because the "fix" to make the driver work with 2.6.22 is to do a version bump to a newer CVS snapshot.
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2007-07-10 13:07:52 UTC
We need to fix this in the stable tree before 2.6.22 goes stable, so there may not be enough time to add a new snapshot AND mark it stable. If someone wants to post the compiler errors, I'll comment on how they can be fixed.

The CONFIG_CHECK situation can be fixed with something along these lines:
https://bugs.gentoo.org/attachment.cgi?id=124396&action=view
Comment 4 Thomas Cort 2007-07-10 22:59:40 UTC
Created attachment 124492 [details]
build.log

Here are the errors I got when I tried to build rt2500-1.1.0_pre2007020911 against vanilla sources 2.6.22.1
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2007-07-11 23:00:03 UTC
/var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007020911/work/rt2500-cvs-2007020911/Module/rtmp_main.c: In function 'rt2500_init_module':
/var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007020911/work/rt2500-cvs-2007020911/Module/rtmp_main.c:1015: warning: implicit declaration of function 'pci_module_init'

replace pci_module_init with pci_register_driver (unconditionally)

/var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007020911/work/rt2500-cvs-2007020911/Module/rtmp_data.c:1201: error: 'struct sk_buff' has no member named 'mac'

replace:

skb->mac.raw = skb->data;

with:

skb_reset_mac_header(skb)


Both changes are fine to apply unconditionally.
Comment 6 Ed Catmur 2007-07-15 12:35:34 UTC
Created attachment 124918 [details]
rt2500/rt2500-1.1.0_pre2007020911.ebuild

Ebuild with config change and patch
Comment 7 Ed Catmur 2007-07-15 12:36:47 UTC
Created attachment 124919 [details, diff]
2.6.22.patch

Patch, as per dsd's above.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-07-15 22:12:54 UTC
Fixed, thanks.