You are not logged in.

#1 2013-12-20 14:35:16

eanderalx
Member
From: Berlin/Germany
Registered: 2010-01-10
Posts: 20
Website

[SOLVED] Alix LED Support for Arch

I've bought an Alix 2D13 to experiment with it.

Installation an serial console work perfect but I have problems controlling the leds.

For Debian based systems there is documentation for an kernel module named leds-alix, unfortunately it isn't inside our kernel. Compiling the module from its sources doesn't worked.

modprobe: ERROR: could not insert 'leds_alix': Unknown symbol in module, or unknown parameter (see dmesg)

[ 1831.962904] leds_alix: module license 'unspecified' taints kernel.
[ 1831.962927] Disabling lock debugging due to kernel taint
[ 1831.963209] leds_alix: Unknown symbol platform_driver_unregister (err 0)
[ 1831.963303] leds_alix: Unknown symbol led_classdev_suspend (err 0)
[ 1831.963382] leds_alix: Unknown symbol led_classdev_unregister (err 0)
[ 1831.963463] leds_alix: Unknown symbol platform_device_unregister (err 0)
[ 1831.963568] leds_alix: Unknown symbol __platform_driver_register (err 0)
[ 1831.963648] leds_alix: Unknown symbol platform_device_register_full (err 0)
[ 1831.963728] leds_alix: Unknown symbol led_classdev_resume (err 0)
[ 1831.963808] leds_alix: Unknown symbol led_classdev_register (err 0)

Controlling the leds via gpio also don't work.

Anyone an Idea or perhaps an solution?. I think i'm not the only one with an alix.

Last edited by eanderalx (2013-12-21 20:10:48)


"Man kann ein Problem nicht mit den gleichen Denkstrukturen lösen, die zu seiner Entstehung beigetragen haben." (Albert Einstein)
"A problem cannot be solve at the same level of thinking at which it was created." (Albert Einstein)

Offline

#2 2013-12-20 15:05:00

develop7
Member
Registered: 2013-12-20
Posts: 12

Re: [SOLVED] Alix LED Support for Arch

hmm, you might need to rebuild the drivers

Last edited by develop7 (2013-12-20 15:18:25)

Offline

#3 2013-12-20 16:35:25

eanderalx
Member
From: Berlin/Germany
Registered: 2010-01-10
Posts: 20
Website

Re: [SOLVED] Alix LED Support for Arch

I've build (make and make install) it a few minutes previously on the same system where I have tried to load the module.

I used these sources: http://archive.ubuntu.com/ubuntu/pool/u … rig.tar.gz

Last edited by eanderalx (2013-12-20 16:37:13)


"Man kann ein Problem nicht mit den gleichen Denkstrukturen lösen, die zu seiner Entstehung beigetragen haben." (Albert Einstein)
"A problem cannot be solve at the same level of thinking at which it was created." (Albert Einstein)

Offline

#4 2013-12-21 18:11:15

axs
Member
Registered: 2009-01-23
Posts: 71
Website

Re: [SOLVED] Alix LED Support for Arch

Can you show your build and insmod commands?
I just tried it myself, it all works well after adding #include "linux/module.h" to the .c file.

make V=1 CC=alix-gcc KERNEL_VERSION=3.4.8 KERNEL_DIR=$ALIX/linux/src/linux-3.4.8

(scp leds-alix.ko to the target)

insmod /lib/modules/3.4.8/kernel/drivers/leds/leds-alix.ko

It's not Arch there and I have a much older board (2C3) but I don't think it makes any difference.

Last edited by axs (2013-12-21 18:11:33)

Offline

#5 2013-12-21 20:00:44

eanderalx
Member
From: Berlin/Germany
Registered: 2010-01-10
Posts: 20
Website

Re: [SOLVED] Alix LED Support for Arch

The include was missing, now the make command in the Makefile which is included in the archiv is working.

I can load the module and its working fine.

Thanks.


"Man kann ein Problem nicht mit den gleichen Denkstrukturen lösen, die zu seiner Entstehung beigetragen haben." (Albert Einstein)
"A problem cannot be solve at the same level of thinking at which it was created." (Albert Einstein)

Offline

Board footer

Powered by FluxBB