Re: [SLE] PCMCIA eth problems
Marek, I've tryed to: 1) put ifconfig and dhcpcd command in boot.local. Doesn't work because hotplug configure my pcmcia cards at last, after that boot.local was launched 2) edited ifcfg-eth-pcmcia-0 file in /etc/sysconfig/network and changed the string "STARTMODE='hotplug'" in "STARTMODE='onboot'. That interface is the only one in the system and is configured as dhcp. Don't work! Simply because when the file is launched, hotplug haven't still configured the pcmcia card. Perhaps it won't be so elegant, but I need to put the ifconfig command AFTER hotplug services are provided. But how? Stefano Alle 15:57, sabato 21 febbraio 2004, hai scritto:
just put it as dhcp either by yast or by editing /etc/sysconfig/network/eth0-pcmcia [you will find where]
On Saturday 21 of February 2004 17:06, Stefano Ceci wrote:
Marek, I've tryed to: 1) put ifconfig and dhcpcd command in boot.local. Doesn't work because hotplug configure my pcmcia cards at last, after that boot.local was launched
2) edited ifcfg-eth-pcmcia-0 file in /etc/sysconfig/network and changed the string "STARTMODE='hotplug'" in "STARTMODE='onboot'. That interface is the only one in the system and is configured as dhcp. Don't work! Simply because when the file is launched, hotplug haven't still configured the pcmcia card.
should be STARTMODE='hotplug' BOOTPROTO='dhcp' when booting dhcp client will go background waiting for hotplug, and after some time (less than a minute) should receive configuration data from dhcp server. mine wireless card is configured in this way (as yast did it) and works fine. when you does it in this way: see /var/log/messages - what does it say? send me output of: dir /etc/sysconfig/network cat /etc/sysconfig/network /* route -n cat /etc/resolve.conf* -- Marek Chlopek
Alle 22:09, sabato 21 febbraio 2004, Marek Chlopek ha scritto:
should be STARTMODE='hotplug' BOOTPROTO='dhcp'
OK, now it's the same for me
send me output of: dir /etc/sysconfig/network ste@luna:~> ls -l /etc/sysconfig/network totale 49 -rw-r--r-- 1 root root 5173 2004-02-15 19:37 config -rw-r--r-- 1 root root 6348 2004-02-15 18:12 dhcp -rw-r--r-- 1 root root 116 2004-02-21 20:01 ifcfg-eth-pcmcia -rw-r--r-- 1 root root 126 2003-09-23 18:51 ifcfg-lo -rw-r--r-- 1 root root 6192 2003-09-23 18:51 ifcfg.template drwxr-xr-x 2 root root 48 2003-09-23 20:02 if-down.d drwxr-xr-x 2 root root 48 2003-09-23 20:02 if-up.d drwx------ 2 root root 80 2004-02-21 15:28 providers -rw-r--r-- 1 root root 25 2004-02-21 15:27 routes -rw-r--r-- 1 root root 25 2004-02-21 15:27 routes.YaST2save drwxr-xr-x 2 root root 960 2004-02-06 19:56 scripts -rw-r--r-- 1 root root 5471 2004-02-06 19:56 wireless
cat /etc/sysconfig/network /* ste@luna:~> cat /etc/sysconfig/network /* cat: /etc/sysconfig/network: Is a directory cat: /bin: Is a directory cat: /boot: Is a directory cat: /dev: Is a directory cat: /etc: Is a directory cat: /home: Is a directory cat: /lib: Is a directory cat: /media: Is a directory cat: /mnt: Is a directory cat: /opt: Is a directory cat: /proc: Is a directory cat: /root: Permission denied cat: /sbin: Is a directory cat: /srv: Is a directory cat: /tmp: Is a directory cat: /usr: Is a directory cat: /var: Is a directory
route -n luna:/home/ste # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
cat /etc/resolve.conf* luna:/home/ste # cat /etc/resolv.conf* domain local
In other message I'll send the dmesg output Stefano
On Saturday 21 of February 2004 22:46, Stefano Ceci wrote: cat /etc/sysconfig/network/* (try again, it was an extra space between /network and /*)
route -n
luna:/home/ste # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
no routing at all
cat /etc/resolve.conf*
luna:/home/ste # cat /etc/resolv.conf* domain local
no resolve have you rebooted the system? also send me ifconfig output -- Marek Chlopek
Alle 22:55, sabato 21 febbraio 2004, Marek Chlopek ha scritto:
have you rebooted the system? also send me ifconfig output
Marek, yes I've rebooted. When I boot I don't have network service at all! So in ifconfig output there's only "lo" interface. ONLY AFTER I DO "modprobe 8139too", then all works fine. Stefano
On Saturday 21 of February 2004 23:03, Stefano Ceci wrote:
Alle 22:55, sabato 21 febbraio 2004, Marek Chlopek ha scritto:
have you rebooted the system? also send me ifconfig output
Marek, yes I've rebooted. When I boot I don't have network service at all! So in ifconfig output there's only "lo" interface. ONLY AFTER I DO "modprobe 8139too", then all works fine.
Stefano, 8139too is not a pcmcia AFAIK!!! I have it in my server loaded. why do you try to configure pcmcia then? -- Marek Chlopek
Alle 23:06, sabato 21 febbraio 2004, Marek Chlopek ha scritto:
Stefano, 8139too is not a pcmcia AFAIK!!! I have it in my server loaded. why do you try to configure pcmcia then?
-- Marek, because I've a network card PCMCIA and the chip is a Realtek 8139+. This is a laptop. SuSE recognize it correctly but don't load the correct driver at boot time. Stefano
Perhaps this problem is more hard than I've thought. So I've been thinking to solve it changing the approach. After boot it's enough that I do a modprobe command. The problem is that I must be root to run it. I'd like a script that do it for me. I'd like that a normal user can boot the system and find the network correctly configured. In what file can I insert that command? The file should run after all the system is loaded....just before kdm. And what syntax I should use to do that command? I can create a job to insert in cron? Heeeelp please. Stefano
On Saturday 21 of February 2004 23:52, Stefano Ceci wrote:
Perhaps this problem is more hard than I've thought. So I've been thinking to solve it changing the approach. After boot it's enough that I do a modprobe command. The problem is that I must be root to run it. I'd like a script that do it for me. I'd like that a normal user can boot the system and find the network correctly configured. In what file can I insert that command? The file should run after all the system is loaded....just before kdm. And what syntax I should use to do that command? I can create a job to insert in cron?
Stefano, add a new file to /etc/rc.d called local: ======================= #! /bin/bash # # /etc/init.d/local # ### BEGIN INIT INFO # Provides: local # Required-Start: $syslog # X-UnitedLinux-Should-Start: network hotplug pcmcia # Required-Stop: $syslog # X-UnitedLinux-Should-Stop: # Default-Start: 3 5 # Default-Stop: # Description: Start local scripts at boot ### END INIT INFO # your code here ========================= put your code in this script and set proper chmod (you can also copy pcmcia, as I did to prepare this example, and put some modifications according to my suggestions) then go to yast and runlevel editor in runlevel editor enable this local script and then ok. you can check if local script in /etc/rc.d/rc3.d and rc5.d got the highest number (this mean will be executed as the latest one when booting) if "not" modify this INIT INFO section "Should-Start" -- Marek Chlopek
Alle 00:22, domenica 22 febbraio 2004, Marek Chlopek ha scritto:
Stefano, add a new file to /etc/rc.d called local:
Marek, a big big thank you! Ok, now it works fine! I know it's the most elegant system. But it works! :-) I've put my script into runlevel 5 because into 3 it gave me the well known error about the system that cannot load the 8139too driver (because pcmcia and hotplug come after). Now all it's ok. Thanks again Good night Stefano
On Sunday 22 of February 2004 01:13, you wrote:
Alle 00:22, domenica 22 febbraio 2004, Marek Chlopek ha scritto:
Stefano, add a new file to /etc/rc.d called local:
Marek, a big big thank you! Ok, now it works fine! I know it's the most elegant system. But it works! :-)
uffff... that's realy great news for all of us :-) Ciao, -- Marek Chlopek
My sound is playing back way to fast on almost everything, any ideas? i have an on board nvidia sound system... thanks dave
-----Original Message-----
From: Stefano Ceci
Alle 22:55, sabato 21 febbraio 2004, Marek Chlopek ha scritto:
have you rebooted the system? also send me ifconfig output
Marek, yes I've rebooted. When I boot I don't have network service at all! So in ifconfig output there's only "lo" interface. ONLY AFTER I DO "modprobe 8139too", then all works fine. Stefano
Perhaps he needs a setting in /etc/modules.conf, there I cannot help. Ken
participants (4)
-
Armisis Aieoln
-
Ken Schneider
-
Marek Chlopek
-
Stefano Ceci