public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
@ 2007-07-13 16:01 Vladimir G. Ivanovic
  2007-07-13 20:17 ` Marc Redmann
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Vladimir G. Ivanovic @ 2007-07-13 16:01 UTC (permalink / raw
  To: gentoo-amd64

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Kernels before 2.6.22 could be configured with "CONFIG_NET_RADIO=y"
which would allow the rt2500 legacy driver for the Ralink wireless
chipset to compile. I've had this combination working now for over a year.

Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
configuration parameter, so I can't compile the rt2500 legacy driver,
nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.

Has anyone gotten a rt2500/rtx00 driver to compile with 2.6.22? What
patches are needed? Is there a HOWTO somewhere? (The Gentoo Wiki
articles "rt2500 on AMD64" and "rt2x00" don't seem to address my
issue. In any case, neither the latest CVS of rt2500 (2007051606) nor
the latest ebuild (net-wireless/rt2500-1.1.0_pre2007020911) compile
with KERNDIR=/usr/src/linux-.6.22-gentoo-r1. The latest ebuild
compiled just fine with kernels before 2.6.22.)

Any help would be appreciated. Thanks.

- --- Vladimir

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)

iD8DBQFGl6HlEo/yvZUwubMRAkCGAJwMpHhYUd9Y+T8gjZKOyliZz7vsCACeLSjJ
D3vyqbszeYiA8s+DtCN28KQ=
=q6ne
-----END PGP SIGNATURE-----
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-13 16:01 [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers Vladimir G. Ivanovic
@ 2007-07-13 20:17 ` Marc Redmann
  2007-07-15  9:53 ` Rodolphe Rocca
  2007-07-15 10:02 ` Rodolphe Rocca
  2 siblings, 0 replies; 8+ messages in thread
From: Marc Redmann @ 2007-07-13 20:17 UTC (permalink / raw
  To: gentoo-amd64

> Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
> configuration parameter, so I can't compile the rt2500 legacy driver,
> nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.

Just guessing: Maybe your problem has something to do with the newly 
introduced WLAN stack starting with 2.6.22 ...

brgds, Marc
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-13 16:01 [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers Vladimir G. Ivanovic
  2007-07-13 20:17 ` Marc Redmann
@ 2007-07-15  9:53 ` Rodolphe Rocca
  2007-07-15  9:55   ` Rodolphe Rocca
  2007-07-15 10:02 ` Rodolphe Rocca
  2 siblings, 1 reply; 8+ messages in thread
From: Rodolphe Rocca @ 2007-07-15  9:53 UTC (permalink / raw
  To: gentoo-amd64

Vladimir G. Ivanovic wrote:
> 
> Kernels before 2.6.22 could be configured with "CONFIG_NET_RADIO=y"
> which would allow the rt2500 legacy driver for the Ralink wireless
> chipset to compile. I've had this combination working now for over a year.
> 
> Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
> configuration parameter, so I can't compile the rt2500 legacy driver,
> nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.
> 
> Has anyone gotten a rt2500/rtx00 driver to compile with 2.6.22? What
> patches are needed? Is there a HOWTO somewhere? (The Gentoo Wiki
> articles "rt2500 on AMD64" and "rt2x00" don't seem to address my
> issue. In any case, neither the latest CVS of rt2500 (2007051606) nor
> the latest ebuild (net-wireless/rt2500-1.1.0_pre2007020911) compile
> with KERNDIR=/usr/src/linux-.6.22-gentoo-r1. The latest ebuild
> compiled just fine with kernels before 2.6.22.)
> 
> Any help would be appreciated. Thanks.
> 
> --- Vladimir
> 


Hi,

the rt2x00 ebuild in portage is out-dated.

The rt2x00 project has migrated to git for quite a while. They now
provide nightly tarballs for the part related to the rt2x00 modules
(without which you have to import the entire git tree to build the drivers).

I've made an ebuild using this nightly tarball. You can find it attached.

I've been using it for over a week and it works.

I guess gentoo wireless guys are updating the official ebuild the same way.
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-15  9:53 ` Rodolphe Rocca
@ 2007-07-15  9:55   ` Rodolphe Rocca
  0 siblings, 0 replies; 8+ messages in thread
From: Rodolphe Rocca @ 2007-07-15  9:55 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

Rodolphe Rocca wrote:
> Vladimir G. Ivanovic wrote:
>> Kernels before 2.6.22 could be configured with "CONFIG_NET_RADIO=y"
>> which would allow the rt2500 legacy driver for the Ralink wireless
>> chipset to compile. I've had this combination working now for over a year.
>>
>> Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
>> configuration parameter, so I can't compile the rt2500 legacy driver,
>> nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.
>>
>> Has anyone gotten a rt2500/rtx00 driver to compile with 2.6.22? What
>> patches are needed? Is there a HOWTO somewhere? (The Gentoo Wiki
>> articles "rt2500 on AMD64" and "rt2x00" don't seem to address my
>> issue. In any case, neither the latest CVS of rt2500 (2007051606) nor
>> the latest ebuild (net-wireless/rt2500-1.1.0_pre2007020911) compile
>> with KERNDIR=/usr/src/linux-.6.22-gentoo-r1. The latest ebuild
>> compiled just fine with kernels before 2.6.22.)
>>
>> Any help would be appreciated. Thanks.
>>
>> --- Vladimir
>>
> 
> 
> Hi,
> 
> the rt2x00 ebuild in portage is out-dated.
> 
> The rt2x00 project has migrated to git for quite a while. They now
> provide nightly tarballs for the part related to the rt2x00 modules
> (without which you have to import the entire git tree to build the drivers).
> 
> I've made an ebuild using this nightly tarball. You can find it attached.
> 
> I've been using it for over a week and it works.
> 
> I guess gentoo wireless guys are updating the official ebuild the same way.
> 

With the ebuild attached it's better ;-)

[-- Attachment #2: rt2x00-20079999.ebuild --]
[-- Type: text/plain, Size: 3550 bytes --]

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/rt2x00/rt2x00-9999.ebuild,v 1.21 2007/02/27 07:34:08 uberlord Exp $

inherit eutils linux-mod

DESCRIPTION="Driver for the RaLink RT2x00 wireless chipsets"
HOMEPAGE="http://rt2x00.serialmonkey.com"
LICENSE="GPL-2"

SRC_URI="http://rt2x00.serialmonkey.com/rt2x00-cvs-daily.tar.gz"

KEYWORDS="~amd64 ~x86"
RDEPEND="net-wireless/wireless-tools"

IUSE_RT2X00_DEVICES="rt2400pci rt2500pci rt2500usb rt61pci rt73usb"
IUSE_RT2X00_EXTRA="rfkill"
IUSE="asm debug"

for x in ${IUSE_RT2X00_DEVICES} ${IUSE_RT2X00_EXTRA} ; do
	IUSE="${IUSE} ${x}"
done

pkg_setup() {
	CONFIG_CHECK="WLAN_80211"
	ERROR_WLAN_80211="${P} requires support for (CONFIG_WLAN_80211)."

	CONFIG_CHECK="${CONFIG_CHECK} MAC80211"
	ERROR_MAC80211="${P} requires support for (CONFIG_MAC80211)."

	if use rfkill ; then
		CONFIG_CHECK="${CONFIG_CHECK} RFKILL"
		ERROR_RFKILL="${P} requires support for (CONFIG_RFKILL))."
	fi

	if use rt2400pci \
		|| use rt2500pci \
		|| use rt61pci ; then
		CONFIG_CHECK="${CONFIG_CHECK} PCI"
	fi

	if use rt2500usb || use rt73usb ; then
		CONFIG_CHECK="${CONFIG_CHECK} USB"
	fi

	if use rt61pci || use rt73usb ; then
		CONFIG_CHECK="${CONFIG_CHECK} FW_LOADER"
		ERROR_FW_LOADER="${P} requires support for Firmware module loading (CONFIG_FW_LOADER)."

		CONFIG_CHECK="${CONFIG_CHECK} CRC_ITU_T"
		ERROR_CRC_ITU_T="${P} requires support for (CONFIG_CRC_ITU_T)."
	fi

	if use debug ; then
		CONFIG_CHECK="${CONFIG_CHECK} DEBUG_FS"
		ERROR_DEBUG_FS="${P} requires Kernel Debug FS support (CONFIG_DEBUG_FS)"
	fi

	kernel_is lt 2 6 22 && die "${P} requires at least kernel 2.6.22"
	linux-mod_pkg_setup
	BUILD_PARAMS="KERNDIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
	BUILD_TARGETS=" " # Target "module" is not supported, so we blank it
}

src_compile() {
	S=$(ls -d ${WORKDIR}/rt2x00-cvs-*)
	cd ${S}

	local m= asm="n" button="n" debug="n" full="y" yn= M=

	use asm && asm="y"
	use debug && debug="y"

	for m in ${IUSE_RT2X00_DEVICES} ; do
		if use "${m}" ; then
			full="n"
			break
		fi
	done

	if [[ ${full} == "n" ]] ; then
		use rfkill && button="y"
	else
		ewarn "No module specified in USE flags - building everything."
		button="y"
	fi

	# Generate the config file now
	echo "# Config file generated by portage" > config

	# Enable the rt2x00lib module
	echo "CONFIG_RT2X00=y" >> config
	echo "CONFIG_RT2X00_ASM=${asm}" >> config
	MODULE_NAMES="${MODULE_NAMES} rt2x00lib(rt2x00:)"

	# rt2400pci, rt2500pci and rt61pci require the EEPROM module
	if use rt2400pci || use rt2500pci || use rt61pci || [[ ${full} == "y" ]] ; then
		echo "CONFIG_EEPROM_93CX6=y" >> config
		echo "CONFIG_EEPROM_93CX6_ASM=${asm}" >> config
		MODULE_NAMES="${MODULE_NAMES} rt2x00pci(rt2X00:) eeprom_93cx6(rt2x00:)"
	fi

	for m in ${IUSE_RT2X00_DEVICES} ; do
		local yn="n" M=$(echo "${m}" | tr '[:lower:]' '[:upper:]')

		if [[ ${full} == "y" ]] || use "${m}" ; then
			yn="y"
		fi

		echo "CONFIG_${M}=${yn}" >> config
		echo "CONFIG_${M}_BUTTON=${button}" >> config

		if [[ ${yn} == "y" ]] ; then
			MODULE_NAMES="${MODULE_NAMES} ${m}(rt2x00:)"
		fi
	done

	linux-mod_src_compile
}

src_install() {
	linux-mod_src_install
	dodoc CHANGELOG COPYING README THANKS
}

pkg_postinst() {
	linux-mod_pkg_postinst

	ewarn
	ewarn "This is a CVS ebuild - please report any bugs to the rt2x00 forums"
	ewarn "http://rt2x00.serialmonkey.com/phpBB2/viewforum.php?f=5"
	ewarn
	ewarn "Any bugs reported to Gentoo will be marked INVALID"
	ewarn
}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-13 16:01 [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers Vladimir G. Ivanovic
  2007-07-13 20:17 ` Marc Redmann
  2007-07-15  9:53 ` Rodolphe Rocca
@ 2007-07-15 10:02 ` Rodolphe Rocca
  2007-07-15 10:16   ` Rodolphe Rocca
  2007-07-17 11:52   ` Vladimir G. Ivanovic
  2 siblings, 2 replies; 8+ messages in thread
From: Rodolphe Rocca @ 2007-07-15 10:02 UTC (permalink / raw
  To: gentoo-amd64

Vladimir G. Ivanovic wrote:
> 
> Kernels before 2.6.22 could be configured with "CONFIG_NET_RADIO=y"
> which would allow the rt2500 legacy driver for the Ralink wireless
> chipset to compile. I've had this combination working now for over a year.
> 
> Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
> configuration parameter, so I can't compile the rt2500 legacy driver,
> nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.
> 
> Has anyone gotten a rt2500/rtx00 driver to compile with 2.6.22? What
> patches are needed? Is there a HOWTO somewhere? (The Gentoo Wiki
> articles "rt2500 on AMD64" and "rt2x00" don't seem to address my
> issue. In any case, neither the latest CVS of rt2500 (2007051606) nor
> the latest ebuild (net-wireless/rt2500-1.1.0_pre2007020911) compile
> with KERNDIR=/usr/src/linux-.6.22-gentoo-r1. The latest ebuild
> compiled just fine with kernels before 2.6.22.)
> 
> Any help would be appreciated. Thanks.
> 
> --- Vladimir
> 

You can dig bugzilla and find two entries too :

http://bugs.gentoo.org/show_bug.cgi?id=176148
	=> an ebuild from the git repository by Jakub Moc (you can trust
	 him ;-))

http://bugs.gentoo.org/show_bug.cgi?id=185229
	=> an ebuild similar to mine

Now you have three choices :-)
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-15 10:02 ` Rodolphe Rocca
@ 2007-07-15 10:16   ` Rodolphe Rocca
  2007-07-17 11:52   ` Vladimir G. Ivanovic
  1 sibling, 0 replies; 8+ messages in thread
From: Rodolphe Rocca @ 2007-07-15 10:16 UTC (permalink / raw
  To: gentoo-amd64

Rodolphe Rocca wrote:
> Vladimir G. Ivanovic wrote:
>> Kernels before 2.6.22 could be configured with "CONFIG_NET_RADIO=y"
>> which would allow the rt2500 legacy driver for the Ralink wireless
>> chipset to compile. I've had this combination working now for over a year.
>>
>> Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
>> configuration parameter, so I can't compile the rt2500 legacy driver,
>> nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.
>>
>> Has anyone gotten a rt2500/rtx00 driver to compile with 2.6.22? What
>> patches are needed? Is there a HOWTO somewhere? (The Gentoo Wiki
>> articles "rt2500 on AMD64" and "rt2x00" don't seem to address my
>> issue. In any case, neither the latest CVS of rt2500 (2007051606) nor
>> the latest ebuild (net-wireless/rt2500-1.1.0_pre2007020911) compile
>> with KERNDIR=/usr/src/linux-.6.22-gentoo-r1. The latest ebuild
>> compiled just fine with kernels before 2.6.22.)
>>
>> Any help would be appreciated. Thanks.
>>
>> --- Vladimir
>>
> 
> You can dig bugzilla and find two entries too :
> 
> http://bugs.gentoo.org/show_bug.cgi?id=176148
> 	=> an ebuild from the git repository by Jakub Moc (you can trust
> 	 him ;-))
> 

Actually this one seems outdated too because it depends on some ebuilds
building modules that have been merged into 2.6.22.

Jakub please correct me if I'm wrong.
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-15 10:02 ` Rodolphe Rocca
  2007-07-15 10:16   ` Rodolphe Rocca
@ 2007-07-17 11:52   ` Vladimir G. Ivanovic
  2007-07-18  9:57     ` Rodolphe Rocca
  1 sibling, 1 reply; 8+ messages in thread
From: Vladimir G. Ivanovic @ 2007-07-17 11:52 UTC (permalink / raw
  To: gentoo-amd64; +Cc: fake2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks. I'll give your ebuild a try first, and then (if needed) the
last one you suggest below.

Thanks.

- --- Vladimir

Rodolphe Rocca wrote:
> Vladimir G. Ivanovic wrote:
>> Kernels before 2.6.22 could be configured with "CONFIG_NET_RADIO=y"
>> which would allow the rt2500 legacy driver for the Ralink wireless
>> chipset to compile. I've had this combination working now for over a year.
>>
>> Starting with kernel 2.6.22, NET_RADIO is apparently no longer a
>> configuration parameter, so I can't compile the rt2500 legacy driver,
>> nor can I compile the newer rt2x00 driver which also depends on NET_RADIO.
>>
>> Has anyone gotten a rt2500/rtx00 driver to compile with 2.6.22? What
>> patches are needed? Is there a HOWTO somewhere? (The Gentoo Wiki
>> articles "rt2500 on AMD64" and "rt2x00" don't seem to address my
>> issue. In any case, neither the latest CVS of rt2500 (2007051606) nor
>> the latest ebuild (net-wireless/rt2500-1.1.0_pre2007020911) compile
>> with KERNDIR=/usr/src/linux-.6.22-gentoo-r1. The latest ebuild
>> compiled just fine with kernels before 2.6.22.)
>>
>> Any help would be appreciated. Thanks.
>>
>> --- Vladimir
>>
> 
> You can dig bugzilla and find two entries too :
> 
> http://bugs.gentoo.org/show_bug.cgi?id=176148
> 	=> an ebuild from the git repository by Jakub Moc (you can trust
> 	 him ;-))
> 
> http://bugs.gentoo.org/show_bug.cgi?id=185229
> 	=> an ebuild similar to mine
> 
> Now you have three choices :-)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)

iD8DBQFGnK19Eo/yvZUwubMRAmWrAJ9xts8vP2ogBVXH+EUe+fjUYFVF4ACfbq9w
zm1Amu9PWajAo1zTyPodhg4=
=lSvz
-----END PGP SIGNATURE-----
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers
  2007-07-17 11:52   ` Vladimir G. Ivanovic
@ 2007-07-18  9:57     ` Rodolphe Rocca
  0 siblings, 0 replies; 8+ messages in thread
From: Rodolphe Rocca @ 2007-07-18  9:57 UTC (permalink / raw
  To: gentoo-amd64

Vladimir G. Ivanovic wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Thanks. I'll give your ebuild a try first, and then (if needed) the
> last one you suggest below
Notive the rt2500 ebuild in portage has been bumped and the changelog 
indicates it now works on kernel >= 2.6.22 :

*rt2500-1.1.0_pre2007071515 (15 Jul 2007)

  15 Jul 2007; Roy Marples <uberlord@gentoo.org>
  +rt2500-1.1.0_pre2007071515.ebuild:
  New CVS snapshot, fixes #181973.
  Added kernel tests for >=2.6.22, #181984 thanks to Ed Catmur.


-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-18  9:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13 16:01 [gentoo-amd64] 2.6.22 and the rt2500/rt2x00 wireless drivers Vladimir G. Ivanovic
2007-07-13 20:17 ` Marc Redmann
2007-07-15  9:53 ` Rodolphe Rocca
2007-07-15  9:55   ` Rodolphe Rocca
2007-07-15 10:02 ` Rodolphe Rocca
2007-07-15 10:16   ` Rodolphe Rocca
2007-07-17 11:52   ` Vladimir G. Ivanovic
2007-07-18  9:57     ` Rodolphe Rocca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox