Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cent OS doesn't recognize NIC

Posted on 2007-11-21
4
Medium Priority
?
728 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 35

Accepted Solution

by:
Duncan Roe earned 750 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 35

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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

604 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