Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78271 - ebuild for at76c503 driver (alternative to atmelwlan driver from sourceforge)
Summary: ebuild for at76c503 driver (alternative to atmelwlan driver from sourceforge)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://at76c503a.berlios.de/support.h...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-01-16 13:38 UTC by Walter White
Modified: 2005-01-29 07:20 UTC (History)
0 users

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


Attachments
contains ebuild, manifest, and digest (at76c503.tar.bz2,1.75 KB, application/octet-stream)
2005-01-16 13:39 UTC, Walter White
Details
The ebuild attached as a text file (at76c503-0.11.ebuild,2.38 KB, text/plain)
2005-01-18 10:23 UTC, Walter White
Details
updated ebuild containing cvs snapshot download ability (at76c503-cvs.ebuild,3.32 KB, text/plain)
2005-01-19 16:18 UTC, Walter White
Details
at76c503a-0.12_beta19.ebuild (at76c503a-0.12_beta19.ebuild,1.40 KB, text/plain)
2005-01-21 11:41 UTC, Stefan Schweizer (RETIRED)
Details
cvs module works, cannot make/make install just yet (at76c503a-cvs-20050121.ebuild,3.07 KB, text/plain)
2005-01-21 19:09 UTC, Walter White
Details
first, success build (at76c503a-cvs-20050121.ebuild,3.32 KB, text/plain)
2005-01-21 19:33 UTC, Walter White
Details
updated driver, fixed path information (at76c503a-cvs-20050121.ebuild,2.64 KB, text/plain)
2005-01-21 19:43 UTC, Walter White
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter White 2005-01-16 13:38:26 UTC
This is an ebuild for at76c503, which has support for atmel USB wireless devices.  The ebuild has only been tested up to downloading the package.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Walter White 2005-01-16 13:39:43 UTC
Created attachment 48684 [details]
contains ebuild, manifest, and digest
Comment 2 Micheal Marineau (RETIRED) gentoo-dev 2005-01-17 21:50:42 UTC
According to the website the 2.6 kernel requires a version greater than 0.11 (Currenly only CVS as 0.11 is the most recent release).  The cvs version has worked for me in the past, maybe a cvs snapshot would be better than 0.11.  It might be good to know what has been holding the next release back.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-18 04:14:46 UTC
Can you please attach the ebuild as a plain text file?
We dont need digests and manifests .. they can be easily created.
Comment 4 Walter White 2005-01-18 10:23:40 UTC
Created attachment 48850 [details]
The ebuild attached as a text file
Comment 5 Walter White 2005-01-18 10:25:48 UTC
Yes, you are right.  I forgot that the source I downloaded was from CVS.  I need to modify the ebuild, I will do the testing this upcoming weekend to sort this out.
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-18 10:33:08 UTC
If you plan to update the ebuild, it would be nice if you could rewrite it and take another ebuild that uses "inherit linux-mod" as base, such as cloop or ipw2100 or madwifi-driver or orinoco or bcm4400 (~x86 ebuilds).
Comment 7 Walter White 2005-01-19 05:57:24 UTC
Hey Stefan,

Thanks for pointing that out, I will use that as a base so it knows that it is installing modules.  I will be writing the cvs version as well for 2.6 kernels.

Walter
Comment 8 Walter White 2005-01-19 16:18:38 UTC
Created attachment 49000 [details]
updated ebuild containing cvs snapshot download ability
Comment 9 Walter White 2005-01-19 16:22:35 UTC
I get this error when trying to merge the ebuild:

/usr/lib/portage/bin/ebuild.sh: line 1560: /home/walterw/portage/net-wireless/at76c503/at76c503-20040119.ebuild: Permission denied

Please let me know what needs to be fixed to make this ebuild work as it is my first and I hope to do some more for webapps and such.


Walter
Comment 10 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-21 11:41:38 UTC
Created attachment 49125 [details]
at76c503a-0.12_beta19.ebuild

please test and comment
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-21 11:41:53 UTC
Maybe we need adep on atmel-firmware?
Comment 12 Walter White 2005-01-21 19:09:22 UTC
Created attachment 49158 [details]
cvs module works, cannot make/make install just yet
Comment 13 Walter White 2005-01-21 19:14:01 UTC
Hi Stefan,

Thanks for your quick reply.  So the ebuild actually works better on my machine than my server.

I can get as far as getting the source from cvs, but make gives me errors, and it is copying files to the wrong places.  It should have a kernel version in between modules and build.  I suspect this should be a simple fix and once we figure it out, it should compile and install okay.

>>> Source unpacked.
mkdir -p .tmp_versions
cp /lib/modules/./build/.tmp_versions/*.mod /var/tmp/portage/at76c503a-cvs-20050121/work/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/./build/.tmp_versions/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/./build SUBDIRS=/var/tmp/portage/at76c503a-cvs-20050121/work/at76c503a MODVERDIR=/var/tmp/portage/at76c503a-cvs-20050121/work/at76c503a/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make: *** /lib/modules/./build: No such file or directory.  Stop.
make: *** [modules] Error 2

!!! ERROR: net-wireless/at76c503a-cvs-20050121 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 14 Walter White 2005-01-21 19:33:51 UTC
Created attachment 49160 [details]
first, success build

Using linux_mod functions, the module does now compile and install correctly. 
May need to do some testing with this though.
Comment 15 Walter White 2005-01-21 19:43:49 UTC
Created attachment 49161 [details]
updated driver, fixed path information

When installing the modules, this warning is reported:

>>> Install at76c503a-cvs-20050121 into
/var/tmp/portage/at76c503a-cvs-20050121/image/ category net-wireless
 * Installing at76_usbdfu module
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c503-i3861 module
/usr/lib/portage/bin/ebuild.sh: line 1:
${#MODULESD_AT76C503-I3861_ALIASES[*]}:bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c503-i3863 module
/usr/lib/portage/bin/ebuild.sh: line 1:
${#MODULESD_AT76C503-I3863_ALIASES[*]}:bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c503-rfmd-acc module
/usr/lib/portage/bin/ebuild.sh: line 1:
${#MODULESD_AT76C503-RFMD-ACC_ALIASES[*]}: bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c503-rfmd module
/usr/lib/portage/bin/ebuild.sh: line 1: ${#MODULESD_AT76C503-RFMD_ALIASES[*]}:
bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c503 module
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c505-rfmd module
/usr/lib/portage/bin/ebuild.sh: line 1: ${#MODULESD_AT76C505-RFMD_ALIASES[*]}:
bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c505-rfmd2958 module
/usr/lib/portage/bin/ebuild.sh: line 1:
${#MODULESD_AT76C505-RFMD2958_ALIASES[*]}: bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
 * Installing at76c505a-rfmd2958 module
/usr/lib/portage/bin/ebuild.sh: line 1:
${#MODULESD_AT76C505A-RFMD2958_ALIASES[*]}: bad substitution
/usr/lib/portage/bin/ebuild.sh: line 143: [: ==: unary operator expected
 * Preparing file for modules.d...					  [ ok
]
Comment 16 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-23 08:13:34 UTC
sorry, I wont add it as cvs-module-ebuild because that will create a lot of load for the cvs-server, does the ebuild I attached, which uses the debain sources, work for you?
Comment 17 Walter White 2005-01-24 07:41:54 UTC
Hi Stefan,

Is it possible that you can check out a version, say 20050124, and upload that to gentoo mirrors to reduce load and that would be used instead of cvs?  It would spread the load over all the gentoo mirrors rather than one server.

That way we are more certain the ebuild written will work, as if any internal changes are made to the code (at76c503a), we should change the ebuild and release a new ebuild for that cvs version.

I didn't see the attached ebuild.


Walter
Comment 18 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-24 08:00:11 UTC
http://bugs.gentoo.org/attachment.cgi?id=49125

Can you please test this ebuild?
Comment 19 Walter White 2005-01-24 16:56:16 UTC
Hi Stefan,

I am at school and will have to wait till this weekend to test the ebuild.  Do you put this stuff into portage, or what does the process involve?

Thanks,
Walter
Comment 20 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-24 21:41:46 UTC
as I do not own the hardware, I will put it in, when you have tested it.
Comment 21 Walter White 2005-01-28 15:26:46 UTC
Hi Stefan,

I just ran the installer, and it works correctly for both emerging and unmerging the package.  I did not get any errors.

The only thing is for the driver location (although it doesn't matter), I put them in /lib/modules/${KV}/kernel/drivers/net/wireless/at76c503a/ instead of /lib/modules/${KV}/net.  It works either way, but I guess there are reasons for putting it there as well.

Walter
Comment 22 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-28 22:51:00 UTC
I added the ebuild to portage now, it is /net for the reason that it does not get overwritten if you recompile your kernel with a different .config
Comment 23 Walter White 2005-01-29 07:12:10 UTC
Hi Stefan,

I did the testing on AMD64, so could you add it to ~amd64?

Thanks,
Walter
Comment 24 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-29 07:20:03 UTC
please open a new bug for that and assign it to amd64@gentoo.org

unfortunately I am not allowed to do anything here, as I dont own an amd64 system. You are free to donate me one, if you want me to test that and add the keyword :)