Install the NetLinkbcm57788 driver under fedora9

Source: Internet
Author: User
Install the NetLinkbcm57788 driver under fedora9-general Linux technology-Linux technology and application information. For more information, see the following. Download driver source: http://zh-cn.broadcom.com/support/ethernet_nic/netlink_k57.php
After the installation is complete, decompress the tg3zip package and follow the instructions in readme.txt to install the package. Two methods are described in this document. I use the rpm method below:

1. The following are general guidelines for installing the driver.
2.
3.1. Install the source RPM package:
4.
5. rpm-ivh tg3- . Src. rpm
6.
7.2. CD to the RPM path and build the binary driver for your kernel:
8.
9. cd/usr/src/{redhat, OpenLinux, turbo, packages, rpm ..}
10.
11. rpm-bb SPECS/tg3.spec
12.
13. or
14.
15. rpmbuild-bb SPECS/tg3.spec (for RPM version 4. x. x)
16.
17. Note that the RPM path is different for different Linux distributions.
18.
19. The driver will be compiled for the running kernel by default. To build
20. the driver for a kernel different than the running one, specify
21. kernel by defining it in KVER:
22.
23. rpmbuild-bb SPECS/tg3.spec -- define "KVER "
24.
25. where In the form of 2. x. y-z is the version of another
26. kernel that is installed on the system.
27.
28.3. Install the newly built package (driver and man page ):
29.
30. rpm-ivh RPMS // tg3- . Rpm
31.
32. is the architecture of the machine, e.g. i386:
33.
34. rpm-ivh RPMS/i386/tg3- . I386.rpm
But at step 1
1. rpmbuild-bb SPECS/tg3.spec
The following error is prompted:

1. make-C/lib/modules/2.6.25-14. fc9.i686/build SUBDIRS =/usr/src/redhat/BUILD/tg3-3.116j modules
2. make [1]: Entering directory '/usr/src/kernels/2.6.25-14. fc9.i686'
3. CC [M]/usr/src/redhat/BUILD/tg3-3.116j/tg3.o
4./usr/src/redhat/BUILD/tg3-3.116j/tg3.c: In function 'tg3 _ napi_fini ':
5./usr/src/redhat/BUILD/tg3-3.116j/tg3.c: 5821: error: implicit declaration of function 'netif _ napi_del'
6. make [2]: *** [/usr/src/redhat/BUILD/tg3-3.116j/tg3.o] Error 1
7. make [1]: *** [_ module _/usr/src/redhat/BUILD/tg3-3.116j] Error 2
8. make [1]: Leaving directory '/usr/src/kernels/2.6.25-14. fc9.i686'
9. make: *** [default] Error 2
10. error: Bad exit status from/var/tmp/rpm-tmp.81225 (% build)
The solution is as follows:
Open the/usr/src/kernels/2.6.25-14. fc9.i686/include/linux/netdevice. h file and add it under the netif_napi_add function.

1. static inline void netif_napi_del (struct napi_struct * napi)
2 .{
3. # ifdef CONFIG_NETPOLL
4. list_del (& napi-> dev_list );
5. # endif
6 .}
Save and run again
1. rpmbuild-bb SPECS/tg3.spec
No error...
At this time you will see the generated tg3-3.116j-1.i386.rpm file in the/usr/src/redhat/RPMS/i386 directory, install it with rpm.

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.