Solved

Cent OS doesn't recognize NIC

Posted on 2007-11-21
4
725 Views
Last Modified: 2013-11-09
I installed CentOS4.4 on Dell optiplex sx280 but it doesn't recognize NIC. I read about problems for broadcom then I tried to install driver following the guidelines from broadcom. The guidelines says "build the binary driver for your kernel" and show the command "rpm -bb SPECS/tg3.spec or rpmbuild -bb SPECS/tg3.spec". But those commands are not able to run because of these errors (-bc: unknown option and rpmbuild: command not found).
 How can I install the driver or if you have any other solutions please let me know.
0
Comment
Question by:nichiaiinc
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 250 total points
ID: 20326717
The tg3 driver is part of linux source, so if you are familiar with kernel reconfiguration you should be able to build the module that way. That's how I built mine (I have a Broadcom Corporation NetXtreme BCM5705 Gigabit Ethernet)

There used to be an rpmbuild but I'm not sure if there still is or if it'd done differently now. Look for it on your distribution media maybe.
On my system, it's a symbolic link:

22:03:06$ file /usr/bin/rpmbuild
/usr/bin/rpmbuild: symbolic link to `../lib/rpm/rpmb'

and rpmb is an executable(!)

22:03:57$ file /usr/lib/rpm/rpmb
/usr/lib/rpm/rpmb: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped

Mind you, that came off a Fedora Cor 2 disk - so how you build SRPMs now may have changed.
By the way, rpmb needs a heap of libraries:

22:04:08$ ldd /usr/lib/rpm/rpmb
        librpmbuild-4.3.so => /usr/lib64/librpmbuild-4.3.so (0x00002ac1bd269000)
        librpm-4.3.so => /usr/lib64/librpm-4.3.so (0x00002ac1bd3a0000)
        librpmdb-4.3.so => /usr/lib64/librpmdb-4.3.so (0x00002ac1bd502000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00002ac1bd6fd000)
        librpmio-4.3.so => /usr/lib64/librpmio-4.3.so (0x00002ac1bd80d000)
        libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x00002ac1bd945000)
        libelf.so.1 => /usr/lib64/libelf.so.1 (0x00002ac1bda4c000)
        libbeecrypt.so.6 => /usr/lib64/libbeecrypt.so.6 (0x00002ac1bdb5d000)
        librt.so.1 => /lib64/librt.so.1 (0x00002ac1bdc7e000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ac1bdd90000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00002ac1bde96000)
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00002ac1bdfaa000)
        libc.so.6 => /lib64/libc.so.6 (0x00002ac1be0b9000)
        /lib64/ld-linux-x86-64.so.2 (0x00002ac1bd167000)
0
 

Author Comment

by:nichiaiinc
ID: 20333167
I couldn't find rpmbuild and also rpmb on my system. So I downloaded rpmbuild package from the internet and installed it.  Then I ran command "rpmbuild -bb SPECS/tg3.spec" but it shows different error.

The error is :
.
make -C SUBDIRS=/usr/src/redhat/BUILD/tg3-3.81c modules
make *** SUBDIRS=/usr/src/redhat/BUILD/tg3-3.81c: No such file or directory. Stop.
make: *** [default] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.6097 (%build)

RPM build errors:
 error: Bad exit status from /var/tmp/rpm-tmp.6097 (%build)

Actually /usr/src/redhat/BUILD/tg3-3.81c directory exists but rpmbuild stops with above error. I installed only rpmbuild package without any packages. Do I need to install other packages to run rpmbuild correctly?  
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 20333633
You have to install the SRPM with rpm first. If you need to install rpm, you should certainly find it on your distro disk, else again get from the internet
0
 

Author Closing Comment

by:nichiaiinc
ID: 31410323
I didn't have time to try installing CentOS on Dell so now I run Ubuntu on Dell. Anyway I really appreciate your help. Thank you so much.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux boot cd to do hardware report on PC? 3 80
SonarQube on Linux vs Windows 3 76
How to mount nfs share on this CentOS server? 6 57
rsyslog raw message 4 37
When posting a question about a Cisco ASA, Cisco Router or Cisco Switch, it can aid diagnosis if a suitably sanitised copy of the config is provided. It is much better to leave as much of the configuration as original as possible, as it could be tha…
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question