[meta-xilinx] system.bit from digilent

Edward Vidal vidal.develone at gmail.com
Tue Feb 25 08:59:51 PST 2014


Hello,
I was able to get the myled.c to compile with the following chgs.
 diff myled.c ~/compile1/Tutorial/drivers/myled.c
1d0
< #include <linux/slab.h>
118d116
<
126c124
< static int  myled_probe(struct platform_device *pdev)
---
> static int __devinit myled_probe(struct platform_device *pdev)
164c162
< static const struct of_device_id myled_of_match[]  = {
---
> static const struct of_device_id myled_of_match[] __devinitconst = {
180,181c178,179
<     .remove = (myled_remove),
<     .shutdown = (myled_shutdown)
---
>     .remove = __devexit_p(myled_remove),
>     .shutdown = __devexit_p(myled_shutdown)

Rationale for removing several items.
CONFIG_HOTPLUG is going away as an option so __devinitconst is no
longer needed.
Is anything replacing these?
Why would kernel 3.12 need #include <linux/slab.h> and kernel 3.6 not
needed?
After loading the module with
insmod /lib/modules/`uname -r`/myled.ko
I see that the myled is loaded.
lsmod
Module                  Size  Used by
myled                   2999  0

When echo 0x0F > /proc/myled no led light up.
Any and all help is appreciated.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20140225/c22ee080/attachment.html>


More information about the meta-xilinx mailing list