After installing Linux (Red Hat 5), no NIC Driver is found. The NIC is attansic L2. Find an articleArticleThe driver installation process is described in detail:
--------------------------------------
Original article: http://www.ichiayi.com/wiki/tech/p5gc_mx_linuxdrv
Confirm that the atl2 driver can be successful in centos 4 compile: l2-linux-v1.0.40.4 (also available inDownload here)
If it is in centos 5, the 1084 rows of kcompat. h must be removed. Otherwise, the response message will appear.
/Tmp/l2-linux-v1.0.40.4/src/kcompat. h: 1084: Define alias: "irq_handler_t", and define include/Linux/interrupt. h: 67: previous announcement of "irq_handler_t" here make [2]: *** [/tmp/l2-linux-v1.0.40.4/src/at_main.o] Error 1
The main reason is the 1083-1085 Definition
# If (! (Rhel_version = 4) & (rhel_update> = 5)/* typedef irqreturn_t (* irq_handler_t) (INT, void *, struct pt_regs *); */# endif
Su-rootexport lang = CCD p5gc-mx_netcard/wget http://www.ichiayi.com/wiki_file/l2-linux-v1.0.40.4.tar.gztar-zxvf l2-linux-v1.0.40.4.tar.gzcd l2-linux-v1.0.40.4cd srcmakemake installrmmod atl2.ko <-- if you have installed atl2insmod atl2.komodprobe atl2lsmod | grep atl2 <-- check whether there is security complete service network restart
----------------------------------------------------------
Where, what I found to delete or comment out when the "/tmp/l2-linux-v1.0.40.4/src/kcompat. h: 1084: Error:" irq_handler_t "Repeat definition" appears isKcompat. hFile1079Row:
In addition, the following link Article can also be used as a reference: http://wenwen.soso.com/z/q99690651.htm