developer.shyd.de. studying my hobby

14Jun/1317

Dockstar/Goflex: new Kernel 3.9.5 ready to use

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

It's been one year since I published a compiled kernel for our devices. Now I decided to build a new one and share it!

Some facts about it:

  • As all of my other kernels this one uses heartbeat during boot.
  • It supports the dockstar, goflex net and home.
  • Some of you asked for I2C support, it's now working on the dockstar and goflex net. i2cdetect -l has the desired output!

If you encounter any missing modules for certain devices, try to compile them yourself with the given headers and give me a hint so I can include them in feature releases.

1. Prerequisites

In order to install the kernel properly, you need to have initramfs-tools installed. Otherwise your device won't be able to boot! Thanks to chessplayer for sharing this info!

Make sure you have the latest uboot installed. See 1. in Dockstar: new Kernel 3.3.3 ready to use.

2. Upgrade the Kernel

This part is analogue to my other articles concerning kernel installations:

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 correct arcNumber fitting your device:

dockstar   2998
goflexnet  3089
goflexhome 3338

You can install it as follows:

If you are encountering problems with flash-kernel, the kernel will be installed though. But rerun it, to finish the process:

Create the boot files:

3. LED setup

You have to edit two files:

For the dockstar add to /etc/rc.local. See below for the corresponding LEDs for the goflex.

and in

find

add after

to set it off, when the system halts.

The LEDs of the Goflex Home are called:

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

...and for the Goflex Net:

status:green:health
status:orange:misc
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:

4. Additional files

The config is available at:
config-3.9.5-dockstar-goflex-shyd_1.1

If you want to compile further modules, the headers can be found here:
linux-headers-3.9.5-dockstar-goflex-shyd_1.1_armel.deb
Remember to create the symlinks /lib/modules/3.9.5-dockstar-goflex-shyd/build and /lib/modules/3.9.5-dockstar-goflex-shyd/source if you install the headers after the kernel.

And here is the patch with everything I've changed from the source tree:
linux-3.9.5-dockstar-goflex.patch

Filed under: Dockstar, Goflex, Hardware, Kernel, Linux | 8,454 views Leave a comment
  • Sacri94

    Really thank you for all your work around Dockstar !

    It was really easy to upgrade kernel.

    Are you using debian wheezy on yours ? I still using squeeze .

    • Thanks! Great to hear this!
      Yes, I updated all my squeeze devices to wheezy since it is stable.
      On desktop machines I head some trouble with gnome2/3. Now I use MATE and I am happy with it.
      On headless machines there were no problems at all! I splitted the process into 4 steps after editing sources.list:
      1. apt-get update
      2. apt-get upgrade
      3. apt-get install udev
      4. apt-get dist-upgrade

      • Sacri94

        Perfect ! It works like a charm !

  • dg

    Since jessie kernel 3.9-1 is broken (at least for me) I installed yours and it works perfectly!

    Now I’d like to compile f2fs.ko mudule.

    Can you please write a quick how-to?

    • Great to hear that!
      Refer to this nice howto: http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html

      But don’t install the headers through apt-get. Use my deb-file instead!

      • dg

        I’ve installed build-essential, installed your deb-file, copied the config to /boot.Then got me a copy of the 3.9.9 f2fs folder and ran the make command.

        # make -C /lib/modules/3.9.5-dockstar-goflex-shyd/build M=$PWD
        make: Entering directory /usr/src/linux-headers-3.9.5-dockstar-goflex-shyd'
        Building modules, stage 2.
        MODPOST 0 modules
        scripts/mod/modpost: 1: scripts/mod/modpost: Syntax error: ")" unexpected
        make[1]: *** [__modpost] Error 2
        make: *** [modules] Error 2
        make: Leaving directory
        /usr/src/linux-headers-3.9.5-dockstar-goflex-shyd’

        What’s wrong here?

  • Vince S

    Hi Shyd. I’d like to thank you for your work, not just for this kernel, but for all the development work you have put into linux for goflex net. I currently have kernel v3.3.2 and debian 7.1 on my goflex net and it is running fine with no issues. Should I upgrade to this updated kernel? When are kernel upgrades necessary? Thanks!

    • Vince, thanks for your comment!
      If everything works fine, I wouldn’t upgrade.
      You should update the kernel, when you encounter problems with device drivers etc. Newer kernels support newer hardware. But probably persisting bugs are solved and new features are added anyway; more about that: see the official changelog ;)

      cheers

  • moddy

    Mal wieder großartige Arbeit, shyd.
    :)
    Nach mehreren Anläufen funktionierende Treiber für einen DVB-T MSI Digi Vox Ultimate Pro zu bauen, war das Kernel-upgrade der einfachere und vor allem erfolgreiche Weg!

    Headers sind diesmal auch dabei, also nichts zu meckern…
    ;)

    Kannst du – sicherheitshalber – nochmal schreiben wie die symlinks heissen müssen bzw. worauf die zeigen müssen? Danke.

    • Schön zu hören, danke!
      Die symlinks sind ‘build’ und ‘source’ im Ordner der Module und zeigen beide auf die header in /usr/src

  • Christian

    Hallo shyd,

    vielen Dank, Du hast mir echt das Wochenende gerettet. :-)

    Beim Upgrade von Squeeze auf Wheezy hatte ich einen Fehler beim Erzeugen des uImage gemacht und die Maschine fuhr nicht mehr hoch. Über Deinen Serial USB Adapter Artikel bin ich auf diesen Blog gestoßen und habe auch vergangenes Wochenende über diesen Adapter meine Dockstar wiederbelebt.

    Hinterher habe ich noch den Kernel von Dir eingesetzt und nun rennt wieder alles wie neu. Herzlichen Dank für die tolle Arbeit.

    Habe Dich gleich mal backlinked: http://anwendungsentwickler.ws/blog/kategorien/linux/dockstar-system-ueber-serielle-verbindung-retten.html

    • Sehr schön! Danke!

  • green

    Hi Shyd,Thanks for all the apps, packages and info you have posted. It has helped me alot. Quick question about this kernel. I installed it on my goflex net. Do I have to do anything in step 3 (LEDS), or is that step only for people with the dockstar?
    The kernel installed and it works, though my LED light is now blinking orange (it was green before). I just want to know if this is normal. According to the info you posted above for this device “status:orange:misc” – so I guess everything is ok?

    Thanks again,

    • Thanks!

      Well it is ok, because the kernel starts in heartbeat mode (orange blinking). But it should be solid green to show the system has booted successfully. Part 3 is for both devices. The LEDs are called ‘status’ for the goflex, not ‘dockstar’.

      So just change ‘/sys/class/leds/dockstar:green:health/trigger’ to ‘/sys/class/leds/status:green:health/trigger’. Do this for all LEDs and everything should work fine!

      Let me know, if this is what you needed.

      • green

        I thought that step was for dockstar devices only, thank you for helping

  • green

    One last question.. if I wanted to try building a new kernel myself for the goflex net, will the instructions in your article (Dockstar: crosscompile a newer kernel, set up toolchain) work to build newer kernels? Thanks!