PDA

View Full Version : Failed to install Lan - Newbie with error message


iwonder
2007-08-04, 07:22 AM CDT
Hi Everybody,

The motherboard I use is Asus P5GC-MX (on board Attansic L2 Fast Ethernet), E2140 CPU, and I try to install Fedora 7.

According to some old posts, this problem should have been resolved in FC7. However ... This is the first time that I really use the command "make", what a big surprise!! :eek:

After the 1st failure, I further search/read and find that I have to change those config.h into autoconf.h in both the Makefile and at.h
Another post also mentioned that he can do a successful installtion only by NOT selecting "customer selection" during package/program installation. I followed. But still ... :(

The error message mentioned something like
>>> macro "INIT_WORK" passed 3 arguments, but takes just 2
that I have absolutely no idea what it is about.

Can anybody help to give some hints/advice to proceed. Please let me know if I have missed any information you need.

Thanks in advance.

The complete error message is

[root@localhost src]# ls
at.h at_hw.h at_main.c at_param.c drv_ioctl.h kcompat.h
at_hw.c atl2.mod.c at_osdep.h at_test.c kcompat.c Makefile
[root@localhost src]# make install
make -C /lib/modules/2.6.21-1.3194.fc7/source O=/lib/modules/2.6.21-1.3194.fc7/build SUBDIRS=/usr/local/src/AtL2/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.21-1.3194.fc7-i686'
CC [M] /usr/local/src/AtL2/src/at_main.o
In file included from /usr/local/src/AtL2/src/at_main.c:1:
/usr/local/src/AtL2/src/at.h:69:5: warning: "DBG" is not defined
/usr/local/src/AtL2/src/at_main.c:104: warning: initialization from incompatible pointer type
/usr/local/src/AtL2/src/at_main.c:327:53: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/src/AtL2/src/at_main.c: In function ‘at_probe’:
/usr/local/src/AtL2/src/at_main.c:326: error: ‘INIT_WORK’ undeclared (first use in this function)
/usr/local/src/AtL2/src/at_main.c:326: error: (Each undeclared identifier is reported only once
/usr/local/src/AtL2/src/at_main.c:326: error: for each function it appears in.)
/usr/local/src/AtL2/src/at_main.c:330:51: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/src/AtL2/src/at_main.c:333:53: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/src/AtL2/src/at_main.c: In function ‘at_notify_reboot’:
/usr/local/src/AtL2/src/at_main.c:401: warning: ‘pci_find_device’ is deprecated (declared at include/linux/pci.h:470)
/usr/local/src/AtL2/src/at_main.c: In function ‘at_up’:
/usr/local/src/AtL2/src/at_main.c:817: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/usr/local/src/AtL2/src/at_main.c: In function ‘at_vlan_rx_kill_vid’:
/usr/local/src/AtL2/src/at_main.c:1102: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
/usr/local/src/AtL2/src/at_main.c: In function ‘at_restore_vlan’:
/usr/local/src/AtL2/src/at_main.c:1120: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
make[3]: *** [/usr/local/src/AtL2/src/at_main.o] Error 1
make[2]: *** [_module_/usr/local/src/AtL2/src] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.21-1.3194.fc7-i686'
make: *** [default] Error 2
[root@localhost src]#

PatMcLJr
2007-08-04, 09:18 AM CDT
Sorry, i don't follow what you are doing.
I'm a newbea myself. The only time I have used a “make install” was after a successful ./configure and make if a compile was going to choke it would have never made it to the make install.

Best of Luck,
Pat Jr.

iwonder
2007-08-04, 10:08 AM CDT
Sorry, i don't follow what you are doing.
I'm a newbea myself. The only time I have used a “make install” was after a successful ./configure and make if a compile was going to choke it would have never made it to the make install.

Best of Luck,
Pat Jr.

My ultimate objective is merely to "install the driver for the on-board lan chip".
All the files are provided by the motherboard producer. I followed the instruction and encountered the 1st failure.
Above is for experts to judge if what I'd tried deserves a reply or I need keep surfing. Meanwhile, I am also collecting more information for the whole process as I am still not very clear how long the way to go after solving this step. :(

iwonder
2007-08-05, 08:54 AM CDT
After working hard for the last 24 hours, finally I get connected. This is what I've done.

1/ Reinstall Linux but use FC6 instead of FC7.
2/ Repeat just what I've done on FC7. It prompts no error this time.
3/ Check to make sure the file atl2.ko is there
/lib/modules/`uname -r`/kernel/drivers/net/atl2/atl2.ko
4/ run depmod (to update some information about kernel)
5/ add to the file /etc/modprobe.conf alias eth0 atl2
6/ run modprobe eth0 (the lights beside the lan plug shine once I run this command, so beautiful. :) But I still cannot ping my router.)
7/ run ifconfig eth0 192.168.1.3 (I can ping my router now, but still cannot get access to internet.)
8/ I create 2 more files with the following content.

Left part of the equal sign must be capital letters. You can find most of those numbers by running the command ifconfig. GATEWAY is the IP of my router.
[root@linux ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=xx:xx:xx:xx:xx:xx
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NETWORK=192.168.1.0
GATEWAY=192.168.1.50
ONBOOT=yes
MTU=1500
GATEWAYDEV=eth0
This numbers are the primary & secondary DNS provided by my ISP
[root@linux ~]# vi /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
9/ run /etc/init.d/network restart (to activate the above setting)

Just wonder what will it be with FC8 :p

iwonder
2007-08-06, 03:03 AM CDT
What a Great Experience !!!

Very soon after I get connected. Upper right hand corner prompts me that there are 2xx updates for security concern. I install them all, reboot, and ... you know what ? I loss connection again. :mad:

I copy the atl2.ko file to folder under new kernel and redo step 4-6 above. No way, nothing happen. I did try to redo from step 2 above, it prompts the same error as with FC7. :(

Newbie needs more practice, and Linux is so considerate :rolleyes:

The good thing is I have been thinking about redo the partition from square one. :D

fliptop
2007-08-06, 01:59 PM CDT
Newbie needs more practice, and Linux is so considerate

hi iwonder - i just got off the phone w/ asus tech support, and they informed me that the folks in taiwan who write the drivers are aware of this problem (basically, it's the same error on every redhat platform. i've confirmed on both fedora 7 and centos5.) he refused to speculate on how long it would take to get fixed, or if it will even get fixed at all.

sorry to bring bad news, but that's the way it is with linux sometimes. i've worked around the problem by installing a 3-com pci nic. if i have time i'll look at the code to see if i can figure it out, but don't hold your breath.....

regards, paul

iwonder
2007-08-07, 12:24 AM CDT
hi iwonder - i just got off the phone w/ asus tech support, and they informed me that the folks in taiwan who write the drivers are aware of this problem (basically, it's the same error on every redhat platform. i've confirmed on both fedora 7 and centos5.) he refused to speculate on how long it would take to get fixed, or if it will even get fixed at all.

sorry to bring bad news, but that's the way it is with linux sometimes. i've worked around the problem by installing a 3-com pci nic. if i have time i'll look at the code to see if i can figure it out, but don't hold your breath.....

regards, paul

Hi fliptop,

Thank you very much for your information. Hope I'll have a dual lan slim PC in future. ;)

iwonder

ks_work
2007-08-07, 12:44 PM CDT
I've had same problem with installing Attansic L2 network card driver on FC7. Finally got it working after some fiddling with driver code. More details here: http://ihatecubicle.blogspot.com/2007/08/how-to-install-attansic-l2-network.html

jcliburn
2007-08-07, 07:49 PM CDT
Here's a version of the L2 driver the vendor sent me. He gave me permission to make it available. I don't know if it's newer or older than the one referenced at blogspot in post #8.

I've not used this driver because I don't have an L2; I have an L1. But because it came directly from the vendor, I suspect it should build and work fine.

iwonder
2007-08-07, 09:21 PM CDT
I've had same problem with installing Attansic L2 network card driver on FC7. Finally got it working after some fiddling with driver code. More details here: http://ihatecubicle.blogspot.com/2007/08/how-to-install-attansic-l2-network.html

I have inserted another network card, and it starts work once I reinstall FC7. :)

Thanks for the above link, I've just tried but it doesn't work on my PC. Not sure if it is because there is already a network card installed that changed some default assumption. Error message is posted below for reference.

[root@linux src]# make install
make -C /lib/modules/2.6.22.1-41.fc7/build SUBDIRS=/usr/local/src/atl2/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.1-41.fc7-i686'
CC [M] /usr/local/src/atl2/src/at_main.o
/usr/local/src/atl2/src/at_main.c: In function ‘at_vlan_rx_kill_vid’:
/usr/local/src/atl2/src/at_main.c:1488: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
/usr/local/src/atl2/src/at_main.c: In function ‘at_restore_vlan’:
/usr/local/src/atl2/src/at_main.c:1507: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
make[2]: *** [/usr/local/src/atl2/src/at_main.o] Error 1
make[1]: *** [_module_/usr/local/src/atl2/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.1-41.fc7-i686'
make: *** [default] Error 2

ks_work
2007-08-07, 10:09 PM CDT
You are pretty close.
Just comment out everything inside debug functions ('at_vlan_rx_kill_vid' and 'at_restore_vlan') in at_main.c. You may leave just 'return;' part.


I have inserted another network card, and it starts work once I reinstall FC7. :)

Thanks for the above link, I've just tried but it doesn't work on my PC. Not sure if it is because there is already a network card installed that changed some default assumption. Error message is posted below for reference.

[root@linux src]# make install
make -C /lib/modules/2.6.22.1-41.fc7/build SUBDIRS=/usr/local/src/atl2/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.1-41.fc7-i686'
CC [M] /usr/local/src/atl2/src/at_main.o
/usr/local/src/atl2/src/at_main.c: In function ‘at_vlan_rx_kill_vid’:
/usr/local/src/atl2/src/at_main.c:1488: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
/usr/local/src/atl2/src/at_main.c: In function ‘at_restore_vlan’:
/usr/local/src/atl2/src/at_main.c:1507: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
make[2]: *** [/usr/local/src/atl2/src/at_main.o] Error 1
make[1]: *** [_module_/usr/local/src/atl2/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.1-41.fc7-i686'
make: *** [default] Error 2

iwonder
2007-08-07, 10:31 PM CDT
Thanks jcliburn, it works !!! :) :)

a few warning during "make" process
normal running depmod
add alias eth1 atl2 to the modprobe.conf file
run modprobe eth1
cp ifcfg-eth0 to ifcfg-eth1 and update the hardware address & ip accordingly (wonder why GATEWAY setting is not here as what I manually did last time, where is it set now?)
run /etc/init.d/network restart
then ... ???

Well, I've not yet found/read to the materials about running 2 nic (I aim at using this PC as a firewall/server between internet and my network.)

By now, I unplug the cable of eth0, ping my router, it failed, and I find the ip of eth0 in those lines.
I run ifdown eth0, ping again the router, it works.
So, I think it confirms the driver provided by jcliburn works. However, the settings in ifcfg-eth1 is insufficient to give me internet connection.
Any suggested command, config files for me to search/read so as to proceed in this direction.

Thanks again for all your helps.

ks_work
2007-08-08, 04:21 PM CDT
Here's a version of the L2 driver the vendor sent me. He gave me permission to make it available. I don't know if it's newer or older than the one referenced at blogspot in post #8.

I've not used this driver because I don't have an L2; I have an L1. But because it came directly from the vendor, I suspect it should build and work fine.

Yes, looks like it's the same driver.
I also noticed that Fedora Core 7 already has L1 support for Attansic cards
(at least what I've seen during installation seems as kernel module for L1 - atl.ko).

jcliburn
2007-08-08, 04:41 PM CDT
I also noticed that Fedora Core 7 already has L1 support for Attansic cards
(at least what I've seen during installation seems as kernel module for L1 - atl.ko).
Yep, it's there. I'm the kernel maintainer for that driver. :)

fliptop
2007-08-09, 07:09 AM CDT
all - jcliburn posted a tarball that doesn't quite build an rpm when you run rpmbuild -tb on it. i've fixed it, for the most part, by doing the following:

1) untar, then rename directory to atl2-1.0.40.4/ (the .spec file wants it to be named %{name}-%{version}.tar.gz, so the filename used in the attachment 'l2-linux-v1.0.40.4' won't work).

2) run dos2unix on the .spec file

3) touch LICENSE and README in the new dir (or, alternatively, you can mv the rename file)

4) retar the directory, naming it atl2-1.0.40.4.tar.gz

use this new tarball to build the rpm. i've confirmed it works on fedora 7 and centos5, however it hangs during %post, and i haven't figured out what's the cause of this. since this part fails, you have to manually run depmod, edit /etc/modprobe.conf, and add the ifcfg-ethx file to /etc/sysconfig/network-scripts/.

if i have time next week i'll see if i can figure out why the %post portion of the .spec hangs.

regards, paul

jcliburn
2007-08-09, 07:30 AM CDT
All you L2 owners should be emailing Atheros support, asking them to submit the L2 driver for inclusion in the mainline kernel. The more people who ask, the more likely it is it'll happen.

yanjibao
2007-09-26, 06:12 PM CDT
With the driver jcliburn gave us ,I installed the driver successfully on FC7.
It was very strange, just "make install" command worked with warnings.
So is what I did:Rename directory to atl2-1.0.40.4(As fliptop said), then everything went pretty well!
I am using the ASUS F5R Notebook