On Tuesday 01 April 2008 01:23:21 pm dAm2K wrote:
> > Has anyone gotten GPIO to work on this hardware under Linux?
>
> Yes. Have you tried this one: http://www.meduna.org/sw_gpio_en.html
> You need a 2.6 kernel without CONFIG_SCx200 and CONFIG_SCx200_GPIO
>
> Ciao, Dino.

Problem solved.  The stock cs5535_gpio module does the job.  One problem was 
that I was using GPIO20 while the net5501 appears to have the error LED on 
GPIO6.  To access the other GPIO pins one can presumably use other minor 
number for the device file though I haven't tested this.

For LED support run:
        modprobe cs5535_gpio major=253 mask=0xffffffff
        mknod /dev/error_led c 253 6

To turn the LED on:
        echo 1 > /dev/error_led

To turn the LED off:
        echo 0 > /dev/error_led

For read the temperature on the net5501 install the patched module that I 
posted and run:
        cat /proc/driver/soekris_temp

-- 
Alex Hajnal
Network Administrator
DataSynapse
Voice: 212-204-5858
Mobile: 347-753-4941

View the DataSynapse privacy statement:
http://www.datasynapse.com/emailprivacy.html
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to