Installing network card on Debian Lenny

Don´t be shy, Linux is fun! =)
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Installing network card on Debian Lenny

Post by ayu »

kk so i managed to install without network card using only DVD 1 of Lenny

i tried to install the drivers using this guide that came with the CD to the computer.

I have followed all steps in both guides, and i am getting errors in both.

Is there something i need ? since i only installed using the first DVD i assume i am missing something.

I had to install both gcc and rpm to come anywhere.

Can anyone help me?
Installing Source RPM Package
=============================

The following are general guidelines for installing the driver.

1. Install the source RPM package:

rpm -ivh tg3-<version>.src.rpm

2. CD to the RPM path and build the binary driver for your kernel:

cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..}

rpm -bb SPECS/tg3.spec

or

rpmbuild -bb SPECS/tg3.spec (for RPM version 4.x.x)

Note that the RPM path is different for different Linux distributions.

The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:

rpmbuild -bb SPECS/tg3.spec --define "KVER <kernel version>"

where <kernel version> in the form of 2.x.y-z is the version of another
kernel that is installed on the system.

3. Install the newly built package (driver and man page):

rpm -ivh RPMS/<arch>/tg3-<version>.<arch>.rpm

<arch> is the architecture of the machine, e.g. i386:

rpm -ivh RPMS/i386/tg3-<version>.i386.rpm

Note that the --force option may be needed on some Linux distributions
if conflicts are reported.

The driver will be installed in the following path:

2.4.x kernels:

/lib/modules/<kernel_version>/kernel/drivers/net/tg3.o

2.6.x kernels:

/lib/modules/<kernel_version>/kernel/drivers/net/tg3.ko

4. Load the driver:

insmod tg3.o
or
insmod tg3.ko (on 2.6.x kernels)
or
modprobe tg3

5. To configure network protocol and address, refer to various Linux
documentations.


Building Driver From TAR File
=============================

The following are general guidelines for installing the driver.

1. Create a directory and extract the files:

tar xvzf tg3-<version>.tar.gz

2. Build the driver tg3.o (or tg3.ko) as a loadable module for the
running kernel:

cd src
make

The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:

make KVER=<kernel version>

where <kernel version> in the form of 2.x.y-z is the version of another
kernel that is installed on the system.

3. Test the driver by loading it:

insmod tg3.o
or
insmod tg3.ko (on 2.6.x kernels)
or
insmod tg3

4. Install the driver:

make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.
"The best place to hide a tree, is in a forest"

User avatar
n3rd
Staff Member
Staff Member
Posts: 1474
Joined: 15 Nov 2005, 17:00
18
Location: my own perfect world in ma head :)
Contact:

Post by n3rd »

is the network card detected?.
is it supported?.
[img]http://img580.imageshack.us/img580/8009/userbar2k.png[/img]

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

gcc is not installed on Debian per default, so that's normal....what errors do you get? :-k

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

n3rd: Dunno about detected, but i have drivers for it.


b_b:
TAR attempt

clare:/home/cats/Desktop/src# cd src
clare:/home/cats/Desktop/src/src# ls
ChangeLog LICENSE Makefile README.TXT tg3.4 tg3.c tg3.h tg3_sup-3.71b
clare:/home/cats/Desktop/src/src# make
make -C SUBDIRS=/home/cats/Desktop/src/src modules
make: *** SUBDIRS=/home/cats/Desktop/src/src: No such file or directory. Stop.
make: *** [default] Error 2

=============================================================

RPM attempt

clare:/usr/src/rpm# cd SPECS
clare:/usr/src/rpm/SPECS# rpmbuild -bb tg3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5259
+ umask 022
+ cd /usr/src/rpm/BUILD
+ cd /usr/src/rpm/BUILD
+ rm -rf tg3-3.71b
+ /usr/bin/bzip2 -dc /usr/src/rpm/SOURCES/tg3-3.71b.tar.bz2
/var/tmp/rpm-tmp.5259: line 24: /usr/bin/bzip2: No such file or directory
+ tar -xvvf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd tg3-3.71b
/var/tmp/rpm-tmp.5259: line 29: cd: tg3-3.71b: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.5259 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.5259 (%prep)
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, before trying to install a driver check if the card is already recognized, I heard the tg3 driver (an open source version of it to be exact) is included in the newer Debian versions.
what is the output for:

Code: Select all

ifconfig
?

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

this is the output


clare:/home/cats# ifconfig
eth0 Link encap:UNSPEC HWaddr 00-02-3F-75-BC-40-14-54-00-00-00-00-00-00-00 -00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:50 dropped:50 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2412 (2.3 KiB) TX bytes:2412 (2.3 KiB)
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

k, a network device is recognized under eth0... :wink:
to give the network card an IP (192.168.0.3 in this example):

Code: Select all

ifconfig eth0 192.168.0.3
to set the router as default gateway (assuming the router is 192.168.0.1):

Code: Select all

route add default gw 192.168.0.1 eth0
maybe you have to enable enable the device by:

Code: Select all

ifconfig eth0 up
but is is already up, just in case...

then it should work...but you can also use the graphical network setup manager... :wink:

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

what router are you using, some may need the ipv6 tables setting up

Code: Select all

http://mail-index.netbsd.org/current-users/2005/01/15/0010.html

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

b_b:

Did as you wrote, but the network icon up in the corner still says "No network connection" and "No network devices have been found"

Note: as mentioned before, i tried with Vista to check if it worked at all, and i had to install the drivers to make it work, there were no drivers ready for it.
clare:/home/cats# ifconfig eth0 192.168.0.8
clare:/home/cats# route add default gw 192.168.0.1 eth0
clare:/home/cats# ifconfig eth0 up
clare:/home/cats# ip addr
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ieee1394 00:02:3f:75:bc:40:14:54 brd ff:ff:ff:ff:ff:ff:ff:ff
inet 192.168.0.8/24 brd 192.168.0.255 scope global eth0
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
clare:/home/cats#


thug: i am using a Netgear DG834
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, install ifplugd with apt-get, it's a daemon that automatically setup network devices on plugin...so re-connect the ethernet cable once installed.

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

installed + switched cable to a "not damaged" one since i found a damage on the one used for it.

No results, still nothing.

btw please take note that there is a WLAN card included in the lappy, maybe it's a crash between the two of them?

i still vote for driver problem though ^^


EDIT: i checked in the system info, and it says

Kernel modules: tg3, Broadcom Tigon3 ethernet driver

Ethernet controller: Broadcom corp. unknown device 1713

Network controller: intel corp. Unknown device 4229

EDIT2: i found the drivers on the boradcom site, same as the ones i have http://www.broadcom.com/support/etherne ... esktop.php

and the model of the card as well "Broadcom NetXtreme
10/100/1000 Mbps PCI/PCI-X/PCI Express"
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

k, I downloaded the package, will try to install it tomorrow on my Lenny box to see where the problem is... :wink:

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Intel Pro/Wireless 4965AGN


thats the model of the wireless card, i am at a friends house atm trying to test it. But i can't find ANY trace of the wireless card inside the comp =/

i can only see

lo
eth0
sit0

any tip on this issue? ^^ was thinking that i could at least get one of the cards to work tonight =)
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

well, Intel chipset...so the only way to use the WLAN card is most likely by ndiswrapper:
http://ndiswrapper.sourceforge.net/joomla/
the documentiation is pretty good at least... :wink:

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

kk i downloaded it and tried to install, but it says that it can't find the linux 2.6 kernel build files =/

where can i get those? xD
"The best place to hide a tree, is in a forest"

Post Reply