[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hot-Plug: initialize NIC during boot process



On Tue, Feb 24, 2004 at 01:33:57AM +0100, Dieter Rohlfing wrote:
> Osamu Aoki wrote:
>  
> > > > check /etc/network/interfaces.
> > > > does the configuration have auto ethX (X being your pcmcia nic)?
> > > > if it does, try removing that line, then reboot...
> > >
> > > No, it doesn't have the 'auto'.
> > 
> > Sure you should not!
> > 
> > > Nevertheless, thanks for your reply.
> > 
> > Are you using
> >        ifup eth0=hotplug
> > 
> > in /etc/network/interfaces?
> 
> My /etc/network/interfaces is:
> ------------------------------
> auto lo
> iface lo inet loopback
> 
> iface eth0 inet static
>    address   192.168.1.4
>    netmask   255.255.255.0
>    network   192.168.1.0
>    broadcast 192.168.1.255
> ------------------------------
> 
> My kernel log contains the following lines:
> ------------------------------
> 22:17:41 lap kernel: Linux Kernel Card Services 3.1.22
> 22:17:41 lap kernel:   options:  [pci] [cardbus]
> 22:17:41 lap kernel: pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> .....
> 22:17:41 lap kernel: Yenta ISA IRQ mask 0x0498, PCI irq 11
> 22:17:41 lap kernel: Socket status: 30000020
> 22:17:41 lap kernel: Yenta ISA IRQ mask 0x0498, PCI irq 11
> 22:17:41 lap kernel: Socket status: 30000006
> 22:17:41 lap kernel: cs: cb_alloc(bus 2): vendor 0x115d, device 0x0003
> 22:17:41 lap kernel: PCI: Enabling device 02:00.0 (0000 -> 0003)
> [ the kernel recognizes the NIC, but there are no further actions
> [ to activate the NIC (loading module, calling ifup etc.)
> 22:17:41 lap kernel: VFS: Mounted root (ext2 filesystem) readonly.
> .....
> [ I eject the card
> 22:21:40 lap kernel: cs: cb_free(bus 2)
> [ I insert the card
> 22:21:47 lap kernel: cs: cb_alloc(bus 2): vendor 0x115d, device 0x0003
> 22:21:47 lap kernel: PCI: Enabling device 02:00.0 (0000 -> 0003)
> 22:21:47 lap kernel: xircom_tulip_cb.c derived from tulip.c:v0.91
> 4/14/99 becker@scyld.com
> 22:21:47 lap kernel:  unofficial 2.4.x kernel port, version 0.91+LK1.1,
> October 11, 2001
> 22:21:47 lap kernel: PCI: Setting latency timer of device 02:00.0 to 64
> 22:21:47 lap kernel: eth0: Xircom Cardbus Adapter rev 3 at 0x4000,
> 00:10:A4:DF:95:37, IRQ 11.
> 22:21:47 lap kernel: eth0:  MII transceiver #0 config 3100 status 7809
> advertising 01e1.
> ------------------------------
> 
> As the log shows the general mechanism of hotplug does work on insert
> and eject, but it does not work, if the card is in the slot, while the
> laptop boots. Why this? Is something wrong with my configuration? Or do
> I have to start an additional service on boot up?
> 
> My guess is: in /etc/init.d/hotplug must be a call, which checks the
> presence of any hot-plugable devices. /etc/init.d/hotplug calls a script
> /etc/hotplug/usb.rc. Should there be something like a network.rc or
> pci.rc?
> 
> > Read more on
> > 
> >  http://qref.sourceforge.net/Debian/reference/footnotes.en.html#f56
> > 
> > or the latest unstable debian-reference-en package I upladed tonight :-)
> 
> I did read that document, specially chapter 10.7 to 10.9. I must admit,
> that I did not understand how the mapping works. An example would be
> very helpful. Also I read every document, which comes with the hotplug
> package in woody.

Bad URL.  Sorry.

http://qref.sourceforge.net/Debian/reference/ch-gateway.en.html#s-trigger-hotplug


In   /etc/network/interfaces, add:

      mapping hotplug
              script echo



Reply to: