[Pkg-sysvinit-devel] Bug#405870: wol broken and hack which fixes the e100 driver

Octavian Afilipoai atavi10 at yahoo.com
Sun Dec 30 19:57:55 UTC 2007


I was able to duplicate the problem on a debian etch
system with an Intel NIC (e100 driver).

These are my results:
- WOL works with kernel 2.6.11 with the root partition
mounted over nfs.
- WOL works with kernel 2.6.18 with the root partition
mounted from a local drive. 
- WOL is broken with kernel 2.6.18 with the root
partition mounted over nfs.
- WOL works if the machine is turned off before
loading the kernel (the e100 NIC driver is built into
the kernel)

I also found this bug report against the e100 driver:
http://bugzilla.kernel.org/show_bug.cgi?id=5149

Summary (some of these points were already made in the
previous posts):
- It seems that somewhere after kernel version 2.6.11,
the e100 driver was modified so that WOL is disabled
after initialization and is re-enabled before shutting
down. So, even if all the tools report that WOL is
enabled when the system is running, this is not the
case, since the driver is probably only supplying a
cached state and not the real state of the hardware.
- On debian etch, when the root is mounted from a
local drive, the shutdown scripts seem to be doing the
right thing because WOL works.
- When the root is mounted over nfs the code path is
different and the NIC driver is not correctly
shutdown, so WOL never gets re-enabled.

Possible solutions/hacks:
- Figure out how to properly shut down the driver when
the root is mounted over NFS. Maybe somebody more
familiar with the init scripts can work on this. (I
tried compiling halt from sources like one of the
previous posts suggested, but that did not seem to fix
my problem.)
- Prevent the driver from disabling WOL in the first
place. This is a hack but it was the fastest way to
fix the issue on my setup. For the e100 driver I just
commented out the following line in
kernel_source_path/drivers/net/e100.c
// config->magic_packet_disable = 0x1;     /* 1=off,
0=on */



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping





More information about the Pkg-sysvinit-devel mailing list