View Full Version : at76c503a will not compile in FC4
panama
2005-06-25, 05:31 PM CDT
I recenlty upgraded from fc3 to fc4. I had no problem compiling at76c503a in FC3. When I tried to recompile in FC4 after the upgrade after I re-downloaded the at76c503a get the following message.
[root@destiny at76c503a># make
mkdir -p .tmp_versions
cp /lib/modules/2.6.11-1.1369_FC4/build/.tmp_versions/*.mod /usr/local/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/2.6.11-1.1369_FC4/build/.tmp_versions/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/local/at76c503a MODVERDIR=/usr/local/at76c503a/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make: *** /lib/modules/2.6.11-1.1369_FC4/build: No such file or directory. Stop.
make: *** [modules] Error 2
I appreicate any help. Thanks in advance
chili555
2005-06-25, 05:45 PM CDT
Do you have the kernel-devel rpm installed?
rpm -qa | grep kernel should return, among other things, kernel-devel. Viz:
[bill@LAPTOP ~]$ rpm -qa | grep kernel
kernel-2.6.11-1.1369_FC4
kernel-devel-2.6.11-1.1369_FC4
If you do not have it, yum it up and retry make.
panama
2005-06-25, 05:50 PM CDT
This is what I have
[root@destiny at76c503a># rpm -qa | grep kernel
kernel-module-ntfs-2.6.11-1.1369_FC4-2.1.22-0.rr.6.0
kernel-2.6.11-1.1369_FC4
panama
2005-06-25, 06:10 PM CDT
I installed kernel-devel-2.6.11-1.1369_FC4 and it worked by issuing the following command as root.
yum install kernel-devel-2.6.11-1.1369_FC4
chili555
2005-06-25, 08:45 PM CDT
And did you rerun make? What was the result?
panama
2005-11-13, 04:53 PM CST
I am still having the same problem. If anyone can help I would greatly appreciate it.
[root@destiny at76c503a]# uname -r
2.6.14-1.1637_FC4
[root@destiny at76c503a]# rpm -qa | grep kernel
kernel-devel-2.6.13-1.1532_FC4
kernel-devel-2.6.14-1.1637_FC4
kernel-module-ntfs-2.6.13-1.1532_FC4-2.1.23-0.rr.10.4
kernel-2.6.13-1.1532_FC4
kernel-2.6.14-1.1637_FC4
[root@destiny at76c503a]#
[root@destiny at76c503a]# make
mkdir -p .tmp_versions
cp /lib/modules/2.6.14-1.1637_FC4/build/.tmp_versions/*.mod /at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/2.6.14-1.1637_FC4/build/.tmp_versions/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.14-1.1637_FC4/build SUBDIRS=/at76c503a MODVERDIR=/at76c503a/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make[1]: Entering directory `/usr/src/kernels/2.6.14-1.1637_FC4-i686'
CC [M] /at76c503a/at76c503.o
/at76c503a/at76c503.c: In function ‘ieee80211_to_eth’:
/at76c503a/at76c503.c:3948: warning: assignment from incompatible pointer type
/at76c503a/at76c503.c: In function ‘at76c503_tx_timeout’:
/at76c503a/at76c503.c:4820: error: ‘URB_ASYNC_UNLINK’ undeclared (first use in this function)
/at76c503a/at76c503.c:4820: error: (Each undeclared identifier is reported only once
/at76c503a/at76c503.c:4820: error: for each function it appears in.)
/at76c503a/at76c503.c: At top level:
/at76c503a/at76c503.c:6703: error: unknown field ‘spy_offset’ specified in initializer
/at76c503a/at76c503.c:6703: warning: initialization makes pointer from integer without a cast
make[2]: *** [/at76c503a/at76c503.o] Error 1
make[1]: *** [_module_/at76c503a] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.14-1.1637_FC4-i686'
make: *** [modules] Error 2
panama
2005-11-15, 03:41 PM CST
Anyone have any ideas why I cannot compile in kernel-devel-2.6.14-1.1637_FC4 ???
panama
2005-12-06, 11:57 AM CST
If anyone has any ideas please respond to the post
Twey
2005-12-06, 11:59 AM CST
That's not the same problem at all. Try using gcc32 instead.
panama
2005-12-06, 04:19 PM CST
Twey how do I use gcc32 to complile. What I did before I would issue the following command make; then make install
panama
2005-12-09, 10:12 AM CST
Hey Guys please help me out with this problem?
Sam Weldon
2005-12-13, 02:40 AM CST
I recenlty upgraded from fc3 to fc4. I had no problem compiling at76c503a in FC3. When I tried to recompile in FC4 after the upgrade after I re-downloaded the at76c503a get the following message.
[root@destiny at76c503a># make
mkdir -p .tmp_versions
cp /lib/modules/2.6.11-1.1369_FC4/build/.tmp_versions/*.mod /usr/local/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/2.6.11-1.1369_FC4/build/.tmp_versions/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/local/at76c503a MODVERDIR=/usr/local/at76c503a/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make: *** /lib/modules/2.6.11-1.1369_FC4/build: No such file or directory. Stop.
make: *** [modules] Error 2
I appreicate any help. Thanks in advance
I having same problem due to FC4 bieng 64 bit version x86_64 FC4 needing same fix help
Sam Weldon
2005-12-13, 06:53 AM CST
http://fedoranews.org/tchung/atmel-firmware/
panama
2005-12-13, 07:29 AM CST
Thanks Sam,
panama
2005-12-13, 05:25 PM CST
I installed atmel-firmware-1.3-1.fc4.noarch.rpm and I am still getting the following error below? What do I need to do to correct this problem?
make
mkdir -p .tmp_versions
cp /lib/modules/2.6.14-1.1644_FC4/build/.tmp_versions/*.mod /home/fwest/at76c503a/.tmp_versions
cp: cannot stat `/lib/modules/2.6.14-1.1644_FC4/build/.tmp_versions/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.14-1.1644_FC4/build SUBDIRS=/home/fwest/at76c503a MODVERDIR=/home/fwest/at76c503a/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make[1]: Entering directory `/usr/src/kernels/2.6.14-1.1644_FC4-i686'
CC [M] /home/fwest/at76c503a/at76c503-i3861.o
CC [M] /home/fwest/at76c503a/at76c503-rfmd.o
CC [M] /home/fwest/at76c503a/at76c503-rfmd-acc.o
CC [M] /home/fwest/at76c503a/at76c505-rfmd.o
CC [M] /home/fwest/at76c503a/at76c503-i3863.o
CC [M] /home/fwest/at76c503a/at76c505-rfmd2958.o
CC [M] /home/fwest/at76c503a/at76c505a-rfmd2958.o
CC [M] /home/fwest/at76c503a/at76c503.o
/home/fwest/at76c503a/at76c503.c: In function ‘ieee80211_to_eth’:
/home/fwest/at76c503a/at76c503.c:3948: warning: assignment from incompatible pointer type
/home/fwest/at76c503a/at76c503.c: In function ‘at76c503_tx_timeout’:
/home/fwest/at76c503a/at76c503.c:4820: error: ‘URB_ASYNC_UNLINK’ undeclared (first use in this function)
/home/fwest/at76c503a/at76c503.c:4820: error: (Each undeclared identifier is reported only once
/home/fwest/at76c503a/at76c503.c:4820: error: for each function it appears in.)
/home/fwest/at76c503a/at76c503.c: At top level:
/home/fwest/at76c503a/at76c503.c:6703: error: unknown field ‘spy_offset’ specified in initializer
/home/fwest/at76c503a/at76c503.c:6703: warning: initialization makes pointer from integer without a cast
make[2]: *** [/home/fwest/at76c503a/at76c503.o] Error 1
make[1]: *** [_module_/home/fwest/at76c503a] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.14-1.1644_FC4-i686'
make: *** [modules] Error 2
Sam Weldon
2005-12-13, 07:01 PM CST
This is due to 1. Me and you are using FC 4 64 bit version.. this firmware is built for 386 or 32 bit version.
panama
2005-12-14, 06:43 AM CST
I am not using FC4 64bit version.
Sam Weldon
2005-12-15, 06:46 PM CST
OK, lets start again fresh......
Make sure you have the firmware installed to /lib/firmware
location by entering;
ls /lib/firmware
Sample expected results;
$ ls /lib/firmware
atmel_at76c502_3com.bin atmel_at76c504_2958-wpa.bin
atmel_at76c502_3com-wpa.bin atmel_at76c504a_2958-wpa.bin
atmel_at76c502.bin atmel_at76c504.bin
atmel_at76c502d.bin atmel_at76c504c-wpa.bin
atmel_at76c502d-wpa.bin atmel_at76c505a-rfmd2958.bin
atmel_at76c502e.bin atmel_at76c505-rfmd2958.bin
atmel_at76c502e-wpa.bin atmel_at76c505-rfmd.bin
atmel_at76c502-wpa.bin atmel_at76c506.bin
atmel_at76c503-i3861.bin atmel_at76c506-wpa.bin
atmel_at76c503-i3863.bin BCM2033-FW.bin
atmel_at76c503-rfmd-0.90.2-140.bin BCM2033-MD.hex
atmel_at76c503-rfmd-acc.bin BCM-LEGAL.txt
atmel_at76c503-rfmd.bin isl3890
If not then install the atmel-firmware-1.3-1fc3.noarch.rpm from;
http://www.thekelleys.org.uk/atmel/
Insure the amtel drivers are available and installed in
/lib/modules/<kernel-version-number>/kernel/drivers/net/wireless
by entering;
ls /lib/modules/`uname -r`/kernel/drivers/net/wireless/atm*
note: that is the ` key [by the number 1 and 'Esc' keys]
not the ' key [by the 'Enter' key] in the command above
Sample expected results;
$ ls /lib/modules/`uname -r`/kernel/drivers/net/wireless/atm*
/lib/modules/2.6.14.4/kernel/drivers/net/wireless/atmel.ko
/lib/modules/2.6.14.4/kernel/drivers/net/wireless/atmel_cs.ko
/lib/modules/2.6.14.4/kernel/drivers/net/wireless/atmel_pci.ko
Since you state that you have no /var/log/messages file it would
be a good idea to re-boot your system at this point. You should have
the /var/log/messages file after rebooting, please check by entering;
ls -l /var/log/messages
Sample example results;
$ ls -l /var/log/messages
-rw------- 1 root root 27208 Dec 15 09:01 /var/log/messages
If you have the /var/log/messages file the next step is to insert
the belkin f5d6050 into a usb port then 'test load' the amtel driver
by entering;
/sbin/modprobe -v -n atmel
You should (hopefully) get back something like;
insmod /lib/modules/2.6.14.4/kernel/drivers/net/wireless/amtel.ko
If not then review your /var/log/messages file to make sure your
usb drivers and usb device(s) are being loaded and reconized.
If you get back good results then really load the driver by entering;
/sbin/modprobe -v amtel
If this works without an error then see if the interface is available
by entering;
/sbin/iwconfig
If this tool is not available then most likely the wireless-tools package
is not installed. If it is installed then lets try and find an access point
(AP) by entering;
/sbin/iwlist wlan0 scan
If you get something back about your AP and not your system then try entering;
/sbin/dhclient wlan0
If you receive an error message something like;
ifup wlan0
ignoring unknown interface wlan0=wlan0
then you will need to add your own IP manually by simply entering;
/sbin/ifconfig wlan0 <your IP>
/sbin/route add default gw <router IP>
This should allow you onto the internet for this session only.
If everything went well and you now have a wireless connection use the
system-config-network tool to make this configuration part of your
system configuration. If something did not go well provide the details
of where it went wrong and any error messages you saw and the relvent
information from /var/log/messages. this was qouted from linuxquestion via member LENARD
MasterC
2005-12-16, 07:04 PM CST
That's not cool.
You could have just as easily typed your own words or linked to the post you got that data from. AFAIK it's not illegal, just uncool... Give credit where credit is due.
http://www.linuxquestions.org/questions/showthread.php?p=2000385#post2000385
Lenard
2005-12-16, 08:08 PM CST
The firmware being 32-bit is not important, I also do not believe that the gcc version matters the much either. I do know that building a vanilla kerenl from kernel.org is a good idea. The current released version is 2.6.14.4 and the atmel drivers build cleanly on my AMD64 laptop;
$ rpm -qa 'gcc*'
gcc-4.0.2-6
gcc-c++-4.0.2-6
gcc-java-4.0.2-6
$ uname -a
Linux Aspire5000 2.6.14.4dsdt #2 Fri Dec 16 13:08:32 EST 2005 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
CentOS release 4.2 (Final)
$ ls /lib/modules/`uname -r`/kernel/drivers/net/wireless/atm*
/lib/modules/2.6.14.4dsdt/kernel/drivers/net/wireless/atmel.ko
/lib/modules/2.6.14.4dsdt/kernel/drivers/net/wireless/atmel_pci.ko
Sam Weldon
2005-12-17, 09:20 AM CST
hey where did ther aoute tags go to ?
That above was from lenard in the linuxquestions.org forum.. Odd though I posted this as a qoute..
Sorry Lenard
I didnt mean for this to look as if I was trying to takew someone else work.. Sorry once again to LENARD..
Lenard
2005-12-23, 11:08 AM CST
Just found this out myself earlier today, maybe this is the problem in reality;
http://www.linuxquestions.org/questions/showthread.php?t=243998
code_astronomer
2005-12-23, 01:08 PM CST
I just recently compiled the at76c503a driver.
I followed this guide about the kernel (I ignored the nvidia stuff at the bottom). http://www.mjmwired.net/resources/mjm-kernel-fc4.html?PHPSESSID=6460c3ea095cc33052282a5a9323fe4 a
After I followed this guide, the source compiled perfectly and Im connected to the internet :)
I reckomend you have a look and follow it...Im sure it will help you as it did me.
softcraft
2006-01-10, 11:18 AM CST
The following patch fixes building with linux kernel >= 2.6.14 and changes the MODULES_DIR installation directory directly under /lib/modules/`uname -r`/wireless/ so that subsequent kernel source 'make modules_install' do not remove the at76c503a modules as they presently do under
.../kernel/net/wireless/
--- Makefile,orig Sun Sep 19 12:17:29 2004
+++ Makefile Mon Jan 9 17:34:00 2006
@@ -64,7 +64,7 @@
# delete any old module in this tree before installing a new one
DEL_MODULE_DIR = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)
-MODULE_DIR = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/net/wirele
ss/at76c503
+MODULE_DIR = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/wireless/at76c503
DEPMOD = /sbin/depmod
# if Rules.make exists in the kernel tree, we assume 2.4 style modules
--- at76c503.c,orig Mon Mar 7 17:33:14 2005
+++ at76c503.c Mon Jan 9 17:37:49 2006
@@ -204,8 +204,10 @@
#define USB_ST_STALL (-EPIPE)
#endif
+#ifdef URB_ASYNC_UNLINK /* missing from KERNEL_VERSION(2,6,15) */
#ifndef USB_ASYNC_UNLINK
#define USB_ASYNC_UNLINK URB_ASYNC_UNLINK
+#endif /* not USB_ASYNC_UNLINK */
#endif
#ifndef FILL_BULK_URB
@@ -4817,7 +4819,9 @@
if (!dev)
return;
warn("%s: tx timeout.", netdev->name);
+#ifdef USB_ASYNC_UNLINK
dev->write_urb->transfer_flags |= USB_ASYNC_UNLINK;
+#endif
usb_unlink_urb(dev->write_urb);
dev->stats.tx_errors++;
}
@@ -6700,7 +6704,9 @@
.private = (iw_handler *) at76c503_priv_handlers,
.private_args = (struct iw_priv_args *) at76c503_priv_args,
#if WIRELESS_EXT > 15
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
.spy_offset = offsetof(struct at76c503, spy_data),
+#endif // KERNEL_VERSION < 2.6.14
#endif // #if WIRELESS_EXT > 15
};
wizards
2006-01-10, 12:26 PM CST
I'mhaving a similar problem after upgrading my kernel last night. Yum left old version in grub so I'm able to boot into it. Here is the error I'm getting, still lookin for a way to fix it too.
[root@localhost wusb11]# make
mkdir -p .tmp_versions
cp /lib/modules/2.6.14-1.1656_FC4/build/.tmp_versions/*.mod /home/rich/wusb11/.t mp_versions
cp: cannot stat `/lib/modules/2.6.14-1.1656_FC4/build/.tmp_versions/*.mod': No s uch file or directory
make: [modules] Error 1 (ignored)
make -C /lib/modules/2.6.14-1.1656_FC4/build SUBDIRS=/home/rich/wusb11 MODVERDIR =/home/rich/wusb11/.tmp_versions \
EXTRA_CFLAGS=" -DCOMPILE_FIRMWARE_INTO_DRIVER" modules
make[1]: Entering directory `/usr/src/kernels/2.6.14-1.1656_FC4-i686'
CC [M] /home/rich/wusb11/at76c503.o
/home/rich/wusb11/at76c503.c: In function ‘ieee80211_to_eth’:
/home/rich/wusb11/at76c503.c:3948: warning: assignment from incompatible pointer type
/home/rich/wusb11/at76c503.c: In function ‘at76c503_tx_timeout’:
/home/rich/wusb11/at76c503.c:4820: error: ‘URB_ASYNC_UNLINK’ undeclared (first use in this function)
/home/rich/wusb11/at76c503.c:4820: error: (Each undeclared identifier is reported only once
/home/rich/wusb11/at76c503.c:4820: error: for each function it appears in.)
/home/rich/wusb11/at76c503.c: At top level:
/home/rich/wusb11/at76c503.c:6703: error: unknown field ‘spy_offset’ specified in initializer
/home/rich/wusb11/at76c503.c:6703: warning: initialization makes pointer from integer without a cast
make[2]: *** [/home/rich/wusb11/at76c503.o] Error 1
make[1]: *** [_module_/home/rich/wusb11] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.14-1.1656_FC4-i686'
make: *** [modules] Error 2
wizards
2006-01-12, 08:02 AM CST
I am still trying to get the thing to work after a kernel upgrade!! Have google'd my fingers off to no avail. unfortunatly, wifi is my only way to get on the net, am glad Yum left the 1369 kernel behind so I can get onliine. I cant seem to get it to work with gcc32 either, ( not even entirely sure how to go about using gcc32). Last night I tried to get at76503a (again!) via CVS, followed the Instructions at berlios - no go. It's ironic, I live approx 1/4 mile from wifi AP and this wusb11 thingy connects with very little problams, wifi operator still thinks I have hidden a repeater somewhere! Really need to figure this out
Any help would be appreciated as searching hasn't yielded any results.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.