Install the attansic L2 NIC Driver in Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.