[Soekris] net48xx Error LED and detecting a 48xx under Linux
Chris Boot
bootc at bootc.net
Fri Jul 7 21:26:24 UTC 2006
Hullo,
Yep, I'm using scx200_gpio already, and as long as the error LED is accessed
using minor 20 on the 4826 (I know it is on the 4801) then I'm doing well! :-)
If someone can confirm the above I'll rename my driver net48xx_led. Should be
making its way to linux-kernel and here shortly.
Now if only there was a way of detecting a net48{01,26}...
Chris
Joshua ChaitinPollak wrote:
> Ah, I see! Well, that seems like a worthy effort! I'm not sure about the
> differences between the different boards, but I do know that the
> existing GPIO/LED driver works on the net4526, and I believe the same
> driver also works for the 4801 series, so you might take a look at that!
>
> On Jul 7, 2006, at 5:10 PM, Chris Boot wrote:
>
>> Hi there,
>>
>> Linux has drivers for the GPIOs yes, but it doesn't have a driver for
>> the new LEDs class system in Linux 2.6.17 and up. With this system the
>> kernel can attach triggers to LEDs, like hard disk activity, a plain
>> old timer, or fancy stuff like a 'heartbeat' type flashing and so on.
>> I'm writing a driver to do just that. I'm just compiling the code I've
>> written to give it a shot, but at the moment it's all hard-coded and
>> assumes a net4801.
>>
>> Chris
>>
>> Joshua ChaitinPollak wrote:
>>> Linux and FreeBSD already have drivers for the LED and GPIO pins.
>>> Are you trying to do something different?
>>> On Jul 7, 2006, at 3:55 PM, Chris Boot wrote:
>>>> Hi all,
>>>>
>>>> I'm planning on writing an LED class driver for the net4801 error
>>>> LED, so just
>>>> wanted to get more information about a few things.
>>>>
>>>> Which Soekris devices have the error LED mapped to the same GPIO
>>>> pin as the
>>>> 4801? Is it just the 4801 or does the 4826 work in a similar
>>>> manner? What about
>>>> the 45xx series?
>>>>
>>>> Is there a way of detecting what type of Soekris machine we're
>>>> running on? It
>>>> would be nice to write a proper probe routine for the functionality
>>>> since we
>>>> don't want to randomly twiddle GPIOs on non-Soekris devices. I've
>>>> looked into
>>>> DMI but that doesn't seem to exist. Any ideas?
>>>>
>>>> Many thanks,
>>>> Chris
>>>>
>>>> --Chris Boot
>>>> bootc at bootc.net
>>>> http://www.bootc.net/
>>>> _______________________________________________
>>>> Soekris-tech mailing list
>>>> Soekris-tech at lists.soekris.com
>>>> http://lists.soekris.com/mailman/listinfo/soekris-tech
>>>>
>>
>>
>> --Chris Boot
>> bootc at bootc.net
>> http://www.bootc.net/
>>
>
> --Joshua ChaitinPollak
> Software Engineer
> Kiva Systems
>
>
--
Chris Boot
bootc at bootc.net
http://www.bootc.net/
More information about the Soekris-tech
mailing list