Bug 514069 - Attansic 1063 (atheros) with atl1c module fails badly :(
Summary: Attansic 1063 (atheros) with atl1c module fails badly :(
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-27 20:15 UTC by Valent Turkovic
Modified: 2010-05-06 15:02 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-06 15:02:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
latest athl1c module (126.47 KB, application/x-gzip)
2009-07-30 20:59 UTC, Valent Turkovic
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 363691 0 None None None Never

Description Valent Turkovic 2009-07-27 20:15:57 UTC
Description of problem:
Acer Aspire 5810T laptop fails when trying to use wired network card.
Wireless card works ok.

The problem is in atl1c module.

Laptop smold profile:
http://www.smolts.org/client/show/pub_26e9fbdd-c85f-46a7-a570-dc620d592730



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Valent Turkovic 2009-07-27 20:32:15 UTC
On Ubuntu launchpad[1] there is posted a solution, but compiling atl1c module on Fedora 11 fails ;(

I tried to compile after install like this:

yum install -y make binutils gcc glibc-devel glibc-headers libgomp patch kernel-headers kernel-devel wget

then downloaded drivers from http://partner.atheros.com/Drivers.aspx
but even decompressing shows errors :(

via instructions[2] and using "lspci -n | grep 1969" I found out that this is:
L1c 1969:1063 atl1c

but downloading and compiling shows errors:

wget ftp://hogchain.net/pub/linux/attansic/vendor_driver/l1-linux-v1.2.40.3.tar.gz
tar xvzf l1-linux-v1.2.40.3.tar.gz
cd l1-linux-v1.2.40.3/src/
make

make -C /lib/modules/2.6.29.6-213.fc11.i586/build SUBDIRS=/home/valentt/Download/l1-linux-v1.2.40.3/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.29.6-213.fc11.i586'
  CC [M]  /home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.o
/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.c: In function ‘at_io_error_detected’:
/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.c:834: error: ‘struct net_device’ has no member named ‘priv’
/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.c: In function ‘at_io_slot_reset’:
/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.c:857: error: ‘struct net_device’ has no member named ‘priv’
/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.c: In function ‘at_io_resume’:
/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.c:884: error: ‘struct net_device’ has no member named ‘priv’
make[2]: *** [/home/valentt/Download/l1-linux-v1.2.40.3/src/at_main.o] Error 1
make[1]: *** [_module_/home/valentt/Download/l1-linux-v1.2.40.3/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.29.6-213.fc11.i586'
make: *** [default] Error 2


any ideas? how to compile atl1c module on Fedora or any other Red Hat based distro?

This all is tested on 2.6.29.6-213.fc11.i586 kernel

[1] https://bugs.launchpad.net/ubuntu/+bug/363691
[2] http://www.hogchain.net/attansic/attansic.html#variants

Comment 2 JYundt 2009-07-30 11:01:01 UTC
I'm having the same issue on an Asus EEE 1005HA.

http://smolts.org/show?uuid=pub_7ad69dec-7e5e-4aaa-bab6-68bb9e015c72

The atl1c driver does not seem happy.

Comment 3 Valent Turkovic 2009-07-30 20:55:48 UTC
Atheros developers replied to my email and send me latest athl1c source. That version compiles and works great. I'll attach it so you can see it and test it.

Comment 4 Valent Turkovic 2009-07-30 20:59:02 UTC
Created attachment 355728 [details]
latest athl1c module

latest athl1c module

Comment 5 bryan.d.swift 2009-08-31 14:33:44 UTC
I'm having the same issue with the atl1c driver in Fedora 11 on an Asus EEE PC 1005HA. The driver included with

When I compiled another driver (rt73) for a Ralink USB adapter, I got the "no member named 'priv'" error as well.

Comment 6 Valent Turkovic 2009-09-09 11:40:28 UTC
Any ideas why this happens?

Comment 7 Fernando Mansito 2009-10-10 13:13:14 UTC
(In reply to comment #6)
> Any ideas why this happens?  

(In reply to comment #6)
> Any ideas why this happens?  

To Valent Turkovic

Thank you very much for your posted .11-test version of atlie. I have purchased an acer aspire as3810T and I am having the same problems as everybody else with the atl1c driver so I would be heppy to be able to install your version on my Centos 5.3 distro.

As the operation is likely to need to be repeated for each new kernel, I'm trying to follow the instructions in the Readme file to build an .rpm file. Unfortunately the .11-test.tar.gz file needs some changes, because the .spec file that Centos, and indeed Red Hat, use fails to find a .10.tar.gz that it's unduly looking for.

Could you please kindly review the .11-test version, in particular the .spec file, and point this distressed user, and possibly others, to the reviewed version?

Thanks again
fernando mansito

Comment 8 Fernando Mansito 2009-10-11 14:32:31 UTC
To Valent Turkovic

According to Windows, the Ethernet device in the Acer Aspire S3810T is an Atheros AR8131 PC-E Gb Ethernet Controller. The device works quite well under Windows Vista, but up to now I have failed in awakening it under Linux.

I have found elsewhere references to this and lately spotted at /linux/elrepo/el5/i386/RPMS two RPMs that contain a driver seemingly composed of two parts: atl1 and atl1e. The RPMs' filenames apear below under /root/downloads.

I have installed both RPMs (rpm -ivh (path)/kmod-atl1*) without errors but also without any success: my installation does not see the device (there is even no visible connection between the computer and the router). I have pasted here the data that I have managed to gather:

-----------------------------------------
[root@aspire ~]# uname -a
Linux aspire.workgroup 2.6.18-128.el5PAE #1 SMP Wed Jan 21 11:19:46 EST 2009 i686 i686 i386 GNU/Linux
-----------------------------------------
[root@aspire ~]# ls -l /lib/modules/$(uname -r)
total 1228
lrwxrwxrwx  1 root root     48 Oct 10 23:15 build -> ../../../usr/src/kernels/2.6.18-128.el5-PAE-i686
drwxr-xr-x  3 root root   4096 Oct 11 09:23 extra
drwxr-xr-x 10 root root   4096 Oct 10 23:15 kernel
-rw-r--r--  1 root root 267902 Oct 11 09:24 modules.alias
-rw-r--r--  1 root root     69 Oct 11 09:24 modules.ccwmap
-rw-r--r--  1 root root 216759 Oct 11 09:24 modules.dep
-rw-r--r--  1 root root    147 Oct 11 09:24 modules.ieee1394map
-rw-r--r--  1 root root    375 Oct 11 09:24 modules.inputmap
-rw-r--r--  1 root root   2314 Oct 11 09:24 modules.isapnpmap
-rw-r--r--  1 root root     74 Oct 11 09:24 modules.ofmap
-rw-r--r--  1 root root 203575 Oct 11 09:24 modules.pcimap
-rw-r--r--  1 root root    589 Oct 11 09:24 modules.seriomap
-rw-r--r--  1 root root 123090 Oct 11 09:24 modules.symbols
-rw-r--r--  1 root root 349700 Oct 11 09:24 modules.usbmap
lrwxrwxrwx  1 root root      5 Oct 10 23:15 source -> build
drwxr-xr-x  2 root root   4096 Jan 21  2009 updates
drwxr-xr-x  3 root root   4096 Oct 11 09:24 weak-updates
[root@aspire ~]# 
-----------------------------------------
[root@aspire ~]# locate atl1
/etc/depmod.d/atl1.conf
/etc/depmod.d/atl1e.conf
/lib/modules/2.6.18-128.el5PAE/extra/atl1
/lib/modules/2.6.18-128.el5PAE/extra/atl1/atl1.ko
/lib/modules/2.6.18-128.el5PAE/weak-updates/atl1e
/lib/modules/2.6.18-128.el5PAE/weak-updates/atl1e/atl1e.ko
/lib/modules/2.6.18-8.el5PAE/extra/atl1e
/lib/modules/2.6.18-8.el5PAE/extra/atl1e/atl1e.ko
/root/downloads/atl1e aspire ethernet driver
/root/downloads/atl1e aspire ethernet driver/kmod-atl1-PAE-1.2.40.3-3.el5.elrepo.i686.rpm
/root/downloads/atl1e aspire ethernet driver/kmod-atl1e-PAE-1.0.1.0-3.el5.elrepo.i686.rpm
[root@aspire ~]# gedit /etc/depmod.d/atl1.conf
(contains a single line: override atl1 * weak-updates/atl1)
[root@aspire ~]# gedit /etc/depmod.d/atl1e.conf
(contains a single line: override atl1e * weak-updates/atl1e)
[root@aspire ~]# 
-----------------------------------------
In your opinion, is this an isue related to versions i.e. would your -11-test version of atl1e solve the problem, or is it that my Ethernet controller nedes another available driver, or is there no driver available up to now?

Comment 9 Chuck Ebbert 2009-10-13 13:23:05 UTC
Does it work in the new 2.6.30 F-11 kernels?

Comment 10 Valent Turkovic 2009-10-13 13:41:29 UTC
Sorry but as I sold that laptop can't check it anymore :(

Comment 11 David Crowe 2009-10-14 04:25:15 UTC
(In reply to comment #9)
> Does it work in the new 2.6.30 F-11 kernels?  

no, it does not. 

[juice ~/] 56% uname -a
Linux juice 2.6.30.8-64.fc11.i686.PAE #1 SMP Fri Sep 25 04:56:58 EDT 2009 i686 i686 i386 GNU/Linux

this laptop is a Acer Aspire Timeline AS3810T.

Comment 12 cspeidel 2009-10-22 21:04:22 UTC
I was able to get the driver compiled and installed using the code from post #4. eth0 works fine now.

-Acer Aspire Timeline AS3810TZ
-Fedora 11 kernel 2.6.30.8-64.fc11.i586. 

The RPM build part of the instructions did not work for me so I followed the rest of the instructions after installing my kernel sources. I had to edit the makefile in order to get it to find my kernel sources properly.

uname -a
Linux host 2.6.30.8-64.fc11.i586 #1 SMP Fri Sep 25 04:30:19 EDT 2009 i686 i686 i386 GNU/Linux

Comment 13 Fernando Mansito 2009-10-25 11:16:09 UTC
To comment 12 by cspeidel

Thank you very much for the hint.

For all of us people waiting for a solution, could you still please kindly post your edited makefile?

Comment 14 Fernando Mansito 2009-10-25 11:33:41 UTC
To Valent Turkovic

Especially for the newbies, could you please kindly try to take another look at that spec or find your own that worked? That would help everybody in installing a yum-acknowedgeable rpm so I would be ready to work for you with the testing if need be (Centos 5.3 distro on an Acer Aspire AS3810T).

Comment 15 Roberto Merighi 2009-10-31 18:40:38 UTC
I had the same issue on an Asus EEE 1008HA.

Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
Ethernet controller: Attansic Technology Corp. Device 1062 (rev c0)

With FC11: 2.6.30.9-90.fc11.i686.PAE #1 SMP Sat Oct 17 11:24:32 EDT 2009 i686 i686 i386 GNU/Linux

I fixed it with the attached latest athl1c module (2009-07-30 16:59 EDT, Valent Turkovic)

Procedure:

- verify that the currently running kernel match 
the installed kernel sources (uname -a) 
- download the attachment and log as root

# mkdir /usr/local/src/arl1e
# mv <downloaded_attachment> /usr/local/src/arl1e
# cd /usr/local/src/arl1e/
# tar xvzf l1c-linux-v1.0.0.11-test.tar.gz
# cd /src
# make install
# ls -l /lib/modules/2.6.30.9-90.fc11.i686.PAE/kernel/drivers/net/

and verify that arl1e driver is really installed.(Obviously, if you have a different kernel, verify it in the proper directory).

This message is written though my wire connection.

Comment 16 Fernando Mansito 2009-11-01 01:36:19 UTC
To Roberto Merighi

Thank you very much for your clear direction as to how to compile the test version that Valent Turkovic kindly pointed us to.

Unfortunately, the downloaded file will not compile under Centos 5.3 transition to 5.4. This is my current uname -a and the error message back from make install (the compiler package is gcc Centos version 4.1.2-46):

[root@aspire src]# uname -a
Linux aspire.workgroup 2.6.18-164.2.1.el5.plusPAE #1 SMP Fri Oct 9 13:15:48 EDT 2009 i686 i686 i386 GNU/Linux

[root@aspire src]# make install
make -C /usr/src/kernels/2.6.18-164.2.1.el5.plus-PAE-i686 SUBDIRS=/usr/local/src/arl1e/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-164.2.1.el5.plus-PAE-i686'
  CC [M]  /usr/local/src/arl1e/src/at_common_main.o
In file included from /usr/local/src/arl1e/src/at_common.h:4,
                 from /usr/local/src/arl1e/src/at_common_main.c:1:
/usr/local/src/arl1e/src/kcompat.h:1569: error: redefinition of ‘struct napi_struct’
make[2]: *** [/usr/local/src/arl1e/src/at_common_main.o] Error 1
make[1]: *** [_module_/usr/local/src/arl1e/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.2.1.el5.plus-PAE-i686'
make: *** [default] Error 2

Thanks a lot for the commendable effort too. At Google there are already around 150 Acer AS3810 users reporting the same problem with the Atheros AR8131 Device 1063 Ethernet controller and quite a range of Linux distros, and everybody would have been so happy to have a fix available.

Comment 17 David Crowe 2009-11-06 04:43:04 UTC
i just upgraded my Acer Timeline AS3810T which exhibited this problem to Fedora 12 Beta and it works there.  FYI  - thanks to whomever added the latest module.

[juice ~/] 9% uname -a
Linux juice 2.6.31.5-115.fc12.i686.PAE #1 SMP Wed Nov 4 00:27:30 EST 2009 i686 i686 i386 GNU/Linux

[juice ~/] 10% ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:A0:D1:AF:A8:79  
          inet addr:xxx.yy.zz73  Bcast:xxx.yy.zz.79  Mask:255.255.255.240
          inet6 addr: fe80::2a0:d1ff:feaf:a879/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1262 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1348 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:1012285 (988.5 KiB)  TX bytes:207046 (202.1 KiB)
          Interrupt:32 

and performance is stellar on a 100Mbps link:

[juice ~/] 16% scp Fedora-11-i686-Live.iso remotehost:/tmp
Fedora-11-i686-Live.iso                       100%  688MB   9.6MB/s   01:12

Comment 18 Akemi Yagi 2009-11-09 17:09:50 UTC
(In reply to comment #8)

> I have found elsewhere references to this and lately spotted at
> /linux/elrepo/el5/i386/RPMS two RPMs that contain a driver seemingly composed
> of two parts: atl1 and atl1e. The RPMs' filenames apear below under
> /root/downloads.
> 
> I have installed both RPMs (rpm -ivh (path)/kmod-atl1*) without errors but also
> without any success: my installation does not see the device (there is even no
> visible connection between the computer and the router). I have pasted here the

ELRepo now has kmod-atl1c in the elrepo-testing repository. From the announcement:

"This package provides the atl1c kernel modules for Atheros(R)
AR8121/AR8131 PCI-E Ethernet NICs.
It is built to depend upon the specific ABI provided by a range of releases
of the same variant of the Linux kernel and not on any one specific build.

It provides support for the following Vendor:Device ID pairings:

1969:1026, 1969:1062, 1969:1063, 1969:1066, 1969:1067 & 1969:2060."

I realize this bugzilla is for Fedora and the ELRepo package is for RHEL5. However, comment #8 is about CentOS-5, so thought this info might help.

Comment 19 Roberto Merighi 2009-11-20 17:34:31 UTC
To Fernando Mansito

Your gcc compiler is OK, but apparently there is a problem in the definition of the struc variable napi_struct (it is defined to look up the real NAPI polling routine).

I didn't had problems with it, because this part of the code is compiled only with kernel version previous of 2.6.24.

Before trying to fix this part of the code or suggesting to upgrade to a more recent kernel, could you tell us what happen if you type:
ethtool -i eth0

Comment 20 Vedran Miletić 2009-11-20 17:55:08 UTC
Can everyone verify that this works in Fedora 12 for them? According to comment #17, it should.

Comment 21 Fernando Mansito 2009-11-22 22:55:19 UTC
To Roberto Merighi

ethtool -i eth0 says "Cannot get driver information: No such device".

I have already tested, weeks ago, the three drivers at elrepo, and installed elrepo.repo for yum usage so hat upgrades will not be  missed. At that tine they did nor work. No wonder, the list of working drivers against controller versions that I found once at elrepo did not include device type 1063 anywhere. I will try to repeat the test asap, and thanks a lot for all your efforts and tips.

Thanks as well for confirming that there is actually a bug in the provisional version posted above, consisting in a redefinition of the structure napi_struct that you mention in your comment. No doubt that will help the experts.

Good luck to all
fernando mansito

Comment 22 Pedro Pedruzzi 2009-11-23 20:00:36 UTC
I managed to compile the driver module from sources (version 1.0.0.10) under Fedora 11 (stable up-to-date / kernel 2.6.30.9-96). Driver sources were downloaded from the manufacturer's site at:

http://partner.atheros.com/Download.aspx?id=103
(not currently working - so I don't know the title of the download link)

I am not at home right now so I don't have/remember all the details.

I just had to patch something in kcompat.h file, like:

-#ifndef IRQ_HANDLED
+#if 0

Ethernet working fine now.

My device is a 0x1969 / 0x1062 from an ASUS EeePC 1008HA netbook.

Hope it helps.

Comment 23 Fernando Mansito 2009-12-15 23:24:14 UTC
The ElRepo team (Alan Bartlett in  charge on this matter) has solved the problem for version 1063 brilliantly. The new driver, a new version of  atl1c, is in their Testing repo and could as well fix similar problems for other versions of Ethernet controllers.

Thanks a a lot to all of you for your friendy care, I hope I will be able to reciprocate.

Fernando Mansito

Comment 24 Bug Zapper 2010-04-28 09:24:12 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.