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
Solved

Cent OS doesn't recognize NIC

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
awk sed 8 64
Bash script - Exit out of choice loop 2 43
How does PHP Storm display on Linux high resolution laptops? 1 36
Disabling security updates Ubuntu 3 29
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

840 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