centos 安裝Broadcom網卡驅動

來源:互聯網
上載者:User

centos 安裝Broadcom網卡驅動

領導要求為應屆畢業生搭建一台LINUX伺服器。要求安裝ORACLE CVS SVN FTP JDK WEBSphere.想來想去,用那個版本比較好?正好以前玩了一段時間的CentOS。就用它了。安裝過程一切正常,等到提示重新啟動,全部安裝完成。

開機,進系統,設定網路,用ifconfig查看只發現了LO。其它都沒有。想有可能網卡驅動沒有安裝。查看網卡的硬體版本Broadcom57785.go to 官網。尋找驅動。
驅動下載網址為:http://www.broadcom.com/support/ethernet_nic/netlink_k57.php
然後複製到隨身碟。到Centos進行隨身碟掛載檔案解壓。


  1. mount/dev/sdb1/mnt
  2. cd/mnt
  3. unziplinux-3.110g.zip

解壓完成以後進入相應目錄,查看README檔案。說明檔案提供二種安裝方法,第一種 RPM包,第二種 原始碼安裝。我用第一種安裝成功,就沒有進行第二種方法的測試(安裝方法我會粘貼到最後。)


  1. rpm-ivhtg3-3.116j-1.src.rpm#完成後進入安裝目錄
  2. cd/usr/scr/redhat#目錄下共計五個子目錄:BUILDRPMSSOURCESSPECSSRPMS
  3. rpm-bbSPECS/tg3.spec
  4. or
  5. rpmbuild-bbSPECS/tg3.spec#我用些命令
  6. 然後到進入RPMS下的i386目錄你ls查看目錄會發現有新RPM檔案產生
  7. rpm -ivh tg3-3.116j-1.i386.rpm
  8. 分別查看二個檔案目錄看是否有tg3.o or tg3.ko檔案。
  9. /lib/modules/<kernel_version>/kernel/drivers/net/tg3.o #<kernel_version>為你的核心目錄。
  10. /lib/modules/<kernel_version>/kernel/drivers/net/tg3.o#<kernel_version>為你的核心目錄。
  11. 載入模組
  12. modprobe tg3
  13. service network restart #添加網卡完成。

第二種安裝方法

1. Create a directory and extract the files:   tar xvzf tg3-<version>.tar.gz2. Build the driver tg3.o (or tg3.ko) as a loadable module for therunning kernel:   cd src   makeThe driver will be compiled for the running kernel by default. To buildthe driver for a kernel different than the running one, specify thekernel by defining it in KVER:  make KVER=<kernel version>where <kernel version> in the form of 2.x.y-z is the version of anotherkernel that is installed on the system.3. Test the driver by loading it:    insmod tg3.oor   insmod tg3.ko (on 2.6.x kernels)or   insmod tg34. Install the driver:   make install
到此結束。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.