How to use drivers in yocto

How to use drivers in yocto

..I follow the guide but it does not work.I can not find the directory(e.g. /sys/class/leds/zlge6x5c:red:0/) provided.(I have used insmodzlge6x5c-leds.ko and done FPGA.)

5 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

you can try this command ins SDK:
first :modprobe zlge6x5c-mfd modprobe zlge6x5c-leds
second :

1

8LED

2

LED

/sys/class/leds/zlge6x5c:red:0/

/sys/class/leds/zlge6x5c:red:1/

/sys/class/leds/zlge6x5c:red:2/

/sys/class/leds/zlge6x5c:red:3/

/sys/class/leds/zlge6x5c:red:4/

/sys/class/leds/zlge6x5c:red:5/

/sys/class/leds/zlge6x5c:red:6/

/sys/class/leds/zlge6x5c:red:7/

LEDbrightness0LED0

0LED

#
echo 0 > /sys/class/leds/zlge6x5c:red:0/brightness

0LED

#
echo 1 > /sys/class/leds/zlge6x5c:red:0/brightness

Yes, bestboyxie is correct.You need "modprobe zlge6x5c-mfd" before "modprobe zlge6x5c-leds".

it's where toinitializeaddress!thanks a lot !
by the way, how can we re-compile drivers ? I just can't find some headers (eg..platform_divice.h)

Best Reply

Do you mean building your own driver?If yes, you can seehttp://software.intel.com/zh-cn/articles/EDSC2012-Training/"Developing Kernel Module on Yocto".

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen