Solved

Cent OS doesn't recognize NIC

Posted on 2007-11-21
4
726 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

688 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