Trouble getting Netgear MA101 USB adapter working

Stefan Bidigaray <[email protected]> Fri, 26 Aug 2005 09:06:02 -0400
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
I've been trying to get this driver to work under a Debian system for
almost a month now with no luck.  I'm currently using Ubuntu 5.04,
with the 2.6.10 kernel.  For ease, of installation, I downloaded the
following files from the Debian repository:
http://packages.debian.org/testing/net/at76c503a-source
http://packages.debian.org/testing/net/atmel-firmware

It was pretty simple unpacking these files using dpkg, and I thnk they
went to the appropriate places.  After unpacking at76c503a-source, a
.tar.gz file was copied to /usr/src, which I unzipped.  After that, I
got the source code installed under /usr/src/modules/at76c503a (which
I thnk is the correct place).  I built the package with no errors, and
here's the messages if you're interested:

root@ubuntu:/usr/src/modules/at76c503a # make
mkdir -p .tmp_versions
cp /lib/modules/2.6.10-5-386/build/.tmp_versions/*.mod
/usr/src/modules/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/2.6.10-5-386/build/.tmp_versions/*.mod':
No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.10-5-386/build
SUBDIRS=/usr/src/modules/at76c503a
MODVERDIR=/usr/src/modules/at76c503a/.tmp_versions \
EXTRA_CFLAGS="" modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.10-5-386'
  CC [M]  /usr/src/modules/at76c503a/at76c503-i3861.o
  CC [M]  /usr/src/modules/at76c503a/at76c503-rfmd.o
  CC [M]  /usr/src/modules/at76c503a/at76c503-rfmd-acc.o
  CC [M]  /usr/src/modules/at76c503a/at76c505-rfmd.o
  CC [M]  /usr/src/modules/at76c503a/at76c503-i3863.o
  CC [M]  /usr/src/modules/at76c503a/at76c505-rfmd2958.o
  CC [M]  /usr/src/modules/at76c503a/at76c505a-rfmd2958.o
  CC [M]  /usr/src/modules/at76c503a/at76c503.o
/usr/src/modules/at76c503a/at76c503.c: In function `ieee80211_to_eth':
/usr/src/modules/at76c503a/at76c503.c:3948: warning: assignment from
incompatible pointer type
  CC [M]  /usr/src/modules/at76c503a/at76_usbdfu.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/src/modules/at76c503a/at76_usbdfu.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76_usbdfu.ko
  CC      /usr/src/modules/at76c503a/at76c503-i3861.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c503-i3861.ko
  CC      /usr/src/modules/at76c503a/at76c503-i3863.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c503-i3863.ko
  CC      /usr/src/modules/at76c503a/at76c503-rfmd-acc.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c503-rfmd-acc.ko
  CC      /usr/src/modules/at76c503a/at76c503-rfmd.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c503-rfmd.ko
  CC      /usr/src/modules/at76c503a/at76c503.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c503.ko
  CC      /usr/src/modules/at76c503a/at76c505-rfmd.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c505-rfmd.ko
  CC      /usr/src/modules/at76c503a/at76c505-rfmd2958.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c505-rfmd2958.ko
  CC      /usr/src/modules/at76c503a/at76c505a-rfmd2958.mod.o
  LD [M]  /usr/src/modules/at76c503a/at76c505a-rfmd2958.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.10-5-386'
root@ubuntu:/usr/src/modules/at76c503a # make install
for i in at76c503-i3861.ko at76c503-rfmd.ko at76c503-rfmd-acc.ko
at76c505-rfmd.ko at76c503-i3863.ko at76c505-rfmd2958.ko
at76c505a-rfmd2958.ko at76c503.ko at76_usbdfu.ko; do \
  find /lib/modules/2.6.10-5-386 -name $i -exec rm -f {} {}.orig \; ;done
mkdir -p .tmp_versions
cp /lib/modules/2.6.10-5-386/build/.tmp_versions/*.mod
/usr/src/modules/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/2.6.10-5-386/build/.tmp_versions/*.mod':
No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.10-5-386/build
SUBDIRS=/usr/src/modules/at76c503a
MODVERDIR=/usr/src/modules/at76c503a/.tmp_versions \
EXTRA_CFLAGS="" modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.10-5-386'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/linux-headers-2.6.10-5-386'
mkdir -p /lib/modules/2.6.10-5-386/kernel/drivers/net/wireless/at76c503
install -m 644 -o 0 -g 0 at76c503-i3861.ko at76c503-rfmd.ko
at76c503-rfmd-acc.ko at76c505-rfmd.ko at76c503-i3863.ko
at76c505-rfmd2958.ko at76c505a-rfmd2958.ko at76c503.ko at76_usbdfu.ko
/lib/modules/2.6.10-5-386/kernel/drivers/net/wireless/at76c503
/sbin/depmod -ae

After that was done, I just plugged in the USB adapter and I get the
following lines on syslog:

Aug 26 08:37:39 localhost kernel: usb 1-1: new full speed USB device
using uhci_hcd and address 2
Aug 26 08:37:40 localhost kernel:
/usr/src/modules/at76c503a/at76_usbdfu.c: USB Device Firmware Upgrade
(DFU) handler v0.12beta23-fw_dwl loading
Aug 26 08:37:40 localhost kernel:
/usr/src/modules/at76c503a/at76c503.c: Generic Atmel at76c503/at76c505
routines v0.12beta23-fw_dwl
Aug 26 08:37:40 localhost kernel:
/usr/src/modules/at76c503a/at76c503-fw_skel.c: Atmel at76c503 (RFMD)
Wireless LAN Driver v0.12beta23-fw_dwl loading
Aug 26 08:37:40 localhost kernel:
/usr/src/modules/at76c503a/at76c503-fw_skel.c: downloading firmware
atmel_at76c503-rfmd.bin
Aug 26 08:37:50 localhost kernel:
/usr/src/modules/at76c503a/at76c503-fw_skel.c: firmware
atmel_at76c503-rfmd.bin not found.
Aug 26 08:37:50 localhost kernel:
/usr/src/modules/at76c503a/at76c503-fw_skel.c: You may need to
download the firmware from http://www.thekelleys.org.uk/atmel or
ftp://ftp.berlios.de/pub/at76c503a/firmware/
Aug 26 08:37:50 localhost kernel: at76c503-rfmd: probe of 1-1:1.0
failed with error -14
Aug 26 08:37:50 localhost kernel: usbcore: registered new driver at76c503-rfmd
Aug 26 08:37:50 localhost usb.agent[8137]:      at76c503-rfmd: loaded
successfully

Which doesn't mke much sense since the firmware is already installed
from the atmel-firmware package I got from the Debian repository.  So
I go and check what are the files under /lib/hotplug/firmware, and the
atmel_at76c503a-rfmd.bin isn't there.  Here's a list if you want to
check:

atmel_at76c502_3com.bin-2.6.10-5-386     
atmel_at76c502-wpa.bin-2.6.10-5-386        ipw2100-1.3.fw-2.6.10-5-386
       ipw-2.2-ibss_ucode.fw-2.6.10-5-386
atmel_at76c502_3com-wpa.bin-2.6.10-5-386 
atmel_at76c504_2958-wpa.bin-2.6.10-5-386  
ipw2100-1.3-i.fw-2.6.10-5-386      isl3890-2.6.10-5-386
atmel_at76c502.bin-2.6.10-5-386          
atmel_at76c504a_2958-wpa.bin-2.6.10-5-386 
ipw2100-1.3-p.fw-2.6.10-5-386      RADIO0d.BIN-2.6.10-5-386
atmel_at76c502d.bin-2.6.10-5-386         
atmel_at76c504.bin-2.6.10-5-386           
ipw-2.2-boot.fw-2.6.10-5-386       RADIO11.BIN-2.6.10-5-386
atmel_at76c502d-wpa.bin-2.6.10-5-386     
atmel_at76c504c-wpa.bin-2.6.10-5-386       ipw-2.2-bss.fw-2.6.10-5-386
       RADIO15.BIN-2.6.10-5-386
atmel_at76c502e.bin-2.6.10-5-386         
atmel_at76c506.bin-2.6.10-5-386           
ipw-2.2-bss_ucode.fw-2.6.10-5-386  TIACX111.BIN-2.6.10-5-386
atmel_at76c502e-wpa.bin-2.6.10-5-386     
atmel_at76c506-wpa.bin-2.6.10-5-386       
ipw-2.2-ibss.fw-2.6.10-5-386       WLANGEN.BIN-2.6.10-5-386

The modules actually load, and if I do lsmod I see them on the list. 
But if I do "iwconfig" I only get "lo", "eth0", and "sit0", but no
"wlan0".  All three of those say "no wireless extensions."

Can anyone help me out with this?  I've tried getting help everywhere.
 This the only place I haven't looked for help.  I'd really like to
get this working because this is the only thing that is holding me
from install linux on my main system (I do all the testing on one
computer, so that I don't mess what I have on my other computer).