Page 1 of 1

/dev/uleds problem when executing a C program on SAMA5D27-SOM1-EK1 board

Posted: Fri Aug 23, 2019 3:45 pm
by Gaston

I am using sama5d27-som1-ek1 embedded board which i build for it Linux image operating system and a cross compiler with YOCTO project.

I wanted to test a C code on my board. This code creates a new userspace LED class device and monitors it. A timestamp and brightness value is printed each time the brightness changes. I compiled it with the corss compiler but when i tried to run it, it tells me:
Failed to open /dev/uleds: No such file or directory
When i check /dev directory for the sama5 board I can't find uleds. I think that this is the problem. Do you have any suggestions ?

This is the code: ... /uledmon.c

I run the code tapping: ./uledmon.c red
I did not change anything from the code