yeh ok im done thanks...every thing needs patience..
Quote:
this one ftp://ftp.hogchain.net/pub/linux/att....0.40.4.tar.gz |
Thanks for the info. Gave it a try and builds fine. They changed the at.main.c file in the place I mentioned in post.
Brian |
I'm at a OpenSuse 10.3 and I'm an Asus motherboard with the Attansic ethernet chip, I'm having the same problem in order to activate the nic. I downloaded the file l2-linux-v1.0.40.4.tar.gz from a link at one of the replies in this post, I followed the instructions in the readme file; I had to create de version.h file to compile the driver but even had created the file everytime I try to compile I receive the answer "Linux kernel source not configured - missing version.h. Stop.". Any clue?
|
The url is great!!
Quote:
Thank you for sharing!! |
Hello,
I am running a fresh install of Centos 5.2 with kernel 2.6.18-92.el5 and thanks to this thread and another one at Ubuntu forums I got as far as: ./lsmod|grep atl2 returns: atl2 31512 0 So it seems that the module is loaded correctly. And what should I do next? How can I activate the network card? It is still not recognized by the system at startup. There is just no ethx device. Thanks in advance! Benedikt. |
O.k. after five hours of work (Argh!!) I got the Attensic L2 network chip on my ASUS board to work on my new out of the box CENTOS 5.2 installation with kernel 2.6.18-92.el5.
Here is a summary of what I found out, perhaps it helps people to save some time: 1) When you search google you get two helping threads about this hardware issue, namely this one at linuxquestions.org and the one at the Ubuntu forums: http://ubuntuforums.org/showthread.php?t=429845 There is also a blog entry at: http://ihatecubicle.blogspot.com/200...2-network.html 2) There are two driver versions available. As far as I found out, there is one that works for kernels prior to 2.6.23 and one for newer kernels. I used the "old" one which I got at http://ubuntuforums.org/attachment.p...0&d=1179781554 The new one can be downloaded at several sources, e.g.: http://launchpadlibrarian.net/738241...driver_new.rar or ftp://ftp.hogchain.net/pub/linux/att....0.40.4.tar.gz I never managed to compile the new driver without errors. There was always this "error: redefinition of typedef 'irq_handler_t'" issue mentioned above in this thread. 3) For use with CENTOS 5.2 you can stay with the "old" driver for the moment, which compiles without problems. There is also a compiled version of this driver to download in the above mentioned thread at Ubuntu forums but it does not work for CENTOS 5.2. When you get the error: insmod: error inserting 'lib..../atl2.ko': -1 Invalid module format you likely wanted to use the already compiled version and it fails 3) Compiling itself is easy: Anyway, for Linux beginners it is sometimes tricky because they do not have the packages installed to do compiling (namely the compiler gcc and of course, in this case kernel-devel as we want to compile a kernel module). Typical errors you get if you do not have the right packages installed are: Makefile:62: *** Linux kernel source not found. Stop. (This happens when you are missing kernel-devel) or make: command not found (This happens when you are missing gcc compiler) So be sure to have all these packages installed: kernel-headers, kernel-devel, gcc, glibc, glibc-headers, libgomp, glibc-devel, cpp; These packages you find on your distros CDs or you can download them from a CENTOS mirror (pick the right version!) and transfer them to the box with an usb stick (as you probably have no network access on the machine). Then install them by typing rpm -ivh filename_of_package.rpm 4) Ok, back to compiling: Unzip the drivers zip-file and enter the directory. Enter the sub directory src and type make install When successfully performed, the compiler should have placed the module in the directory /lib/modules/<KERNEL VERSION>/kernel/drivers/net The file is named atl2.ko or atl.ko. If it is only named atl.ko rename it to atl2.ko (I did this and it worked - I do not know if it is necessary.) I also did a chmod 744 to give the file the same permissions as the other files in the directory but I am also not sure if it is necessary. 5) Add the module to the loaded kernel Remap all modules by typing modprobe -a If you get a command not found error then type: /sbin/modprobe -a To load the module type: /sbin/modprobe atl2 If you do not get an error message, this was successful. 6) Now you have to make sure that it is loaded each time you boot. Change directory: cd /etc/sysconfig/modules Add a file named atl2.modules with the following content: /sbin/modprobe atl2 Change Permissions: chmod 0755 atl2.modules 7) You have to manually configure the network card. Do not expect that kudzu / anaconda will help you. Change directory: cd /etc/sysconfig/network-scripts Add the configuration file of the network interface. Filename: ifcfg-eth0 (if you want it to be eth0, otherwise use eth1, eth2 etc). The file should look like this: DEVICE=eth0 BOOTPROTO=static HWADDR=xx:xx:xx:xx:xx:xx IPADDR=xx.xx.xx.xx NETMASK=xxx.xxx.xxx.xxx GATEWAY=xxx.xxx.xxx.xxx ONBOOT=YES TYPE=Ethernet Change the settings as you want, e.g. DHCP instead of static ip address, etc. Important is the hardware address of the L2 adapter. I found it after reboot of my computer in the GNOME hardware browser. After saving the file, type: /etc/rc.d/init.d/network restart Now the ethx interface should come up. Finally, if you did not have a network installation until then (because Anaconda skipped it due to non-availability of network interface) you should also enter some nameservers: Change file: /etc/resolv.conf Add entries like: nameserver xx.xx.xx.xx Finally your internet connection should work. As you can see, I have only described the compile part in detail. Of course there are many settings you can change with the network preferences but this depends on your network topology (most important DHCP <-> static IP address). Hope this helps. Benedikt. |
Quote:
I.e. there is no "link" established between the atl2 module and eth0. Normally you would put an alias into /etc/modprobe.conf i.e. alias eth0 atl2, however, whilst this does at least make networking attempt to start the network (at boot time), eth0 is never brought up successfully. One thing I need to check is whether it is essential to have the MAC address in /etc/sysconfig/network-scripts/ifcfg-eth0 ? If so, how can I find out this information? Please don't suggest I install windows :-) So in short, I can only say that for me these instructions didn't work when installing Centos 5.2 x86_64 on an Asus P5K SE/EPU motherboard, which has the Atheros gigabit NIC. Will report back if I have any success. Cheers, Jon |
I just backported the current version of the atl2 driver in the mainline kernel to CentOS 5.2. Anyone willing to test it?
The instructions are simple. Copy this tarball to your home directory, then: Code:
$ tar xzvf atlx-centos-5.2.tar.gz |
Quote:
Are you sure your motherboard contains an L2 NIC? I think it's fitted with the L1e NIC, which doesn't use the atl2 driver. Please post the output of lspci -n. |
Quote:
L2 NIC on an ASUS board, running ClarkConnect 4.3 community, based (I think) on CENTOS. Kernel 2.6.18-92.cc4. Was using the l2-linux-v1.0.40 driver which works, but only sort of - it suffers very frequent 'txs packet size do not coinsist with txd' errors, and intermittent transmit time outs, forcing a reconnect, and so transfer of large (>1Gb) files over e.g. SAMBA fails most of the time because the network drive link suddenly disappears. So, I was keen to try a driver update... Your backport compiles and installs, but on ifup (using the network script previously set up for the old driver) I get a message that the device doesn't seem to be present. Modinfo atl2 reports the module is present and installed. A reboot doesn't fix. |
Thanks for trying it abelardy. It's not terribly surprising to learn it doesn't work. I'll poke at it when I get some free time.
What version of the vendor atl2 driver are you using when you get the "consist" error? Seems that a digit may be missing from the version number you provided. Was it supposed to be 1.0.40.4? |
Quote:
|
Quote:
|
Quote:
And thanks for testing. |
atl2 on 2.6.18-92
Quote:
That definitely works. Compiled, installed, worked first time and still working after 2 reboots. Previous version was indeed l2-linux-v1.0.40.4 running (badly) on kernel 2.6.18-92.cc4. In the last 5 months the Attansic Atheros atl2 driver version v1.0.40.4 caused 1788 unique instances of a 'NETDEV WATCH transmit timed out' error logged to /var/log/messages, with at least one such error occuring within any 24 hours of up time (range 1-214 in any one day), as well as a zillion 'packet size do not coinsist' errors and other signs of general ill-health. Most of the time this was barely noticeable at the user end, except for occasional slightly long pauses, and the more irritating Samba transfer failures with large files over a gigabyte. Since switching to your 2.1.3 backported atlx driver still on 2.6.18-92.cc4, I've had zero such NIC-related errors in the last 36 hours. ______________________________________________ ASUS P5GX-MX/1333 Attansic Technology Corp. L2 100 Mbit Ethernet Adapter (rev a0) ClarkConnect 4.3 Community Kernel 2.6.18-92.cc4 |
All times are GMT -5. The time now is 05:12 PM. |