On Friday, January 30, 2004 6:30 AM, Michael Havens wrote:
> On Thursday 29 January 2004 11:46 pm, jason pearl said:
> ~ On Thu, 2004-01-29 at 23:15, Michael Havens wrote:
> ~ > I just tried to compile the eternet driver and I don't
> know what it did.
> ~ > [1] If you think you want to help. Perhaps I should wait
> untill I get
> kernel ~ > 6.? then install the driver.
> ~ ok dude what type of card do you have and what module did u install.
> ~ have u done insmod or modprobe <modulename>????
>
> 00:0a.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev
05)
> bmike1@bmike1:/mnt/sda5/Downloads/ethernet.driver/e100-2.3.33/src$ make
install
> find /lib/modules/2.4.21-xfs -name e100.o -exec rm -f {} \; \
>>> true
> rm: cannot remove `/lib/modules/2.4.21-xfs/kernel/drivers/net/e100.o':
Permission denied
> find /lib/modules/2.4.21-xfs -name e100.o.gz -exec rm -f {} \; \
>>> true
> mkdir -p /lib/modules/2.4.21-xfs/kernel/drivers/net
> install -m 644 -o `id -u` e100.o
> /lib/modules/2.4.21-xfs/kernel/drivers/net
> install: cannot remove
`/lib/modules/2.4.21-xfs/kernel/drivers/net/e100.o': Permission denied
> make: *** [install] Error 1
Okay, that just means you need to do this as root. Which you already
figured out....
> bmike1@bmike1:/mnt/sda5/Downloads/ethernet.driver/e100-2.3.33/src$ sudo
make install
> find /lib/modules/2.4.21-xfs -name e100.o -exec rm -f {} \; \
>>> true
> find /lib/modules/2.4.21-xfs -name e100.o.gz -exec rm -f {} \; \
>>> true
> mkdir -p /lib/modules/2.4.21-xfs/kernel/drivers/net
> install -m 644 -o `id -u` e100.o
/lib/modules/2.4.21-xfs/kernel/drivers/net
> mkdir -p /usr/share/man/man7
> install -m 644 -o `id -u` e100.7.gz /usr/share/man/man7 /sbin/depmod -a ||
true
Okay, there aren't any errors, so it looks like this worked.
> bmike1@bmike1:/mnt/sda5/Downloads/ethernet.driver/e100-2.3.33/src$ sudo
insmod e100
> Using /lib/modules/2.4.21-xfs/kernel/drivers/net/e100.o
Again, no errors, so it looks like the module loaded properly. When you run
'lsmod | grep e100', do you see it? Does it say "unused" next to it? Like
this:
e100 58296 0 (unused)
If so, this probably isn't the right module for your hardware. If the
module is listed and it doesn't say "unused," it looks like you're in
business.
> bmike1@bmike1:/mnt/sda5/Downloads/ethernet.driver/e100-2.3.33/src$
ifconfig eth0 255.255.255.1
> SIOCSIFADDR: Permission denied
> SIOCSIFFLAGS: Permission denied
This is just telling you that you need to be root to configure the
interface. Which you already figured out....
> bmike1@bmike1:/mnt/sda5/Downloads/ethernet.driver/e100-2.3.33/src$ sudo
ifconfig eth0 255.255.255.1
> SIOCSIFADDR: Invalid argument
Okay, I think this is just complaining about the IP address that you tried
to assign to this interface. I don't think 255.255.255.1 is a valid
address. If the module wasn't loaded or you loaded the wrong one, you would
probably get a message like this instead:
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
Try this command instead:
$ sudo ifconfig eth0 192.168.1.1
$ sudo ifconfig eth0 up
See if you get any errors. If not, run this:
$ ifconfig eth0
You should get output like this:
eth0 Link encap:Ethernet HWaddr 00:01:DE:AD:BE:EF
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:955624 errors:0 dropped:0 overruns:0 frame:0
TX packets:101261 errors:0 dropped:0 overruns:0 carrier:1553
collisions:0 txqueuelen:100
RX bytes:79929759 (76.2 Mb) TX bytes:7955572 (7.5 Mb)
Interrupt:10 Base address:0xdc00
If so, it looks like you're in business. Since you don't have any other
machines on your network, there's not a whole lot more you can do. But you
should be able to ping your own IP address:
$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.1 : 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.231 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.134 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.139 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.148 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.143 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.145 ms
^C
--- 192.168.1.1 ping statistics ---
6 packets transmitted, 6 received, 0% loss, time 4998ms
rtt min/avg/max/mdev = 0.134/0.156/0.231/0.036 ms
HTH. HAND.
~Jeff