doc:appunti:hardware:lacie_d2_network_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:hardware:lacie_d2_network_2 [2011/01/26 16:48] – [Dissecting the original kernel] niccolo | doc:appunti:hardware:lacie_d2_network_2 [2014/01/28 09:20] – [Wake-On-LAN] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Hacking the LaCie d2 Network 2 ====== | ====== Hacking the LaCie d2 Network 2 ====== | ||
+ | |||
+ | {{.: | ||
The **LaCie d2 Network 2** is very similar to the **[[lacie_d2_network|LaCie d2 Network]]**, | The **LaCie d2 Network 2** is very similar to the **[[lacie_d2_network|LaCie d2 Network]]**, | ||
Line 211: | Line 213: | ||
The Wake-On-LAN is **not handled by the U-Boot code** (like in the LaCie d2 Network). When the power switch is onto the ON position, the U-Boot always begins the boot process spinning-on the disk, during the boot process a script checks if the Deep Sleep Mode is active, in that case it halts the disk and wait for the Magic Packet. | The Wake-On-LAN is **not handled by the U-Boot code** (like in the LaCie d2 Network). When the power switch is onto the ON position, the U-Boot always begins the boot process spinning-on the disk, during the boot process a script checks if the Deep Sleep Mode is active, in that case it halts the disk and wait for the Magic Packet. | ||
+ | |||
+ | If you install a plain Debian operating system, you can use the **[[# | ||
===== Installing Debian ===== | ===== Installing Debian ===== | ||
Line 319: | Line 323: | ||
</ | </ | ||
- | Extract | + | Say the gzip signature offset is 12504, extract |
< | < | ||
Line 326: | Line 330: | ||
</ | </ | ||
- | Search again for a gzip signature, extract the gzip data and expand it. The resulting file is the initramfs cpio archive: | + | Search again for a gzip signature, extract the gzip data and expand it. The resulting file is the **{{.: |
< | < | ||
Line 332: | Line 336: | ||
gunzip vmlinux_data2.gz | gunzip vmlinux_data2.gz | ||
mv vmlinux_data2 initramfs.cpio | mv vmlinux_data2 initramfs.cpio | ||
+ | mkdir initramfs | ||
+ | cd initramfs | ||
+ | cat ../ | ||
</ | </ | ||
Line 428: | Line 435: | ||
dd if=uImage of=/ | dd if=uImage of=/ | ||
</ | </ | ||
+ | |||
+ | ===== 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. | ||
+ | |||
+ | At an early stage of the boot process the **'' | ||
+ | |||
+ | You can download the program here: **{{.: | ||
+ | |||
+ | ===== The EEPROM ===== | ||
+ | |||
+ | The content of the EEPROM is exposed for read and write via the pseudo file **''/ | ||
+ | |||
+ | ^ Offset | ||
+ | | 0 | 2 | 0x00 0x02 | | ||
+ | | 2 | 6 | Ethernet MAC address. | ||
+ |
doc/appunti/hardware/lacie_d2_network_2.txt · Last modified: 2014/01/28 09:22 by niccolo