User Tools

Site Tools


doc:appunti:hardware:lacie_d2_network

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
doc:appunti:hardware:lacie_d2_network [2010/11/16 17:47] niccolodoc:appunti:hardware:lacie_d2_network [2014/03/01 06:29] (current) – [Compiling the Linux kernel] niccolo
Line 666: Line 666:
  
 Here it is the binary and the source code of **{{:doc:appunti:hardware:lacie:eeprom_write_byte.tar.gz|eeprom_write_byte}}**. Here it is the binary and the source code of **{{:doc:appunti:hardware:lacie:eeprom_write_byte.tar.gz|eeprom_write_byte}}**.
 +
 +===== The EEPROM =====
 +
 +With a proper kernel (2.6.32 with the above patch, or 2.6.37) the EEPROM content is exposed for read and write via the pseudo file **''/sys/bus/i2c/devices/0-0050/eeprom''**. This is what I know about its content:
 +
 +^ Offset  ^ Length  ^ Content  ^
 +|       0 |       6 | Ethernet MAC address.  |
 +|       6 |       1 | Power flag.\\ If set to **''LACIE_POWER_OFF''** (0), U-Boot will stop the boot process and wait for Wake-on-LAN.\\ If set to **''LACIE_POWER_ON''** (1), U-Boot will reboot.  |
  
 ===== Disassembling the LaCie d2 Network ===== ===== Disassembling the LaCie d2 Network =====
Line 815: Line 823:
  
 ===== Compiling the Linux kernel ===== ===== Compiling the Linux kernel =====
 +
 +You can download the custom kernel I compiled (vanilla with patches for LEDs) here: [[http://www.rigacci.org/pub/Linux/kernel-lacie/]]
  
 After several tries, I compiled a **2.6.32 kernel** suitable to boot the LaCie from an **ext3 Debian Lenny partition**. No initrd is required to boot (this is fortunate FIXME, because I don't know how to install initrd with U-Boot). Here it is the **[[http://www.rigacci.org/pub/Linux/kernel-lacie/config-2.6.32-lacie.0.10|config file]]**. After several tries, I compiled a **2.6.32 kernel** suitable to boot the LaCie from an **ext3 Debian Lenny partition**. No initrd is required to boot (this is fortunate FIXME, because I don't know how to install initrd with U-Boot). Here it is the **[[http://www.rigacci.org/pub/Linux/kernel-lacie/config-2.6.32-lacie.0.10|config file]]**.
Line 1070: Line 1080:
 | LaCie Network Space 1 TB  | 400 Mhz Marvell 88F6082 Feroceon  |     16/64 Mb |       ? |   1 |  No     ?   | | LaCie Network Space 1 TB  | 400 Mhz Marvell 88F6082 Feroceon  |     16/64 Mb |       ? |   1 |  No     ?   |
  
 +===== Backporting minidlna =====
 +
 +We run **Debian 6 Squeeze** on our LaCie d2 Network and we want it to be a [[wp>Digital_Living_Network_Alliance|DLNA]] server. We choosed [[https://packages.debian.org/search?keywords=minidlna|minidlna]] because it is targeted to embedded systems. The package exists for **Debian 7 Wheezy**, so we have to backport it.
 +
 +Into a **[[..:prog:qemu_arm|Qemu armel virtual machine]]** we installed the packages required for Debian developing and build dependencies, we need also debhelper from backports.
 +
 +
 +<code>
 +apt-get install build-essential dh-make debhelper dpatch
 +apt-get install libavcodec-dev libavformat-dev libavutil-dev libexif-dev \
 +    libflac-dev libid3tag0-dev libogg-dev libsqlite3-dev libvorbis-dev libjpeg-dev
 +wget http://ftp.at.debian.org/debian-backports//pool/main/d/debhelper/debhelper_9.20120909~bpo60+1_all.deb
 +dpkg -i debhelper_9.20120909~bpo60+1_all.deb
 +</code>
 +
 +Then we downloaded the minidlna sources and compiled the sources:
 +
 +<code>
 +mkdir /usr/local/src/minidlna
 +cd /usr/local/src/minidlna
 +wget http://ftp.de.debian.org/debian/pool/main/m/minidlna/minidlna_1.0.24+dfsg-1.dsc
 +wget http://ftp.de.debian.org/debian/pool/main/m/minidlna/minidlna_1.0.24+dfsg.orig.tar.gz
 +wget http://ftp.de.debian.org/debian/pool/main/m/minidlna/minidlna_1.0.24+dfsg-1.debian.tar.gz
 +dpkg-source -x minidlna_1.0.24+dfsg-1.dsc
 +cd minidlna-1.0.24+dfsg
 +dpkg-buildpackage -rfakeroot
 +cd ..
 +</code>
 +
 +The resulting **{{.:lacie:minidlna_1.0.24_dfsg-1_armel.deb|minidlna_1.0.24+dfsg-1_armel.deb}}** package installed fine into the LaCie, just make a symlink ''/run -> /var/run''.
  
 +Configuration file is **''/etc/minidlna.conf''**, default share directory is **''/var/lib/minidlna''**, used ports are **8200/TCP** (http and media transfer), **3307/UDP** and **1900/UDP**.
 ===== Web Links ===== ===== Web Links =====
  
doc/appunti/hardware/lacie_d2_network.1289926021.txt.gz · Last modified: 2010/11/16 17:47 by niccolo