developer.shyd.de. studying my hobby

22Jan/1243

Dockstar/Goflex: new Kernel 3.1.10 ready to use

(3 votes, average: 5.00 out of 5)
Loading...

It's now been a while since I installed the 3.1.0-1 kernel from sid and made some testing. But I don't like the LED beeing solid green during boot, I want to see whats going on. Thats why I decided to compile 3.1.10 with heartbeat from this erlier article: Dockstar: new Kernel 2.6.38 ready to use. The config is based on sid's 3.1.0-1, if you want to take a look at it, you will find it here: config-3.1.10-dockstar-shyd_1.2
It supports several devices like wifi, webcam, audio or dvb.

Some of you might ask why I didn't build 3.2.1. I did, but it wouldn't boot.

If you know what you are doing you are ready to download and install the kernel. I am not responsible for any malfunctions or damages on your device!

I assume that you already set the arcNumber to 2998 to make the kernel identify the dockstar as a dockstar.
You can install it as follows:

You can leave the arcNumber untouched. In this case the LED will go off once the kernel has been loaded.

Once the device booted up again log in and check the output of uname -r:

Update 13.02.2012: Proper LED Setup

To make the LED "know what to do" you have to edit two files:

add to

and in

find

add after

to set it off, when the system halts.

Update 03.03.2012: added Goflex support

Some of you asked if my kernel supports the Goflex Net and Goflex Home - now it does!
Special thanks to Hubert, who tested it on his Goflex!
You can install the kernel on the dockstar as described above. On the goflex you need this deb:

The LEDs of the Goflex Home are called:

status:green:health
status:orange:fault
status:white:misc

...and for the Goflex Net:

status:green:health
status:orange:fault
status:white:left0
status:white:left1
status:white:left2
status:white:left3
status:white:right0
status:white:right1
status:white:right2
status:white:right3

Once the device booted up again log in and check the output of uname -r:

Filed under: Dockstar, Goflex, Hardware, Kernel, Linux | 21,695 views Leave a comment
  • dharry

    Does your kernel supports the goflex home (with sata support) too?

    • shyd

      Sorry, I don’t know if it will run on a goflex, because I don’t know what kernel modules you need for it. Maybe you provide the output of lsmod of the current system.

  • Hello,
    I am a faithful reader of your articles. Great job with 3.1.10 kernel !
    But …. little problem… and my solution:
    1/ in /tmp, no left place! the package linux-image-3.1.10-dockstar-shyd_1.2_armel.deb is too big in my dockstar (25Mo in my /tmp) -> solution: move deb in /root
    2/ no link in /
    Solution:
    dockstar: 11:45:04 root /
    # ln -s /boot/initrd.img-3.1.10-dockstar-shyd ./initrd.img
    dockstar: 11:45:04 root /
    # ln -s /boot/vmlinuz-3.1.10-dockstar-shyd ./vmlinuz
    dockstar: 11:45:04 root /
    # reboot

    dockstar: 11:48:11 remi /home/remi
    $ uname -a
    Linux master.suinot.org 3.1.10-dockstar-shyd #1 Sat Jan 21 16:14:38 CET 2012 armv5tel GNU/Linux

    Thanks for your job!!
    Rémi.

    • shyd

      Thanks!

  • Novo

    I did a fresh install, then fw_setenv arcNumber 2998
    and then the install steps above.
    But the Dockstar don’t stop heartbeat!

    • shyd

      I assume you install debian with my guide with all its steps. If you don’t you won’t edit the /etc/rc.local so the system doesn’t set the LED.
      Follow the update on this article and your dockstar will switch from heartbeat to solid green after bootsequence.

  • Bedek

    Hi,

    Great article as always ! :)

    But I’ve question – how is it possible that after “halt” command it’s still possible to execute further commands – like in this case switching the led light ?
    Would you have maybe some link which explains in details how the “halt” command really works – not a “man” page :)

    Regards,
    Bedek

    • shyd

      Thanks!
      If you type halt a routine is executed which does all the things needed for shutdown. These things are in /etc/init.d/halt. Why not editing it to do some more like switching leds off.
      I don’t have any links handy. Anyway I hope I could help you somehow.
      But: For me the led stays solid green, even after halt

      • Bedek

        Hi,

        While you referring to the script in etc folder I’m writing here about “halt” command.

        Maybe I wasn’t clear but looks like “halt” _command_ is being executed in asynchronous mode – so it must be initializing shut down procedure on the hardware level and immediately return control to the script – and that’s why it’s possible (for some short period) to execute command (like switching on/off leds) – these are just my assumptions and can’t find detailed description how this command really works.

        Regards,
        Bedek.

  • Novo

    Thanks shyd, works now after the “update” in article :D

    Other question: do you know lcd4linux and AX206 Perl Display? Have a specified question that nobody can answer me :/

  • RonSon

    Vielen Dank für den vorkompilierten Kernel. Rennt jetzt auf einem meiner Dockstars der mit dem Kernel endlich auch meinen DVB-T USB Stick erkennt. vdr ist einfach herrlich! ;-) Muss mich irgendwann mal damit beschäftigen diese Kernel mal selbst zu brutzeln.

    Darf ich fragen wofür du so hauptsächlich dein Dockstar benutzt.

    Achja. weißt du evtl wie ich, ohne Probleme bekommen zu können, meine Debian Squeeze Version auf die 6.0.4 Version Updaten könnte.? Will nochmal auf nummer Sicher gehen bevor ich das durchführe.

    Vielen Dank für die ganzen Anleitungen hier auf deiner Seite. Habe schon einiges in Dokumenten archiviert! ^^

    Ich hoffe mal du bleibst deinem Dockstar noch paar Järchen treu und schreibst ab und zu mal neue Artikel dazu!

    Vielen Dank nocheinmal.

    • shyd

      Danke für die netten Worte! Jawohl, mit vdr habe ich auch schon rumgespielt, nette Sache.

      Hauptsächlich höre ich Internetradio mit mpd. Da ich oft unterwegs bin und an meine Daten kommen möchte, habe ich alles wichtige auf der externen Platte und nutze den Dockstar als meine Cloud.

      Also mein Dockstar läuft seit über einem Jahr und ich habe immer per apt-get dist-upgrade geupdated und habe jetzt 6.0.4 am Laufen. Zur Not machst du einfach ein Backup und updatest dann.

      Auf jeden Fall bleibe ich treu, allerdings hoffe ich bald etwas über Raspberry Pi schreiben zu können.

      • RonSon

        Vielen Dank für die Antwort!

        Bin auch ganz heiß auf das Teil. Es wird ein Glücksspiel sein einen aus dem ersten Batch zu erhalten! ^^

        Ich werde mir auch einen Bestellen bzw. gucken ob ich noch einen mehr bekomme. Hab schon viele meiner Freunde damit “angefixt” :) . Hätt ich blos meine Klappe gehalten, dann hätten wir ne größere Chance!

        Ich nutze den Dockstar auf dem VDR läuft auch als MPD Server / Client (Web Interface). Die Dinger sind einfach herrlich.
        Danke nochmal für deine Antwort. Werde dann mal ein dist upgrade vollziehen. Hab zum Glück Backup Images per dd erstellt!

        Schöne Grüße!
        Ron

  • Saubere Arbeit! Hab nun endlich mal von 2.6.32 auf 3.1.10 umgestellt! Lief 1a durch..!

    Was mir aber fehlt, eventuell weist du da abhile. Ich hatte beim alten Kernel ein “Modul” welches die LED vorn dazu brachte wie ein Herzschlag zu pulsieren je nach Load. Also wenn Sie viel zu tun hat immer schneller und wenn weniger dann normal pulsierend… Könnte man das irgendwie wieder integrieren?

    • shyd

      War es ein kompiliertes Kernelmodul, das mit modprobe geladen werden musste oder ein Script? Normalerweise sollte die LED nach wie vor ansprechbar sein. Evtl. musst du die Namen anpassen (:health und :misc heißen sie bei mir).

  • Wollte den Kernel auch auf meiner Goflex net nutzen. Leider läd er nicht. Scheint nicht dafür gebaut zu sein.
    Wäre es möglich die Goflex net dazu zu nehmen.
    Folgender Fehler kommt:
    Starting kernel …

    Uncompressing Linux… done, booting the kernel.

    Error: unrecognized/unsupported machine ID (r1 = 0x00000c11).

    Available machine support:

    ID (hex) NAME
    00000690 Marvell DB-88F6281-BP Development Board
    00000691 Marvell RD-88F6192-NAS Development Board
    00000692 Marvell RD-88F6281 Reference Board
    0000078c Marvell 88F6281 GTW GE Board
    00000a76 Marvell eSATA SheevaPlug Reference Board
    00000831 Marvell SheevaPlug Reference Board
    00000a63 Marvell GuruPlug Reference Board
    00000bb6 Seagate FreeAgent DockStar
    0000085b QNAP TS-119/TS-219
    000009c6 QNAP TS-41x
    00000b44 Marvell OpenRD Ultimate Board
    00000939 Marvell OpenRD Client Board
    00000915 Marvell OpenRD Base Board
    00000b1e HP t5325 Thin Client

    Please check your kernel config and/or bootloader.

    Wäre toll. Danke
    Gruß

    Hubert

    • shyd

      Leider habe keinerlei Erfahrung mit der Goflex. Deine arcNumber c11 (3089) wird nicht erkannt. Eine Liste der unterstützten Geräte findest du im Kernel-Sourcecode: linux/arch/arm/tools/mach-types.
      Wenn die Godflex auch einen kirkwood benötigt, könntest du evtl eine passende arcNumber testen (eine der von dir genannten). Andernfalls müsste der Kernel neu kompiliert werden.

      Gruß

  • Habe es schon mit der arcNumber der dockstar(2998) versucht, ging aber nicht.
    Bei mir sieht derdie config so aus:
    #
    # Marvell Kirkwood Implementations
    #
    CONFIG_MACH_DB88F6281_BP=y
    CONFIG_MACH_RD88F6192_NAS=y
    CONFIG_MACH_RD88F6281=y
    # CONFIG_MACH_MV88F6281GTW_GE is not set
    CONFIG_MACH_SHEEVAPLUG=y
    CONFIG_MACH_ESATA_SHEEVAPLUG=y
    CONFIG_MACH_GURUPLUG=y
    CONFIG_MACH_TS219=y
    CONFIG_MACH_TS41X=y
    CONFIG_MACH_DOCKSTAR=y
    CONFIG_MACH_GOFLEXNET=y
    CONFIG_MACH_GOFLEXHOME=y
    CONFIG_MACH_OPENRD=y
    CONFIG_MACH_OPENRD_BASE=y
    CONFIG_MACH_OPENRD_CLIENT=y
    CONFIG_MACH_OPENRD_ULTIMATE=y
    # CONFIG_MACH_NETSPACE_V2 is not set
    # CONFIG_MACH_INETSPACE_V2 is not set
    CONFIG_MACH_NETSPACE_MAX_V2=y
    CONFIG_MACH_D2NET_V2=y
    # CONFIG_MACH_NET2BIG_V2 is not set
    # CONFIG_MACH_NET5BIG_V2 is not set
    CONFIG_MACH_T5325=y
    CONFIG_PLAT_ORION=y

    Ich denke man muss den Kernel neu compilieren, leider fehlt mir dazu das environment dafür.
    Mein jetziger Kernel ist von hier:
    http://www.varkey.in/2011/06/boot-debian-from-sata-seagate-goflex-net/
    Vielleicht hilft die Seite.
    Gruß

    Hubert

  • dharry

    Hallo,

    habe versucht den goflex kernel zu installieren. Bekam beim installieren des Pakets folgende Meldungen:

    Setting up linux-image-3.1.10-dockstar-goflex-shyd (1.1) …

    Hmm. There is a symbolic link /lib/modules/3.1.10-dockstar-goflex-shyd/build
    However, I can not read it: No such file or directory
    Therefore, I am deleting /lib/modules/3.1.10-dockstar-goflex-shyd/build

    Hmm. The package shipped with a symbolic link /lib/modules/3.1.10-dockstar-goflex-shyd/source
    However, I can not read the target: No such file or directory
    Therefore, I am deleting /lib/modules/3.1.10-dockstar-goflex-shyd/source

    In /boot fehlt auch die Datei /boot/initrd.img-3.1.10-dockstar-goflex-shyd, weshalb ich keine ramdisk bauen kann. Hängt das evtl . Problem an der Meldung von dpkg -i?

    • shyd

      Your message seems to be okay. But this is missing:

      Running depmod.
      Examining /etc/kernel/postinst.d.
      run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.1.10-dockstar-goflex-shyd /boot/vmlinuz-3.1.10-dockstar-goflex-shyd
      update-initramfs: Generating /boot/initrd.img-3.1.10-dockstar-goflex-shyd
      run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 3.1.10-dockstar-goflex-shyd /boot/vmlinuz-3.1.10-dockstar-goflex-shyd

      Tested on Dockstar and Goflex.

      • dharry

        to fix my problem,

        I run update-initframfs with parameter -k 3.1.10-dockstar-goflex-shyd. The directory /etc/kernel/postinst.d is empty after installing the package. If you unpack the deb-package you will see that it is also empty. So I can execute zz-flash-kernel manually.

        After update-iitframfs I was able to create /boot/uInitrd. But a restart fails, because the root file system could not be mounted.

        Has someone any trick to boot 3.1.10 on my goflex home?

  • dharry

    Has someone successfully installed the goflex kernel? If yes on what kind of gofled (net or home)?

  • Is it possible to connect a webcam to the dockstar?

    • shyd

      Yes, it is!

  • Just installed kernel on Goflex Net. Works like a charm! Thank you very much!!!

  • major-tom

    Hi!

    Ich nutzte deinen Kernel auf einigen Geräten (Dockstar, GoFlexNet und GoFlexHome) und alles ist eigentlich top.
    Nun habe ich allerdings erfolglos versucht eine TT-3600 DVB-S2 Karte zum laufen zu bringen. da muss man ja die s2-liplianin Treiber komplilieren. Doch leider funzt das nicht. Die TT-2400 geht astrein.
    Hast du da einen Tip wie das funktionieren kann? habe den Kernel schon nach deiner config nachgebaut um die headers und den source zu bekommen. aber evtl. ist ja da ein fehler drinnen?
    magst du das mit den treibern mal testen?

    thx
    major

  • dharry

    @all: my goflex home now working with this kernel (after reinstalling base debian system)
    @major-tom: TT-3600 is supported from kernel 3.2.
    It seems that s2-liplianin doesn’t work with newer kernel (>= 3.0). So you could try to compile a newer kernel (>= 3.2) or ask s2-liplianin mailinglist if there is a solution for newer kernels.
    Because of this problem with 3.0 or 3.1 kernels I bought a old oper dvb-s1 card. It hasn’t dvb-s2 but it’s supported in the kernel.

  • DVB drivers for DVB-S2 USB devices is also my next problem to solve now. I also have a TT-3600 and now also a Terratec Cinergy USB box (latest third revision). There are a few reports that the Cinergy box is working after the USB IDs were patched into the appropriate locations.

    Instead of s2-liplianin you could try if a linux-media-dkms package might compile/run with the kernel 3.1.10: https://launchpad.net/~yavdr/+archive/main/+packages?field.name_filter=linux-media-dkms&field.status_filter=published&field.series_filter=

    The TT-3600 driver (pctv452) is also part of those linux-media-dkms packages.

    You could also try to install a s2-liplianin-dkms package that I once created for an older kernel. I guess it will just not build and only cost you a couple of hours of wasted time…
    http://www.vdr-portal.de/board19-verschiedenes/board52-andere-hardware/p1039265-s2-liplianin-dkms-f%C3%BCr-armel-dockstar-2-6-32-5-kirkwood/#post1039265

    Cheers,
    hepi

  • major-tom

    hi dharry,

    i ve already built a 3.2 kernel, but there is a bug and the kernel 3.2 won’t boot….
    seems that problem runs around a circle….
    the old kernel won’t boot my goflex from sata, and the new kernel, that boots from sata doesn’t run with the dvb-s2 and the kernel (3.2) that supports the dvb-s2 doesn’t boot the goflex…. :-((

    major-tom

  • shyd

    Exactly what I was trying to fix. My CT-3650 CI works like charm. But I couldn’t get my parent’s TT-3600 to work.
    Thanks a lot for the links! I think it’s time to introduce the forums…

  • And another thing: Traditionally a DKMS package only contains a couple of kernel modules to be built, installed (and deinstalled). The linux-media-dkms or the s2-liplianin-dkms both contain nearly the complete v4l/dvb kernel module tree and this means that they are slow to install (=build-on-install) and slow to deinstall (because of an upstream bug in the package dkms [1]). This bug was removed in the Ubuntu packages but reintroduced again for some reason. Therefore you need a patched package “dkms” to be able to quickly uninstall all the modules within linux-media-dkms. If it takes 2 hours to deinstall, you know that you have ignored this note.

    [1] https://bugs.launchpad.net/dkms/+bug/582666

  • dharry

    I’ve Seen a Bugfix for the Problem with Kernel 3.2 in doozan forum

  • major-tom

    Hi,
    i’ve flashed the uboot and now i’m running kernel 3.3.2 ;-)
    tomorrow i’ll try to get the tt-3600 to make a picture ;-)
    major

    • shyd

      That sounds interesting! Looking forward to your reply

      • major-tom

        i’m afraid, i can’t compile s2-liplianin.
        i’ve built the kernel 3.3.2 with your config from 3.1.10, but no chance.
        maybe i’ve an error in the config for the tt-3600.
        is there an explicit module to activat?

        cya

        • major-tom

          aaaarrrhhh,
          i think i had tomatos on the eys….
          i reconfigures the kernel and found the entry for the tt-3600

          now just wait and see, hopefully pictures from the tt-3600

          cya

  • major-tom

    so now it works
    kernel 3.3.2 does it

    tom

  • davygravy

    @ major-tom007 & @ shyd…

    could you please post your patches/configs ? Do you use the patches straight out of ArchLinuxArm, or do you have another source?

    I’d like to roll a most-recent .deb for the GoFlex Net, Dockstar and others…

    And, shyd, the probable reason that your 3.2 kernel wouldn’t boot is the U-Boot bug… which is pretty much solved and new(er) U-Boot bins posted for upgrades.

    • shyd

      All my kernels are compiled directly from the sources of kernel.org. You can find my configs and patches in http://dev.shyd.de/dockstar/
      I’ll try the new U-Boot within the next days.

  • Regarding DVB device support in a Dockstar/Goflex kernel: Obviously, USB DVB devices are most interesting here. It would be cool if we could add patches to support for all USB devices that are not included in kernel 3.2. At this time, only two DVB devices come to my mind that we would need a patch to make them work: a) Terratec Cinergy S2 USB HD (3rd revision): https://bugs.yavdr.com/issues/752
    b) PCTV DVB-S2-Stick 460e (http://www.vdr-portal.de/board60-linux/board14-betriebssystem/board96-yavdr/p1022281-geht-der-pctv-dvb-s2-stick-460e-usb/#post1022281)

    Patching the kernel sources directly with the latest linux-media tree would make a DKMS solution redundant for the Dockstar scenario. On the other hand, the stability would possibly suffer.

    Cheers,
    hepi

  • major-tom

    @davygravy
    flashed now the new uboot from you, i’ll test it now. as shyd said about his config files, so did i.
    i used his files.

    @hepi with kernel 3.2 there is no need to patch the kernel. u only have to activate the modules for the dvb with make menuconfig

    cya
    major

  • Pingback: Dockstar: new Kernel 3.3.3 ready to use | developer.shyd.de.()

  • Pingback: Build your own Pro NAS – Seagate Goflex Net with Debian Linux, RAID1 and OpenMediaVault | DonCharisma.org()

  • Pingback: Build your own Pro NAS – Seagate Goflex Net with Debian Linux, RAID1 and OpenMediaVault | DonCharisma.com()

  • lost

    the golfex home orange LED flashes contiunuously after booting, no matter what i change, including fw_setenv with either arcNumer :/

    • What if you run these two commands manually?

      echo default-on > /sys/class/leds/status:green:health/trigger
      echo none > /sys/class/leds/status:orange:fault/trigger

  • Pingback: Build your own Pro NAS – Seagate Goflex Net with Debian Linux, RAID1 and OpenMediaVault | Don Charisma()