doc:appunti:hardware:lacie_d2_network
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:hardware:lacie_d2_network [2010/04/03 19:51] – niccolo | doc:appunti:hardware:lacie_d2_network [2014/02/15 22:48] – [Backporting minidlna] niccolo | ||
---|---|---|---|
Line 55: | Line 55: | ||
=== The back panel === | === The back panel === | ||
- | On the back panel there is a **three position power switch**. In the **on** position the device is powered-up and cannot be swithed | + | On the back panel there is a **three position power switch**. In the **on** position the device is powered-up and cannot be switched |
===== LaCie software ===== | ===== LaCie software ===== | ||
Line 347: | Line 347: | ||
The Wake-On-Lan function works when the device is turned off but the power switch is on the //auto// position: sending a Magic packet will power-up the LaCie. The '' | The Wake-On-Lan function works when the device is turned off but the power switch is on the //auto// position: sending a Magic packet will power-up the LaCie. The '' | ||
+ | |||
+ | Connect the Ethernet cable **before** the power cable, otherwise the Wake-On-Lan will not work. | ||
===== Dual boot with Debian ===== | ===== Dual boot with Debian ===== | ||
Line 664: | Line 666: | ||
Here it is the binary and the source code of **{{: | Here it is the binary and the source code of **{{: | ||
+ | |||
+ | ===== 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 **''/ | ||
+ | |||
+ | ^ Offset | ||
+ | | 0 | 6 | Ethernet MAC address. | ||
+ | | 6 | 1 | Power flag.\\ If set to **'' | ||
===== Disassembling the LaCie d2 Network ===== | ===== Disassembling the LaCie d2 Network ===== | ||
Line 679: | Line 689: | ||
You need the NetConsole client called **clunc**. I downloaded the {{.: | You need the NetConsole client called **clunc**. I downloaded the {{.: | ||
- | Start the clunc program on your Linux box and power on the Lacie: | + | Start the '' |
< | < | ||
Line 861: | Line 871: | ||
* binutils-arm-linux-gnueabi | * binutils-arm-linux-gnueabi | ||
* To compile the kernel in the Debian-way, install **kernel-package** and **linux-source-2.6.32** (from Debian Squeeze). Package **uboot-mkimage** is also required to make an U-Boot image. | * To compile the kernel in the Debian-way, install **kernel-package** and **linux-source-2.6.32** (from Debian Squeeze). Package **uboot-mkimage** is also required to make an U-Boot image. | ||
- | * Get the kernel config from **'' | + | * I started using the kernel config from **'' |
* Prepare the source tree:< | * Prepare the source tree:< | ||
tar jxf linux-source-2.6.32.tar.bz2 | tar jxf linux-source-2.6.32.tar.bz2 | ||
Line 872: | Line 882: | ||
export CROSS_COMPILE=arm-linux-gnueabi- | export CROSS_COMPILE=arm-linux-gnueabi- | ||
export ARCH=arm | export ARCH=arm | ||
+ | make menuconfig | ||
make-kpkg --arch armel --cross_compile=arm-linux-gnueabi- clean | make-kpkg --arch armel --cross_compile=arm-linux-gnueabi- clean | ||
make-kpkg --revision=lacie.0.1 --initrd --arch=armel --cross_compile=arm-linux-gnueabi- kernel_image | make-kpkg --revision=lacie.0.1 --initrd --arch=armel --cross_compile=arm-linux-gnueabi- kernel_image | ||
Line 1006: | Line 1017: | ||
Once **'' | Once **'' | ||
+ | |||
+ | ===== USB Sound ===== | ||
+ | |||
+ | When I attached an **USB audio stick**, this is what the '' | ||
+ | |||
+ | < | ||
+ | Bus 001 Device 002: ID 0c76:1607 JMTek, LLC. | ||
+ | </ | ||
+ | |||
+ | Then the kernel loads the proper drivers: | ||
+ | |||
+ | < | ||
+ | usb 1-1: new full speed USB device using orion-ehci and address 2 | ||
+ | usb 1-1: New USB device found, idVendor=0c76, | ||
+ | usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 | ||
+ | usb 1-1: Product: USB Headphone Set | ||
+ | usb 1-1: configuration #1 chosen from 1 choice | ||
+ | usbcore: registered new interface driver hiddev | ||
+ | input: USB Headphone Set as / | ||
+ | generic-usb 0003: | ||
+ | usbcore: registered new interface driver usbhid | ||
+ | usbhid: v2.6:USB HID core driver | ||
+ | usbcore: registered new interface driver snd-usb-audio | ||
+ | </ | ||
+ | |||
+ | Playing some mp3 tracks with **'' | ||
+ | |||
+ | < | ||
+ | modprobe snd_pcm_oss | ||
+ | mpg321 -o oss track1.mp3 | ||
+ | </ | ||
+ | |||
+ | Playing mp3 takes about 16% of CPU, 2% of memory and system load average remains near to zero. | ||
+ | |||
+ | ==== USB Audio volume problem ==== | ||
+ | |||
+ | On Linux kernel 2.6.32 (providing Alsa sound drivers 1.0.21) **the following USB audio dongle works as expected**, including the volume control: | ||
+ | |||
+ | < | ||
+ | Bus 001 Device 003: ID 0c76:1607 JMTek, LLC. audio controller | ||
+ | </ | ||
+ | |||
+ | There is a problem with some **other USB chips**, where **the volume control does not work**. When the volume control is set to the lower position, the audio is muted, but at any other position the audio is set to its maximum value. This is a chip wich has the problem: | ||
+ | |||
+ | < | ||
+ | Bus 001 Device 002: ID 1130:f211 Tenx Technology, Inc. TP6911 Audio Headset | ||
+ | </ | ||
+ | |||
+ | Here there is a [[https:// | ||
===== Other NAS comparison ===== | ===== Other NAS comparison ===== | ||
Line 1018: | Line 1078: | ||
| LaCie Network Space 1 TB | 400 Mhz Marvell 88F6082 Feroceon | | LaCie Network Space 1 TB | 400 Mhz Marvell 88F6082 Feroceon | ||
+ | ===== Backporting minidlna ===== | ||
+ | |||
+ | We run **Debian 6 Squeeze** on our LaCie d2 Network and we want it to be a [[wp> | ||
+ | |||
+ | Into a Qemu armel virtual machine we installed the packages required for Debian developing and build dependencies, | ||
+ | |||
+ | |||
+ | < | ||
+ | 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:// | ||
+ | dpkg -i debhelper_9.20120909~bpo60+1_all.deb | ||
+ | </ | ||
+ | |||
+ | Then we downloaded the minidlna sources and compiled the sources: | ||
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | cd / | ||
+ | wget http:// | ||
+ | wget http:// | ||
+ | wget http:// | ||
+ | dpkg-source -x minidlna_1.0.24+dfsg-1.dsc | ||
+ | cd minidlna-1.0.24+dfsg | ||
+ | dpkg-buildpackage -rfakeroot | ||
+ | cd .. | ||
+ | </ | ||
+ | The resulting **{{.: | ||
===== Web Links ===== | ===== Web Links ===== | ||
Line 1024: | Line 1113: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// |
doc/appunti/hardware/lacie_d2_network.txt · Last modified: 2014/03/01 06:29 by niccolo