3c509 NIC on DamnSmallLinux HD install (dsl-2.1b)Forum: Networking Topic: 3c509 NIC on DamnSmallLinux HD install (dsl-2.1b) started by: lothario Posted by lothario on Feb. 03 2006,00:21
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. Posted by plinej on Feb. 03 2006,00:59
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. Posted by lothario on Feb. 03 2006,01:41
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? Posted by lothario on Feb. 03 2006,02:57
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. Posted by tempestuous on Feb. 03 2006,04:05
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 Posted by lothario on Feb. 03 2006,07:39
That worked. Thanks. |