Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: 3c509 NIC on DamnSmallLinux HD install (dsl-2.1b), How can I make the 3c509 module load aut< Next Oldest | Next Newest >
lothario Offline





Group: Members
Posts: 17
Joined: Feb. 2006
Posted: Feb. 03 2006,00:21 QUOTE

My 3c509 network card was not being recognized by DamnSmallLinux HD install.
The card does works.
3c509-TP
I/O base address = 300H
IRQ = 10

When I boot with a tomsrtbt floppy it works right away!

So I took the following 5 step:

Step 1:  I added 2 more lines to "/etc/network/interfaces"
auto eth0
iface eth0 inet dhcp

Step 2:  Did "modprobe 3c509" and got no response.

Step 3:  Did "lsmod" and saw the 3c509 module loaded.

Step 4:  Did "/etc/init.d/networking  stop"

Step 5:  Did "/etc/init.d/networking  start"

Now the 3c509 card is working.
It requested and got an ip address from the DHCP server.
I have internet connectivity.

BUT, when I reboot - the 3c509 is not automatically working.
Everytime I have to repeat steps 2, 3, 4 and 5 to make it work.

How can I make the 3c509 module load automatically at boot time and
request an ip address from the DHCP server?

Thank you.
Back to top
Profile PM 
plinej Offline





Group: Members
Posts: 75
Joined: Oct. 2005
Posted: Feb. 03 2006,00:59 QUOTE

Open beaver and create a script with the following:

-------------------------------------

#!/bin/bash
modprobe 3c509
sleep 1
lsmod
sleep 1
/etc/init.d/networking  stop
sleep 1
/etc/init.d/networking  start

-------------------------------------

You may want to create a bin directory at /home/dsl/bin
for whatever scripts you write. Save the script in that directory
as whatever you'd like (I'll just use "dnsup" as an example).
Now you'll need to make the file executable. Do this by the following command:

chmod a+x dnsup

Now add the following line to your /opt/bootlocal.sh

/home/dsl/bin/dnsup

save the file and reboot to see if it works.
Back to top
Profile PM 
lothario Offline





Group: Members
Posts: 17
Joined: Feb. 2006
Posted: Feb. 03 2006,01:41 QUOTE

This post-boot script works.

Isn't there a list of modules that get loaded on boot?
Where is that list located?

I should be able to add 3c509 to the end of that list.
Correct?
Back to top
Profile PM 
lothario Offline





Group: Members
Posts: 17
Joined: Feb. 2006
Posted: Feb. 03 2006,02:57 QUOTE

Here is what I mean -

I put the DSL CD in another PC.

The network card in this other PC is recognized immediately
and starts working right away.

Here is what I see at boot time:
:
"Network device eth0 detected, DHCP broadcasting for IP (Backgrounding)".
:

Then dmesg says:
:
sis900.c: v1.08.07 11/02/2003
eth0: Realtek RTL8201 PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xb000, IRQ 10, <ethernet address>.
:
:
eth0: Media Link On 100mbps full-duplex
:


Plus lsmod says:
Module                  Size  Used by    Not tainted
:
sis900                 12460   1
crc32                   2816   0 [sis900]
:


And DSL System Stats says:
FULLNAME="Silicon Integrated Systems [SiS] |SiS900 10/100 Ethernet"
DRIVER="sis900"
:
:


This is all good.
This is why I was wondering how to get the
3c509 module loaded and running the same way.
Back to top
Profile PM 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: Feb. 03 2006,04:05 QUOTE

Autodetection of ISA devices is unreliable in Linux.
So the correct thing to do is to manually specify the correct module to load at bootup as you suggest.  In DSL's parent distribution, Debian, this would be a configuration file in /etc/modutils which is then appended to /etc/modules.conf by running "update modules".
This would work with a HD install of DSL, but in a liveCD situation there's a problem because the modified /etc/modules.conf must be backed up, then restored at each bootup, and I think that this file is restored too late in the boot process to load the added modules.

So the best thing to do with DSL is add any extra commands you need to /opt/bootlocal.sh, then backup this file.

Your changes to /etc/network/interfaces are, again, very Debian-like.  And running /etc/init.d/networking is overkill.
All you should need to add to /opt/bootlocal.sh are these 2 lines -

modprobe 3c509
pump -i eth0
Back to top
Profile PM 
5 replies since Feb. 03 2006,00:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: 3c509 NIC on DamnSmallLinux HD install (dsl-2.1b)

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code