[Voyage-linux] re: Alix 3C3 and LEDs

Bart Jooris (spam-protected)
Tue Aug 26 19:28:37 HKT 2008


Hi Sancho,

I create a voyage-master in a vm which is my "development environment 
for voyage".
-create a new VM (with IDE-disk and NAT...)
-let it boot the voyage-live-cd iso and install voyage in the vm
-then create the "development environment" by installing gcc, g++, ...
-get the sources and build them (also works for kernel adj., get sources 
by apt-get install kernel-source-...)
-copy bins to target box

Maybe it is easier by just sending you the bins, as after running one of 
them the leds-alix module will work.
In the zip there are 2 versions:
-build of the previous source
-build of a 'more' silent one :-) (sources inside the zip)

Hope it works for you,

Cheers,

Bart


Sancho wrote:

> Bart,
>
> thanks a lot for the effort.
> Anyhow, I am unable to compile the source - I end up with errors like 
> this:
> testled.c:19:20: error: asm/io.h: No such file or directory
> testled.c:21:19: error: stdio.h: No such file or directory
> testled.c:22:23: error: sys/ioctl.h: No such file or directory
> testled.c: In function 'wrapped_outl':
> testled.c:33: warning: incompatible implicit declaration of built-in 
> function 'printf'
> testled.c: In function 'main':
> testled.c:41: warning: incompatible implicit declaration of built-in 
> function 'printf'
>
> I am pretty sure I am missing some libraries for the compilation, but 
> I have no idea what. I installed gcc and cpp-4.3, that's about it.
> Please, advice.
>
> Thanks again.
>
> Sancho
>
> Bart Jooris wrote:
>
>> Hi Joel, Sancho,
>>
>> Maybe you still have the led problem on the ALIX 3C3?
>> I Checked the CS5536 datasheet and seems that the chip is not rightly 
>> configured to
>> use the leds-alix without any reconfig.
>>
>> on my machines after boot (with still old bios (before July 2008))
>>
>> led1 was not set as output
>> led2 was configured as input...
>> led3 was configured to aux1
>>
>> see the testled output (check if "before" and "after" differ) on your 
>> machine.
>>
>> After running testled, leds-alix should work.
>>
>> Cheers,
>>
>> Bart Jooris
>> Researcher
>> IBBT-IBCN research group-Ghent University
>>
>>
>>
>>
>> Joel Carter wrote:
>>
>>> Hi Sancho.
>>>
>>> I posed this question awhile ago to the list and never got a 
>>> resolution for getting the LED's working on my 3c3. I have to agree 
>>> that it must be something to do with the different BIOS since I also 
>>> have a 3c1 and just tried it as suggested in the Voyage README and 
>>> it worked perfectly:
>>>
>>> $modprobe leds-alix
>>> $echo 1 > /sys/class/leds/alix\:2/brightness
>>>
>>> Joel.
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> _______________________________________________
>>> Voyage-linux mailing list
>>> Voyage-linux at list.voyage.hk
>>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>>  
>>>
>>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alix3c3leds.zip
Type: application/x-zip-compressed
Size: 8868 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20080826/40cf1deb/attachment.bin>


More information about the Voyage-linux mailing list