Welcome! Log In Create A New Profile

Advanced

Howto: Build a new Debian kernel with LED support

Posted by Jeff 
Re: Howto: Build a new Debian kernel with LED support
January 16, 2012 04:35AM
Is it possible to release led support as module for debian squeeze and not as compiled into the kernel ?
Re: Howto: Build a new Debian kernel with LED support
January 19, 2012 05:30PM
Actually I was able to turn the LEDs in blinking mode using standard Debian kernel version:

Linux nas 2.6.32-5-kirkwood #1 Tue Mar 8 10:56:14 UTC 2011 armv5tel GNU/Linux

the only pre-requirement was to have that version of standard Debian kerne and execute command:

fw_setenv arcNumber 2998

and then reboot.

Here are my scripts – name are quite self explanatory:)

ledGreenBlink.sh
#!/bin/bash
echo none > /sys/class/leds/dockstar\:orange\:misc/trigger
echo none > /sys/class/leds/dockstar\:green\:health/trigger
echo timer > /sys/class/leds/dockstar\:green\:health/trigger
echo 500 > /sys/class/leds/dockstar\:green\:health/delay_on
echo 500 > /sys/class/leds/dockstar\:green\:health/delay_off

ledOrangeBlink.sh
#!/bin/bash
echo none > /sys/class/leds/dockstar\:green\:health/trigger
echo none > /sys/class/leds/dockstar\:orange\:misc/trigger
echo timer > /sys/class/leds/dockstar\:orange\:misc/trigger
echo 500 > /sys/class/leds/dockstar\:orange\:misc/delay_on
echo 500 > /sys/class/leds/dockstar\:orange\:misc/delay_off

ledOrangeOn.sh
#!/bin/bash
echo none > /sys/class/leds/dockstar\:orange\:misc/trigger
echo none > /sys/class/leds/dockstar\:green\:health/trigger
echo default-on > /sys/class/leds/dockstar\:orange\:misc/trigger
Re: Howto: Build a new Debian kernel with LED support
March 13, 2012 12:59PM
Hi,

i would like to know, if anybody can provide me with a kernel config file for the dockstar.

Thanks in adavance
Re: Howto: Build a new Debian kernel with LED support
March 13, 2012 01:13PM
Re: Howto: Build a new Debian kernel with LED support
March 13, 2012 02:37PM
Great, thank you!
cyb
Re: Howto: Build a new Debian kernel with LED support
July 30, 2012 01:21PM
Hi,

I'm trying to compile kernel 3.1.10. I followed this guide and used the config of shyd but I always get the same error quite after starting:

*** Error. I do not know where the kernel image goes to [kimagedest undefined] The usual case for this is that I could not determine which arch or subarch this machine belongs to. Please specify a subarch, and try again..

I can't figure out why! I tried it on Ubunut 12.04 and on Debian Squeeze as well, with the same result. I also tried to leave out the --arch armel parameter as somebody suggests here, but then I have to reconfigure everything, so that can't be the solution.

Can someone help me?
Re: Howto: Build a new Debian kernel with LED support
July 30, 2012 10:05PM
cyb,

You could download davygravy's kernel deb for 3.1.9 and use his config
http://ppl.ug/cnl1R63ZOBM/

Note: In the linked post, I compiled natively on the Pogoplug E02. And leaving out "-arch armel" parameter works OK as mentioned.

-bodhi
cyb
Re: Howto: Build a new Debian kernel with LED support
July 31, 2012 01:47PM
Thanks bodhi, but using other configs didn't work either.

The problem seems to be that make-kpkg no longer recognizes "armel" as a valid parameter as stated here. I could compile it now by using following compile command:
DEB_HOST_ARCH=armel fakeroot make-kpkg --rootcmd fakeroot --arch arm  --cross-compile arm-none-linux-gnueabi- -j 4 --append-to-version=-dockstar --revision=1.1 --initrd kernel_image

But I'm not sure if the used architecture is correct for the dockstar at the end. At least I couldn't get any kernel booting yet.

Could someone confirm the error or confirm that the compile command gives the correct kernel?
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: