Endy's Blogomat

My Linkstation runs kernel 2.6.22

After getting fooled for about 6 hours by my cisco home router I finally managed to install u-boot bootloader on my linkstation and also boot a 2.6.22 kernel. What you basically need are the binaries for u-boot you can download here, and a linux or unix PC having netcat installed. (more…)

Custom 2.6 kernel available for LS2

One of the biggest issues regarding the mips based Linkstation seems to be solved! According to this thread and this detailed howto, a guy from linuxnotincluded managed to port the u-boot bootloader to the mips Linkstation. Now it should be possible to build and boot a custom kernel having all the desired bells and whistles like inotify support, bluetooth support, xfs support any everything else the 2.6 kernel can provide. I will now start implementing this on my Linkstation – keep fingers crossed that I don’t brick it ;-). The proceedure does not yet look trivial but I think its worth to give it a try to have the kernel available for further features.

Spinning down your Linkstations HD

While playing around with mediaservers and my ps3, I noticed that I still had not fixed my HD spin down issue on my FreeLink Linksation. Some months ago I evaluated what my cause hdparm spindown timers to fail. I found out that some processes still work on logfiles, I tried to minimize them but still the HD spin up to often. I now use this setting for hdparm:

 command_line {   

  hdparm -q -m16 -q -W0 -q -d1 -S120 /dev/hda



which equals 10 minutes idle time. In addition i added the noatime,nodiratime flags to my /etc/fstab entries locate on the harddisc. This is what I already had, but still the spinup problem. I found a posting a while ago – I don’t know where – about moving the /var directory from the harddrive onto a flash drive or USB stick. This is what finally solved my issue! I just stopped all daemons accessing var (cron, atd, syslog, etc.) and copied over the complete /var directory to a USB stick partition. Then I changed the /etc/fstab file and moved the old /var directory out of the way, created a new on and mounted the flash drive – also the reboot test was successful. I was more than happy finding out that now th HD spins down and only spins up if I mount the Linkstation or need to access or execute a file on the HD. Next I will install a new more silent fan and I will not hear the Linkstation any more 🙂  

mediaserver evaluations for PS3

I started to setup a mediaserver for my PS3. After noticing that I’m not the only one who is working  on this i followed cirrus porposal and evaluated TwonkyMediaServer. It worked well on my LS2 linkstation (running full blown debian etch – they call it FreeLink – it can now be installed without much pain using this tutorial – when I started I had to do everything on my own including disassemling of the box). The only two issues I see with Twonky are:

  • It costs money (but is still affordable)
  • It does not support my .ts files recoded with my dbox2 I have to rename them to mpg.

I then found another project on sourceforge called mediatomb which is an open source project. It took me some time to compile the code on my linkstation since this box is not that fast – but i managed to get it up and running wihout any problems and the box seems to be also powerful enough for this software. After adding the required mime type to the config.xml and added the required paramter to enable the box to work with my PS3, I now have the same status as with twonky, apart from the nice itunes xml integration. One nice feature of mediatomb is that it is actively developed and that it can be scripted very nice – it should be also possible to integrated last.fm notifications easily.  

OpenVZ und echtes Ethernet mit veth

Heute mal was fachliches 😉

Falls jemand mal unter OpenVz ein Interface braucht auf dem man snoopen kann und welches eine Mac Addresse hat, sollte er ein veth device verwenden. Das ganze ist hier beschrieben.

Ich war heute mal so frei das /usr/sbin/vznetaddroute script zu tunen und im OpenVz Wiki zu dokumentieren. Nun ist das ganze ein wenig generischer. Wer Lust hat kann sich das ganze ja mal anschauen, es macht OpenVZ noch interessanter – nicht unbedingt das Script aber die Funktion an sich 🙂

Wer fragen hat kann mich ja anmailen….