How To Drive Attansic L2 100/100 Fast Ethernet Under FC7
Linked From http://www.2beanet.com/
How To Drive Attansic L2 100/100 Fast Ethernet Under FC7
Summary:
For personal use, I diy a personal computer, the main board is from ASUS, integrated with Attansic L2 10/200 Fast ethernet, the seller provided with the device drive for windows series, but I want to install it with Linux which is fedore core 7, what a pity, the network card has not been supported be default installation, and then google......
Solveing The Problem:
I downloaded L2-linux-driver_new.rar from internet, unpacked it under windows xp, and then copy all the files into FC7, compile it, errors appeared:
[root@localhost src]# make
make -C /lib/modules/2.6.21/build SUBDIRS=/home/mark/net_driver/L2-linux-driver_new/src modules
make[1]: Entering directory `/usr/src/linux-2.6.21'
CC [M] /home/mark/net_driver/L2-linux-driver_new/src/at_main.o
/home/mark/net_driver/L2-linux-driver_new/src/at_main.c: In function ‘at_vlan_rx_kill_vid’:
/home/mark/net_driver/L2-linux-driver_new/src/at_main.c:1490: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
/home/mark/net_driver/L2-linux-driver_new/src/at_main.c: In function ‘at_restore_vlan’:
/home/mark/net_driver/L2-linux-driver_new/src/at_main.c:1511: error: ‘struct vlan_group’ has no member named ‘vlan_devices’
make[2]: *** [/home/mark/net_driver/L2-linux-driver_new/src/at_main.o] Error 1
make[1]: *** [_module_/home/mark/net_driver/L2-linux-driver_new/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21'
make: *** [default] Error 2
and then I opened at_main.c file, found two debug functions:
at_vlan_rx_kill_vid
at_restore_vlan
drop the content of the functions, return directly.
compile again, passed!
then
# make install
reboot
# ifconfig
OK,you could see the device eth0......