Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176148 - new ebuild rt2x00-git - Proof of concept
Summary: new ebuild rt2x00-git - Proof of concept
Status: VERIFIED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-04-26 18:38 UTC by Dick Marinus
Modified: 2008-01-27 14:29 UTC (History)
9 users (show)

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


Attachments
net-wireless/rt2x00-git-20070426.ebuild (rt2x00-git-20070426.ebuild,1.00 KB, text/plain)
2007-04-26 18:39 UTC, Dick Marinus
Details
net-wireless/rt2x00-git-20070427.ebuild (rt2x00-git-20070427.ebuild,1.07 KB, text/plain)
2007-04-27 18:42 UTC, Dick Marinus
Details
net-wireless/eeprom_93cx6-git-20070427.ebuild (eeprom_93cx6-git-20070427.ebuild,749 bytes, text/plain)
2007-04-27 18:43 UTC, Dick Marinus
Details
net-wireless/crc-itu-t-git-20070427.ebuild (crc-itu-t-git-20070427.ebuild,710 bytes, text/plain)
2007-04-27 18:44 UTC, Dick Marinus
Details
net-wireless/rt2x00-git-20070427.ebuild (rt2x00-git-20070427.ebuild,1.09 KB, text/plain)
2007-04-30 19:23 UTC, Dick Marinus
Details
net-wireless/crc-itu-t-git-20070513.ebuild (crc-itu-t-20070513.ebuild,842 bytes, text/plain)
2007-05-14 08:59 UTC, Jakub Moc (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dick Marinus 2007-04-26 18:38:09 UTC
This ebuild was requested by Steev Klimaszewski (bug #174946)

Please note that it is broken because the eeprom_93cx6 and crc-itu-t modules are missing.
Comment 1 Dick Marinus 2007-04-26 18:39:57 UTC
Created attachment 117328 [details]
net-wireless/rt2x00-git-20070426.ebuild

The source tarball can be generated with:

$ git clone http://git.serialmonkey.com/rt2x00.git/
$ tar czf rt2x00-git-20070426.tar.gz drivers/net/wireless/mac80211/ include/linux/eeprom_93cx6.h include/linux/crc-itu-t.h lib/crc-itu-t.c
Comment 2 Allen Brooker (AllenJB) 2007-04-26 18:46:22 UTC
There's a git eclass (see /usr/portage/eclass/git.eclass for getting live sources from git. It's quite well documented.

If you'd like help with it, check out the #gentoo-dev-help IRC channel on Freenode. Someone there should be able to help you with any problems you have.
Comment 3 whereami 2007-04-27 10:41:35 UTC
Please note that the current net-wireless/rt2x00-9999 ebuild is now useless, as upstream as broken compilation on CVS to force people over to git. If an ebuild using git is made, I think it should replace the current CVS ebuild. I.e., don't call it net-wireless/rt2x00-git; just leave it net-wireless/rt2x00.
Comment 4 Dick Marinus 2007-04-27 18:42:29 UTC
Created attachment 117432 [details]
net-wireless/rt2x00-git-20070427.ebuild

generate the tarball with:
$ git clone http://git.serialmonkey.com/rt2x00.git/
$ tar -czf rt2x00-git-20070427.tar.gz drivers/net/wireless/mac80211/ drivers/misc/eeprom_93cx6.c drivers/misc/Kconfig drivers/misc/Makefile include/linux/eeprom_93cx6.h include/linux/crc-itu-t.h lib/crc-itu-t.c lib/Kconfig lib/Makefile lib/*/Makefile

AllenJB: I'm not using the git repository because it is slooooow (http://rt2x00.serialmonkey.com/wiki/index.php?title=Rt2x00_GIT_instructions -> Step 3.2: wait. ages.)

The following ebuilds will generate modules which are required.
Comment 5 Dick Marinus 2007-04-27 18:43:12 UTC
Created attachment 117434 [details]
net-wireless/eeprom_93cx6-git-20070427.ebuild
Comment 6 Dick Marinus 2007-04-27 18:44:13 UTC
Created attachment 117436 [details]
net-wireless/crc-itu-t-git-20070427.ebuild

Please test; I don't own a ralink adapter.
Comment 7 Hans Cats 2007-04-30 18:28:32 UTC
Seems to work, builds and installals the modules.

I get an error when inserting the rt61pci driver (for my card). "rt2x00lib->rt2x00lib_load_firmware: Error - Firmware loading requested by non-firmware driver." I don't think this has anything to do with the ebuilds.
Comment 8 Dick Marinus 2007-04-30 19:23:51 UTC
Created attachment 117759 [details]
net-wireless/rt2x00-git-20070427.ebuild

Hmm, I've looked into the code and found out CONFIG_RT2X00_LIB_FIRMWARE should be defined to load firmware... Please try this ebuild
Comment 9 Hans Cats 2007-04-30 23:49:27 UTC
Works! :D Thanks Dick
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 20:56:22 UTC
(In reply to Comment #2)
OK, any volunteer to create the tarballs and upload them somewhere so that people can actually test this? 

Seriously, I won't never ever touch git again in my life. The old CVS ebuild took about 30 seconds to check-out, this git clone junk was killed by me after it's eaten 200 megs of my disk space and was sitting there without visible progress for half an hour. :X 

What a 'progress' and what a horrible choice of VCS for such project. :X
Comment 11 Hans Cats 2007-05-13 21:03:11 UTC
For your convinience (if thats the way its spelled), http://folk.ntnu.no/myhre/rt2x00/rt2x00-git-20070513.tar.gz
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-05-13 21:11:04 UTC
(In reply to comment #11)
> For your convinience 

Thanks, much appreciated.

(if thats the way its spelled),

Almost. :)
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-05-14 08:59:21 UTC
Created attachment 119192 [details]
net-wireless/crc-itu-t-git-20070513.ebuild

The current Makefile wants to compile loads of irrelevant stuff and fails. Had to hack it from scratch to compile only the relevant module.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-05-14 12:06:50 UTC
This is now in sunrise overlay; Dick please move further work there, bugzilla is messy for such stuff.

I've reworked the rt2x00-git ebuild significantly, so please test. Works fine here w/ rt2500pci and wpa_supplicant.

http://overlays.gentoo.org/svn/proj/sunrise/reviewed/net-wireless/ or grab via layman.
Comment 15 Hans Cats 2007-05-29 21:57:48 UTC
(In reply to comment #14)

Works fine Jakub. I uploaded rt2x00-git-20070529.tar.gz to the same location as before.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 22:04:55 UTC
(In reply to comment #15)
> Works fine Jakub. I uploaded rt2x00-git-20070529.tar.gz to the same location as
> before.

Thanks; any changes needed in the ebuilds? 

Comment 17 Hans Cats 2007-05-30 08:42:48 UTC
(In reply to comment #16)
> Thanks; any changes needed in the ebuilds? 

I don't think so. But I have only tested the rt61pci.

Comment 18 Jakub Moc (RETIRED) gentoo-dev 2007-06-16 11:36:01 UTC
(In reply to comment #15)
> Works fine Jakub. I uploaded rt2x00-git-20070529.tar.gz to the same location as
> before.

Done; if you want newer ones, just poke and upload - or gimme a decent way of producing the snapshots without having to git clone first. :) 
Comment 19 Dick Marinus 2007-06-16 11:48:23 UTC
You can also use gitweb to download tarballs at:
http://git.serialmonkey.com/gitweb.cgi?p=rt2x00.git;a=tree;f=drivers/net/wireless/mac80211/rt2x00;h=24a546948645ca6dbee70c6c89c4e281e45b02de;hb=HEAD

then use the "snapshot" link
Comment 20 Michael Ossmann 2007-07-13 17:10:06 UTC
(In reply to comment #3)
> Please note that the current net-wireless/rt2x00-9999 ebuild is now useless

Although it was useless for a while, it has become useful again with the release of kernel 2.6.22.  See: http://rt2x00.serialmonkey.com/wiki/index.php/Downloads

I just used rt2x00-9999.ebuild (with a couple modifications) and it worked fine with vanilla 2.6.22.  I think this is the easiest way to install this driver at the moment unless you are unable to upgrade to 2.6.22 for some reason.  Is anyone interested in my updated ebuild?  Should I post it to a new bug?
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2007-07-13 17:30:31 UTC
(In reply to comment #20)
> I just used rt2x00-9999.ebuild (with a couple modifications) and it worked fine
> with vanilla 2.6.22.  I think this is the easiest way to install this driver at
> the moment unless you are unable to upgrade to 2.6.22 for some reason.  Is
> anyone interested in my updated ebuild?  Should I post it to a new bug?

Yeah, file a new bug. I'll WONTFIX this one as soon as it gets merged to the tree, seriously can't stand the git thing. 

Comment 22 toon 2007-07-14 13:09:57 UTC
(In reply to comment #18)
> (In reply to comment #15)
> > Works fine Jakub. I uploaded rt2x00-git-20070529.tar.gz to the same location as
> > before.
> 
> Done; if you want newer ones, just poke and upload - or gimme a decent way of
> producing the snapshots without having to git clone first. :) 

Jakub, just as another (positive!) datapoint for you:

After upgrading my kernel to 2.6.21-gentoo-r3 my rt2500pci
wireless card stopped working. I read this bug report in
bugzilla and decided to try your sunrise overlay version
of the 2x00-git-20070529 drivers from
http://dev.gentooexperimental.org/~jakub/distfiles/

I'm happy to confirm that they brought my wireless card
back to life. I'm using WEP, no WPA. Thanks!
Comment 23 Michael Ossmann 2007-07-17 15:42:02 UTC
FYI, bug 185229 is the updated CVS ebuild.
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2008-01-27 14:11:22 UTC
Merge in 2.6.24 kernels; closing this bug.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=95ea36275f3c9a1d3d04c217b4b576c657c4e70e