LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   help installing network card in command line (https://www.linuxquestions.org/questions/linux-hardware-18/help-installing-network-card-in-command-line-112785/)

Avatar 11-05-2003 03:22 PM

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! :) :study:

jailbait 11-05-2003 07:23 PM

"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

Avatar 11-06-2003 01:22 PM

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.

jailbait 11-06-2003 02:25 PM

"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

Avatar 11-06-2003 03:03 PM

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.

jailbait 11-06-2003 03:12 PM

"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

Avatar 11-07-2003 08:57 AM

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.


All times are GMT -5. The time now is 05:09 AM.