日期:2014-05-16 浏览次数:20632 次
I decided to install Scientific Linux on the computer in my lab. Partly because this distribution is called "Scientific", partly because it is compiled from Red Hat Enterprise Linux, the most prestigious Linux distribution in the world.
At first, I downloaded the Everything DVDs and burned it into my USB stick viaUNetbootin. Unfortunately, it couldn't boot.
Then I tried theLive CD. It did worked and I installed the SL in a few minutes. However, the network could not be connected and the NIC could not be activated.
I checked the NIC type by "lspci | grep net
", and I found it was Broadcom Corporation NetLink BCM57780.Many people complain this network card. Some guys tried to download the
source codeof the driver from Broadcom and compiled it by themselves. I didn't want to do that, so I searched "tg3 rpm" and finally got the rpm package for SL kmod-tg3-3.122-1.el6_2.x86_64.rpm.
I installed it and restarted the network even the computer, the NIC still didn't work.
Then I resorted to compiling the source code of tg3. Unfortunately, I realized that gcc was not installed -- the LiveCD didn't contain the GCC package. When I tried to manually install GCC from rpm, a series of shared library dependencies blocked me. So I have to downloaded theLiveDVD of SL, burned it again and installed the SL again. This time, the GCC was included.Before building the tg3 driver, I installed the downloaded tg3 rpm package and searched again for the driver.
Finally I found webpage How to updating driver for gigabit network card [Broadcom TG3:netXtream] on fedora core 4. and responses to eth0 no device found, NIC Broadcom tg3 drivers, kernel, DKMS. Combing the two webpages, I got to know how to make BCM57780 work in SL:
/lib/modules/<kernel#>/kernel/net
and check if tg3.ko there. If not, try executing "locate tg3".insmod /path/to/tg3.ko
".service network restart
".biosdevname=0
" to the kernel line of the grub config file/etc/grub.conf
.