The other day I blogged about installing Debian on the D-Link DNS-323 NAS box, and it is really awesome (yay!). There were a few things missing however, most importantly for me was the fan to help cool the unit down. Well Martin Michlmayr built a new 2.6.29 kernel for me with a driver for the fan. THANKS!
I’ve a kernel for you now.
Edit the file /etc/apt/sources.list and add the following line:
deb http://people.debian.org/~tbm/orion lenny main
Now you can install the new kernel:
apt-get update
apt-get install linux-image-2.6.29-1-orion5xAfter a reboot, you can control the fan this way:
echo 0 > /sys/class/hwmon/hwmon1/device/pwm1 # turn it off
echo 255 > /sys/class/hwmon/hwmon1/device/pwm1 # turn it to full speedAny values between 0 and 255 will work.
This kernel also includes some performance patches from Marvell, so you
might see some performance increases too.
The new kernel works a treat, and indeed the fan does work. On my unit the device is under hwmon0, not hwmon1, but apart from that everything went smoothly. It will depend on your hard drive of course and how hot it runs, I just put mine on full-ball which isn’t too noisy (I think). AFAIK temperature sensing is not working yet, but if it was I could write a script to adjust the fan speed on the fly. For now I’m happy to just keep it at a comfortable level and keep an eye on the temps. Certainly without any fan working it was running too hot, so some fan is better than none at all!
I have yet to test any performance increase in the network performance, however I can confirm that scp is exactly the same slow speed at 2.x MB/sec and now I know why – thanks to top I can see scp and ssh maxing out the CPU. So it appears the unit just can’t decrypt fast enough, hence the bottleneck. I have installed nfs-kernel-server and will try this to see if performance is improved (I always use scp or rsync, so it might be good to have some speed increase!).
Thanks Martin!
-c


