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 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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".

Leave a Comment

Please sign in to add a comment. Not a member? Join today