Fedora18 installation of Ethernet card driver on ASUSN6 series computers

Source: Internet
Author: User
Let's talk about the installation process of the Ethernet card driver on ASUSN6 series computers under Fedora18. The computer is ASUSN6 series, and the ethernet card model is AtherosAR8161/8165. The driver for Linux is not found on the official website of this Nic. Search for the installation of the NIC driver on the Internet. The final conclusion is that alxEthernetdriver is installed. AlxEthernetdriver URL: http://www.linuxfo

Let's talk about the installation process of the Ethernet card driver on ASUS N6 series computers under Fedora 18.

The computer is the ASUS N6 series, and the ethernet card model is Atheros AR8161/8165.

The driver for Linux is not found on the official website of this Nic.

Search for the installation of the NIC driver on the Internet. The final conclusion is that alx Ethernet driver is installed.

The URL of alx Ethernet driver is as follows:

Http://www.linuxfoundation.org/collaborate/workgroups/networking/alx

Alx Ethernet driver on the webpage is as follows:

Https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2

After downloading, extract and enter the compat-drivers-2013-03-04-u folder.

The following is the installation method on the webpage:

Install

To only compile and install the alx driver you can do:

./Scripts/driver-select alx

Make

Sudo make install

Run./scripts/driver-select alx first.

Then execute make and the following compilation error occurs:

... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 118: 59: error: redefinition of 'nla _ put_s8'
...
Include/net/netlink. h: 901: 59: note: previous definition of 'nla _ put_s8 'was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 129: 59: error: redefinition of 'nla _ put_s16'
...
Include/net/netlink. h: 912: 59: note: previous definition of 'nla _ put_s16' was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 140: 59: error: redefinition of 'nla _ put_s32'
...
Include/net/netlink. h: 923: 59: note: previous definition of 'nla _ put_s32 'was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 151: 59: error: redefinition of 'nla _ put_s64'
...
Include/net/netlink. h: 934: 59: note: previous definition of 'nla _ put_s64' was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 160: 59: error: redefinition of 'nla _ get_s32'
...
Include/net/netlink. h: 1058: 59: note: previous definition of 'nla _ get_s32 'was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 169: 59: error: redefinition of 'nla _ get_s16'
...
Include/net/netlink. h: 1067: 59: note: previous definition of 'nla _ get_s16' was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 178: 58: error: redefinition of 'nla _ get_s8'
...
Include/net/netlink. h: 1076: 58: note: previous definition of 'nla _ get_s8 'was here
...
... Compat-drivers-2013-03-04-u/include/linux/compat-3.7.h: 188: 59: error: redefinition of 'nla _ get_s64'
...
Include/net/netlink. h: 1085: 59: note: previous definition of 'nla _ get_s64' was here
... The compat-drivers-2013-03-04-u/compat/main. o] Error 1
...

Do not rush to find a solution on the Internet, and try to solve this compilation error.

There is no netlink. h file under include/net in the folder compat-drivers-2013-03-04-u.

Search for netlink. h In the folder compat-drivers-2013-03-04-u, not found.

At this time, it is estimated that netlink. h is the header file in the system.

Therefore, run the following command in/usr:

Find./-iname netlink. h

The following files are found:

/Usr/src/kernels/3.6.10-4. fc18.x86 _ 64/include/net/netlink. h

The path of this file is the same as that of "include/net/netlink. h" in the compilation error.

Open and view the/usr/src/kernels/3.6.10-4. fc18.x86 _ 64/include/net/netlink. h and compat-drivers-2013-03-04-u/include/linux/compat-3.7.h files,

The content reported by the compilation error is defined in both files,

So I commented out the repeatedly defined content in compat-drivers-2013-03-04-u/include/linux/compat-3.7.h,

Comment out the contents of lines 112 to lines 198 in the compat-drivers-2013-03-04-u/include/linux/compat-3.7.h.

Make again, compilation passed.

Run su and enter the root password.

Run make install. The installation is successful.

I don't know how to make the NIC work, So I restarted.

After the restart, the network adapter works normally. The IP address is automatically obtained and the Internet access is OK!

For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5

Related Article

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.