LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-05-2003, 03:22 PM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 550

Rep: Reputation: 32
help installing network card in command line


Ok OK, I searched and searched on here. Still cannot resolve my problem

I have a IBM eServer that I just installed Mandrake Multi Network Firewall. The installer was graphical, and it didn't detect my network card. Fine.

When I rebooted, all I got was a bash shell. Also fine, except my command-line skills in Linux are very limited.

So I am trying to install the driver for my (integrated) BroadCom NetXtreme Gigabit Ethernet. Once I do that, the rest of the server can be configured from another terminal on my LAN. I have a driver CD with 2 drivers, a *.rpm and a *.tar.gz.

I first gunzipped and untarred the tar.gz file, but can't do anything because I don't have make and I also don't have a C compiler anyway.

I then tried the rpm -ivh *.rpm command I found on this site. Then nothing happened, I just got a command prompt back.

I still don't appear to have any network cards installed. I have 3 on this server.

Please, tell me what to do!
 
Old 11-05-2003, 07:23 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
"I then tried the rpm -ivh *.rpm command I found on this site. Then nothing happened, I just got a command prompt back. "

That means it worked OK. In the grand tradition of UNIX rpm only gives error messages. Normal completion is messageless.

You can check your new package install with:
rpm -qi packagename


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-06-2003, 01:22 PM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 550

Original Poster
Rep: Reputation: 32
I typed in "rpm -V *.rpm" in my directory where I saved the driver. The response was:
"package bcm5700-2.2.27-1.src.rpm is not installed"

I typed in "rpm -qi *.rpm" in the same directory, and the response was the same:
"package bcm5700-2.2.27-1.src.rpm is not installed"

I typed in "rpm -ivh *.rpm" and the response was:
"1:bcm5700 ########## [100%]"

Then, "rpm -qi *.rpm"
"package bcm5700-2.2.27-1.src.rpm is not installed" -- wtf?

(I am su as root)

How can I install it? Also, the eth0, eth1 and eth2 are not listed in my modules or modules.conf file.

Last edited by Avatar; 11-06-2003 at 01:25 PM.
 
Old 11-06-2003, 02:25 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
"Then, "rpm -qi *.rpm"
"package bcm5700-2.2.27-1.src.rpm is not installed" -- wtf?"

I think that you are scrambling the rpm command syntax a little. The rpm command makes a distinction between file names and package names. So in this case bcm5700-2.2.27-1.src.rpm is the file name and the package name is probably bcm5700. You are definitely giving rpm a file name where it expects a package name so it looks for the wrong package name.

When rpm installs a binary package (I am not referring to src packages now) it installs the various files where they belong and records what it did in the rpm data base. When you do:
rpm -qi packagename
then rpm looks in the rpm data base and reports what is there without looking around your system at the individual files.

When you install a source rpm I think that rpm behaves a little differently, but I am not certain because I have never installed a src rpm without the corresponding binary also being installed. rpm definetly puts the source package as a tarball at /usr/src/packages/SOURCES. So you could look there and see if you have a bcm5700 tarball installed.

I do not think that rpm records the src rpm in the rpm database, although I am not certain of that statement.. So if you only have the bcm5700 src rpm installed and not the binary I think that the query:
rpm -qi bcm5700
will not find anything.

If you have both the bcm5700 binary and source rpms installed then the rpm query will give you the information about the binary rpm and also give you the name of the corresponding source rpm, without telling you whether the source rpm is installed or not.



___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 11-06-2003 at 02:27 PM.
 
Old 11-06-2003, 03:03 PM   #5
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 550

Original Poster
Rep: Reputation: 32
Hi jailbait,

I am very grateful for all of your help. Although your last post was quite over my head, I'm afraid.

I typed in rpm -qi bcm5700 and the response was "package bcm5700 is not installed"

A friend with a C compiler was nice enough to get me the bcm5700.o file from the tar.gz file, and said to run depmod. When I do, i get the error "depmod: *** unresolved symbols in /lib/modules/<wherever I put the file, doesn't matter>"

modprobe bcm5700.o
modprobe: can't locate module bcm5700.o -- so it's not installed

So I searched around on my hard drive and I found this:

---------------------------------
[root@localhost]# pwd
/lib/modules/2.4.18-8.1mdksecure/kernel/drivers/net/bcm
[root@localhost]# ls
bcm5700.o.gz
---------------------------------

What i think this means, is that there appears to be the driver I need, bcm5700, ALREADY on my computer (or, put there by the rpm?). Now. If this is what I need, how can I install it? do I just gunzip it? am I supposed to copy it somewhere? edit some file? and how can I get my blasted Planar Ethernets to work!?!?!

thanks! any help appreciated.
 
Old 11-06-2003, 03:12 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
"any help appreciated."

I am afraid that at this point I am not much help. I can tell you that your package may call itself bcm instead of bcm5700.

But on the business of getting your driver to the right location and working I am totally in the dark. I suggest that you find out where either bcm5700 or bcm is currently located and then start a new thread asking how to complete the install. A new thread will attract a fresh set of people and one of them may know the answer.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-07-2003, 08:57 AM   #7
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 550

Original Poster
Rep: Reputation: 32
OK Here's my question. I need help with command line syntax and behaviours.

Here is my driver: (this is where it supposed to be right?)
/lib/modules/2.4.18-8.1mdksecure/kernel/drivers/net/bcm/bcm5700.o.gz

(there are lots of *.o.gz files in the net/ directory. But mine has its own directory. Should I move it?)

OK so there is my driver. What do I type in to my command line to install the driver?

Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network time through command line? Phaethar Linux - Software 2 05-06-2005 02:33 PM
problem with network in command line naren Linux - Software 1 11-28-2004 06:12 PM
Fedora command line network config ejbest Linux - Networking 1 07-25-2004 08:39 AM
Command line network card setup shishimo Linux - Networking 9 06-20-2004 11:35 AM
Finding out my video card from the command line devinWhalen Linux - Hardware 3 04-15-2004 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration