at76c503 driver not compiling
Hey. A while back I had problems trying to get my Netgear MA101 adapter to work on Mandrake 10.1 Community. I've run into a couple problems once more, but this time I think I have a much better handle on the situation.
Due to my excessive stupidity, I managed to fubar my mandrake system pretty badly (yes yes, I know, the distro name has changed, but I haven't upgraded yet). Before I wipe the partitions and start fresh, I've created a sort of test partition to try reinstalling the OS on to, just to make sure I know what I'm in for and remember how to set up everything. This was sort of a cruddy patch job, a quick testing of the water before I nuke most of my drive.
Er, but that's not the problem at hand. I've downloaded the at76c503 berlios driver, which I used in the past, as well as the proper firmware. However, when I type "make" in the driver directory, I get the following:
This is after I installed the kernel header package. Sure enough, the directory .tmp_versions does not exist in the header directory, and I don't really know what it's looking for, or if that's even the unrecoverable error that causes make to stop after 10 lines.
[root@localhost at76c503a]# make
mkdir -p .tmp_versions
cp /lib/modules/22.214.171.124-10mdk/build/.tmp_versions/*.mod /root/drivers/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/126.96.36.199-10mdk/build/.tmp_versions/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/188.8.131.52-10mdk/build SUBDIRS=/root/drivers/at76c503a MODVERDIR=/root/drivers/at76c503a/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make: Entering directory `/usr/src/linux-184.108.40.206-10mdk'
Building modules, stage 2.
make: Leaving directory `/usr/src/linux-220.127.116.11-10mdk'
Looking at the last thread I started here, I decided to restart and see if anything clicked into place. Wlan0 appeared in iwconfig and ifconfig -a, but something's not quite right. The firmware loader atmel_fwl doesn't recognize wlan0 as an atmel device, and ifup wlan0 fails.
A chunk of my /var/log/syslog:
So I'm guessing that the driver's the problem and not the firmware? I'm never quite sure what to make of logs, but I've heard that "registered wlan0" is a good sign.
ay 14 12:21:51 localhost kernel: /root/drivers/at76c503a/at76_usbdfu.c: USB Device Firmware Upgrade (DFU) handler v0.12beta22-static loading
May 14 12:21:51 localhost kernel: /root/drivers/at76c503a/at76c503.c: Generic Atmel at76c503/at76c505 routines v0.12beta22-static
May 14 12:21:51 localhost kernel: /root/drivers/at76c503a/at76c503-fw_skel.c: Atmel at76c503 (RFMD) Wireless LAN Driver v0.12beta22-static loading
May 14 12:21:51 localhost kernel: /root/drivers/at76c503a/at76c503-fw_skel.c: using compiled-in firmware
May 14 12:21:51 localhost kernel: usbcore: registered new driver at76c503-rfmd
May 14 12:21:53 localhost kernel: usb 3-2: reset full speed USB device using address 2
May 14 12:21:53 localhost kernel: usb 3-2: device firmware changed
May 14 12:21:53 localhost kernel: usb 3-2: USB disconnect, address 2
May 14 12:21:53 localhost kernel: /root/drivers/at76c503a/at76c503-fw_skel.c: wlan%%d disconnecting
May 14 12:21:53 localhost kernel: /root/drivers/at76c503a/at76c503-fw_skel.c: at76c503-rfmd disconnected
May 14 12:21:53 localhost kernel: usb 3-2: new full speed USB device using address 3
May 14 12:21:53 localhost kernel: /root/drivers/at76c503a/at76c503-fw_skel.c: using compiled-in firmware
May 14 12:21:54 localhost kernel: /root/drivers/at76c503a/at76c503.c: $Id: at76c503.c,v 1.72 2004/10/19 20:45:25 jal2 Exp $ compiled Dec 27 2004 01:13:07
May 14 12:21:54 localhost kernel: /root/drivers/at76c503a/at76c503.c: firmware version 1.101.2 #84 (fcs_len 4)
May 14 12:21:54 localhost kernel: /root/drivers/at76c503a/at76c503.c: device's MAC 00:09:5b:3b:e0:3c, regulatory domain FCC (U.S) (id 16)
May 14 12:21:54 localhost kernel: /root/drivers/at76c503a/at76c503.c: registered wlan0
 I guess I should state the error from when I tried ifup wlan0:
/sbin/ifup: configuration for wlan0 not found.
Usage: ifup <device name>