Solved

Cent OS doesn't recognize NIC

Posted on 2007-11-21
4
717 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello All, I have been training on Multicast for a while now and whenever I start the topic , I find out that my friends /  Colleagues mention that they do not know how to test Multicast Joins. As most of the multicast would be video traffic and …
Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now