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 [2014/02/15 22:32] – [Other NAS comparison] niccolodoc:appunti:hardware:lacie_d2_network [2014/03/01 06:29] (current) – [Compiling the Linux kernel] niccolo
Line 823: 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 1080: Line 1082:
 ===== Backporting minidlna ===== ===== 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.+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.txt · Last modified: 2014/03/01 06:29 by niccolo