Re: kernel 2.6.12 - TX packets:0

Patrick Lim <[email protected]> Fri, 26 Aug 2005 12:55:53 +0100
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
I found this like (posted 22 August - impressive, Google!).

http://iprserv.jura.uni-leipzig.de/pipermail/atmel-wlan-usb/2005-August/002474.html

Haven't had time to read dissect it, but it might be the answer to my problem...



On 8/19/05, CE <[email protected]> wrote:
>         I can't remember if 1 or -1 turns on the debugging.  Since I don't have that machine on I can't look but modinfo on at76c503* (or whichever other module) will tell you the parms.
>         Are you compiling this as root?  Since make fails early on and in a root readable directory that could be a possible problem.
>         My other guess would be that some option is not set correctly in your kernel config or Gentoo adds a patch (if you are not using a plain old kernel from kernel.org).  I can provide you with my config if you'd like.
> 
> 
> You wrote:
> 
> > I'm using Gentoo and I build my own kernel. I just tried with the
> > latest 2.6.12-gentoo-r9 and here's the output for the at76c503a make
> > and install process. I assume that modprobe -v at76c503-rfmd debug=1
> > turns on the debugging. I saw no error messages.
> >
> > Don't know if the "warning: assignment from incompatible pointer type"
> > just below is significant.
> >
> > epia at76c503a $ make
> > mkdir -p .tmp_versions
> > cp /lib/modules/2.6.12-gentoo-r9/build/.tmp_versions/*.mod
> > /root/at76c503a/.tmp_versions
> > cp: cannot stat
> > `/lib/modules/2.6.12-gentoo-r9/build/.tmp_versions/*.mod': No such
> > file or directory
> > make: [modules] Error 1 (ignored)
> > make -C /lib/modules/2.6.12-gentoo-r9/build SUBDIRS=/root/at76c503a
> > MODVERDIR=/root/at76c503a/.tmp_versions \
> > EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
> > make[1]: Entering directory `/usr/src/linux-2.6.12-gentoo-r9'
> >   CC [M]  /root/at76c503a/at76c503-i3861.o
> >   CC [M]  /root/at76c503a/at76c503-rfmd.o
> >   CC [M]  /root/at76c503a/at76c503-rfmd-acc.o
> >   CC [M]  /root/at76c503a/at76c505-rfmd.o
> >   CC [M]  /root/at76c503a/at76c503-i3863.o
> >   CC [M]  /root/at76c503a/at76c505-rfmd2958.o
> >   CC [M]  /root/at76c503a/at76c505a-rfmd2958.o
> >   CC [M]  /root/at76c503a/at76c503.o
> > /root/at76c503a/at76c503.c: In function `ieee80211_to_eth':
> > /root/at76c503a/at76c503.c:3948: warning: assignment from incompatible
> > pointer type
> >   CC [M]  /root/at76c503a/at76_usbdfu.o
> >   Building modules, stage 2.
> >   MODPOST
> >   CC      /root/at76c503a/at76_usbdfu.mod.o
> >   LD [M]  /root/at76c503a/at76_usbdfu.ko
> >   CC      /root/at76c503a/at76c503-i3861.mod.o
> >   LD [M]  /root/at76c503a/at76c503-i3861.ko
> >   CC      /root/at76c503a/at76c503-i3863.mod.o
> >   LD [M]  /root/at76c503a/at76c503-i3863.ko
> >   CC      /root/at76c503a/at76c503-rfmd-acc.mod.o
> >   LD [M]  /root/at76c503a/at76c503-rfmd-acc.ko
> >   CC      /root/at76c503a/at76c503-rfmd.mod.o
> >   LD [M]  /root/at76c503a/at76c503-rfmd.ko
> >   CC      /root/at76c503a/at76c503.mod.o
> >   LD [M]  /root/at76c503a/at76c503.ko
> >   CC      /root/at76c503a/at76c505-rfmd.mod.o
> >   LD [M]  /root/at76c503a/at76c505-rfmd.ko
> >   CC      /root/at76c503a/at76c505-rfmd2958.mod.o
> >   LD [M]  /root/at76c503a/at76c505-rfmd2958.ko
> >   CC      /root/at76c503a/at76c505a-rfmd2958.mod.o
> >   LD [M]  /root/at76c503a/at76c505a-rfmd2958.ko
> > make[1]: Leaving directory `/usr/src/linux-2.6.12-gentoo-r9'
> >
> >
> > epia at76c503a $ make install
> > mkdir -p .tmp_versions
> > cp /lib/modules/2.6.12-gentoo-r9/build/.tmp_versions/*.mod
> > /root/at76c503a/.tmp_versions
> > cp: cannot stat
> > `/lib/modules/2.6.12-gentoo-r9/build/.tmp_versions/*.mod': No such
> > file or directory
> > make: [modules] Error 1 (ignored)
> > make -C /lib/modules/2.6.12-gentoo-r9/build SUBDIRS=/root/at76c503a
> > MODVERDIR=/root/at76c503a/.tmp_versions \
> > EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
> > make[1]: Entering directory `/usr/src/linux-2.6.12-gentoo-r9'
> >   Building modules, stage 2.
> >   MODPOST
> > make[1]: Leaving directory `/usr/src/linux-2.6.12-gentoo-r9'
> > 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.12-gentoo-r9 -name $i -exec rm -f {} {}.orig \; ;done
> > mkdir -p /lib/modules/2.6.12-gentoo-r9/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.12-gentoo-r9/kernel/drivers/net/wireless/at76c503
> > /sbin/depmod -ae
> >
> >
> > epia at76c503a $ modprobe -v at76c503-rfmd debug=1
> > insmod /lib/modules/2.6.12-gentoo-r9/kernel/drivers/net/wireless/at76c503/at76_usbdfu.ko
> > insmod /lib/modules/2.6.12-gentoo-r9/kernel/drivers/net/wireless/at76c503/at76c503.ko
> > insmod /lib/modules/2.6.12-gentoo-r9/kernel/drivers/net/wireless/at76c503/at76c503-rfmd.ko
> > debug=1
> >
> > FROM /var/log/messages:
> >
> > Aug 17 12:27:00 epia /root/at76c503a/at76_usbdfu.c: USB Device
> > Firmware Upgrade (DFU) handler v0.12beta23-static loading
> > Aug 17 12:27:00 epia /root/at76c503a/at76c503.c: Generic Atmel
> > at76c503/at76c505 routines v0.12beta23-static
> > Aug 17 12:30:06 epia /root/at76c503a/at76c503-fw_skel.c: Atmel
> > at76c503 (RFMD) Wireless LAN Driver v0.12beta23-static loading
> > Aug 17 12:30:06 epia /root/at76c503a/at76c503-fw_skel.c: using
> > compiled-in firmware
> > Aug 17 12:30:06 epia /root/at76c503a/at76c503.c: $Id: at76c503.c,v
> > 1.74 2005/03/08 01:33:14 jal2 Exp $ compiled Aug 17 2005 12:24:06
> > Aug 17 12:30:06 epia /root/at76c503a/at76c503.c: firmware version
> > 1.101.2 #84 (fcs_len 4)
> > Aug 17 12:30:06 epia /root/at76c503a/at76c503.c: device's MAC
> > 00:30:bd:66:9c:d7, regulatory domain ETSI (Europe - (Spain+France) (id
> > 48)
> > Aug 17 12:30:06 epia /root/at76c503a/at76c503.c: registered wlan0
> > Aug 17 12:30:06 epia usbcore: registered new driver at76c503-rfmd
> > Aug 17 12:30:15 epia /root/at76c503a/at76c503.c: using BSSID 02:00:52:bc:96:0f
> 
> 
>