User Tools

Site Tools


doc:appunti:hardware:lacie_d2_network_2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:appunti:hardware:lacie_d2_network_2 [2011/03/24 10:20] – [Fake Wake-on-LAN] niccolodoc:appunti:hardware:lacie_d2_network_2 [2011/03/24 10:59] – [Fake Wake-on-LAN] niccolo
Line 434: Line 434:
 </code> </code>
  
-==== Fake Wake-on-LAN ====+===== Fake Wake-on-LAN =====
  
 The Ethernet chip does not have WoL capabilities (whereas the old d2 Network does), so we can only simulate it. This is my first attempt to make a software Wake-on-LAN. The Ethernet chip does not have WoL capabilities (whereas the old d2 Network does), so we can only simulate it. This is my first attempt to make a software Wake-on-LAN.
  
-At an early stage of the boot process we suspend the disk and wait for a Magic Packet before to proceed. So the device is effectively powered and running, just the disk and the LED are turned off. I'm running the program with a Debian Squeeze installation.+At an early stage of the boot process the **''fake-on-lan''** program suspends the USB power, turn off the blue LED and suspend the disk. Then the program waits for a Wake-on-LAN Magic Packet or for a Power Button press/release before to proceed. The device is effectively powered-on and running the Linux kernel, just the USB, the LED and the disk are turned off. I'm running the program with a **Debian Squeeze** installation.
  
-You can download the program here: **{{.:lacie:fake-on-lan-20110323.tar.gz|fake-on-lan-20110323.tar.gz}}**.+You can download the program here: **{{.:lacie:fake-on-lan-20110324.tar.gz|fake-on-lan-20110324.tar.gz}}**.
  
-This is the TODO list:+===== The EEPROM =====
  
-  * Turn off USB power too. +The content of the EEPROM is exposed for read and write via the pseudo file **''/sys/bus/i2c/devices/0-0050/eeprom''**, like with the previous d2 Network model, but the meaning is changed. This is what I know:
-  * Wake on power button keypress too. +
-  * Modify the standard halt sequence so it becomes a reboot followed by fake-on-lan, mybe using the relevant EEPROM bit. +
- +
-===== EEPROM ===== +
- +
-The content of the EEPROM is exposed via the pseudo file **''/sys/bus/i2c/devices/0-0050/eeprom''**, like with the previous d2 Network model, but the meaning is changed. This is what I know:+
  
 ^ Offset  ^ Length  ^ Content  ^ ^ Offset  ^ Length  ^ Content  ^
-|       0 |       2 |          |+|       0 |       2 | 0x00 0x02              |
 |       2 |       6 | Ethernet MAC address.  | |       2 |       6 | Ethernet MAC address.  |
  
doc/appunti/hardware/lacie_d2_network_2.txt · Last modified: 2014/01/28 09:22 by niccolo