Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151560 - net-wireless/rt61: bump + firmware
Summary: net-wireless/rt61: bump + firmware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL: http://www.ralinktech.com/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-10-16 03:21 UTC by Sebastian
Modified: 2006-12-31 12:33 UTC (History)
1 user (show)

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


Attachments
driver ebuild (ralink_rt61-1.0.4.0.ebuild,1.24 KB, text/plain)
2006-10-16 03:22 UTC, Sebastian
Details
firmware ebuild (ralink_rt61_fw-1.2.ebuild,487 bytes, text/plain)
2006-10-16 03:22 UTC, Sebastian
Details
ralink_rt61-1.0.4.0.ebuild (ralink_rt61-1.0.4.0.ebuild,1.24 KB, text/plain)
2006-10-16 12:05 UTC, Sebastian
Details
ralink_rt61_fw-1.2.ebuild (ralink_rt61_fw-1.2.ebuild,505 bytes, text/plain)
2006-10-16 12:05 UTC, Sebastian
Details
ralink_rt61-1.1.0.0.ebuild (ralink_rt61-1.1.0.0.ebuild,1.22 KB, text/plain)
2006-11-30 09:09 UTC, Sebastian
Details
rt61-wireless-ext-v21.diff (rt61-wireless-ext-v21.diff,747 bytes, patch)
2006-11-30 09:11 UTC, Sebastian
Details | Diff
ralink_rt61-1.1.0.0.ebuild (ralink_rt61-1.1.0.0.ebuild,1.24 KB, text/plain)
2006-11-30 12:08 UTC, Sebastian
Details
rt61-wireless-ext-v21.diff (rt61-wireless-ext-v21.diff,564 bytes, patch)
2006-11-30 12:09 UTC, Sebastian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2006-10-16 03:21:24 UTC
Hi all,

this is the original RaLink driver for the rt61 chips. There are already two drivers in portage for this chip (rt61 and rt2x00), but both don't work properly as of now (no wep/wpa or even no connection at all).

This driver works, I'm using WPA with it. I suggest these ebuilds go into the tree until rt2x00 gets stable for Gentoo to have at least one working rt61 driver.

Be warned: the build process is a mess and the driver can't be initialized with the Gentoo WLAN setup but only by its own config file (!iwconfig !wpa_supplicant). It also taints your kernel, because the dev didn't provide the module license in the module itself (gpl v2 is in the source, though).

Have fun
Sebastian
Comment 1 Sebastian 2006-10-16 03:22:06 UTC
Created attachment 99782 [details]
driver ebuild
Comment 2 Sebastian 2006-10-16 03:22:26 UTC
Created attachment 99783 [details]
firmware ebuild
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-16 03:56:01 UTC
This can't be even fetched unless you change the descriptions so that they show versions. Plus, we can't distribute the firmware without a license, that ebuild needs RESTRICT="mirror"
Comment 4 Sebastian 2006-10-16 12:04:32 UTC
Hi Jakub,

thanks for the pointers!
Comment 5 Sebastian 2006-10-16 12:05:21 UTC
Created attachment 99823 [details]
ralink_rt61-1.0.4.0.ebuild
Comment 6 Sebastian 2006-10-16 12:05:44 UTC
Created attachment 99824 [details]
ralink_rt61_fw-1.2.ebuild
Comment 7 Sebastian 2006-11-30 09:09:11 UTC
Created attachment 103042 [details]
ralink_rt61-1.1.0.0.ebuild

New driver version 1.1.0.0
Comment 8 Sebastian 2006-11-30 09:11:19 UTC
Created attachment 103043 [details, diff]
rt61-wireless-ext-v21.diff

Patch that lets the driver compile against a kernel with wireless extension v21 (as included in kernel 2.6.19). Also sent to upstream.
Comment 9 Sebastian 2006-11-30 09:21:28 UTC
I attached a fresh ebuild for the driver because Ralink released version 1.1.0.0 recently.

Changes to the ebuild:

- drop dep on extra firmware ebuild because the firmware is included in the driver source already
- added patch for kernel 2.6.19/wireless extension v21
- added missing docs: readme, iwpriv_usage.txt
- removed dep on dos2unix because running dos2unix on rt61sta.dat isn't necessary (file already is in unix format)
- install the firmware from the driver package

Regarding RESTRICT="mirror": In the driver is a license file which holds the GPL v2. Shouldn't the fact that the firmware is included in the same folder cover our bases?

Here's the changelog between 1.0.4.0 and 1.1.0.0:

[V 1.1.0.0]
1.) Support x64 platform
2.) Support WMM-APSD
3.) Enhance IRQ with tasklet schedule (THREAD_ISR)
4.) Fix pci_map_single and pci_unmap_single unsync problem
5.) Add A-band country region code #8(for W53),code #9(for J52) and code#10
6.) Enhance RTS/CTS frame for BG protection
7.) Send disassociate event to Supplicant when AP turn off
8.) Display mixed mode (encryption&authentication) from get_site_survey

Sounds nice, especially x86 support.
Comment 10 Sebastian 2006-11-30 09:24:15 UTC
Ups, I mean "x64" :-)
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2006-11-30 09:45:36 UTC
This is already in portage. Can you please use rt61 and rt61-firmware as names?
Comment 12 Sebastian 2006-11-30 10:06:28 UTC
Hello Stefan,

as I wrote earlier there's no need for an extra firmware ebuild anymore. Also this is not really already in portage. The driver rt61 in portage is the legacy rt61 driver from the rt2400 project. This driver is the original rt61 driver supplied by Ralink. rt2400 upstream doesn't want to get bug report for the original Ralink driver so I think it's a bad idea to mix them.
Comment 13 Sebastian 2006-11-30 10:07:46 UTC
I'd appreciate you changing the topic back to spare people the confusion.
Comment 14 Sebastian 2006-11-30 12:08:20 UTC
Created attachment 103059 [details]
ralink_rt61-1.1.0.0.ebuild

Added "|| die ..." to the epatch line
Comment 15 Sebastian 2006-11-30 12:09:03 UTC
Created attachment 103060 [details, diff]
rt61-wireless-ext-v21.diff

Sorry, my previous patch sucked. Here's a new one I ripped off of IVD
from the rt2400 project. Seems like net_dev->get_wireless_stats was
removed in WEXT v17.
Comment 16 Stefan Schweizer (RETIRED) gentoo-dev 2006-11-30 13:50:05 UTC
Thanks sebastian, I added your ebuild to portage as ralink-rt61
Comment 17 Sebastian 2006-11-30 22:52:28 UTC
Thank you very much!
Comment 18 Kaji Ryoji 2006-12-11 01:41:22 UTC
People, can you please clarify that:
> and the driver can't be initialized with the Gentoo WLAN 
> setup but only by its own config file (!iwconfig !wpa_supplicant)

I'm asking 'cause that ralink-rt61 driver doesn't work stable on my system.
The system freezes time to time and I can't figure out what it the cause. Seems, that using WEP means trouble.

Where can I found any HowTo on proper configuring that ralink-rt61? (looks like gentoo-wiki has no such howto :( )
Comment 19 Bill Reynolds 2006-12-31 12:33:49 UTC
I'm seeing lockups too. There's are comments on the serialmonkey site that says the driver won't work with SMP kernels. I recompiled the kernel with SMP disabled, and the lockups went away. If this is the case, perhaps the ebuild should check the kernel config for SMP?