<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2020 at 9:15 PM furkan bodur <<a href="mailto:furkanbdr@gmail.com">furkanbdr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(80,0,80)"><div style="color:rgb(34,34,34)">Firstly thanks for replies,</div><div style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">As I said there is no input folder in /dev path here is the output,</div><div dir="ltr" style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">SHLL [/] # ls -las /dev/input                                                   </div><div dir="ltr" style="color:rgb(34,34,34)">/dev/input: No such file or directory </div><div dir="ltr" style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">Here is what I did for use libbsd and evdev, </div><div dir="ltr" style="color:rgb(34,34,34)">I builded rtems-freebsd with this,</div><div dir="ltr" style="color:rgb(34,34,34)">$ ./waf configure --prefix="$HOME/development/rtems/5" --rtems-bsps=arm/beagleboneblack </div><div dir="ltr" style="color:rgb(34,34,34)">--buildset=buildset/default.ini </div><div dir="ltr" style="color:rgb(34,34,34)">$ ./waf</div><div dir="ltr" style="color:rgb(34,34,34)">$ ./waf install</div><div dir="ltr" style="color:rgb(34,34,34)"><br></div></div></div></div></div></blockquote><div>Commands are correct. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(80,0,80)"><div dir="ltr" style="color:rgb(34,34,34)"></div><div dir="ltr" style="color:rgb(34,34,34)">Even so, when I realize that there is no input.h or evdev.h file in rtems includes , I changed some values in the libbsd.py file. Here the things I changed,</div><div dir="ltr" style="color:rgb(34,34,34)">I added 'freebsd/sys/dev' and 'freebsd/sys/dev/evdev' paths to include-paths.</div></div></div></div></div></blockquote><div>evdev is already included in EVDEV section in libbsd.py, I don't think it'll be required to add it here. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(80,0,80)"><div dir="ltr" style="color:rgb(34,34,34)">I added 'freebsd/sys/dev/evdev' path to header-paths.</div></div></div></div></div></blockquote><div>Yes, if evdev.h is used in the application, this is the right place to add it.</div><div>Can you please send a patch for this? :) </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(80,0,80)"><div dir="ltr" style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">After that, I did waf again and here is the outputs;</div><div dir="ltr" style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">$ ./waf</div><div dir="ltr" style="color:rgb(34,34,34)">...</div><div dir="ltr" style="color:rgb(34,34,34)">[1519/1939] Compiling freebsd/sys/dev/evdev/evdev.c</div><div dir="ltr" style="color:rgb(34,34,34)">...</div><div dir="ltr" style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">./waf install</div><div dir="ltr" style="color:rgb(34,34,34)">...</div><div dir="ltr" style="color:rgb(34,34,34)">+ install /home/furkan/development/rtems/5/arm-rtems5/beagleboneblack/lib/include/dev/evdev/evdev.h (from freebsd/sys/dev/evdev/evdev.h)</div><div dir="ltr" style="color:rgb(34,34,34)">+ install /home/furkan/development/rtems/5/arm-rtems5/beagleboneblack/lib/include/dev/evdev/input-event-codes.h (from freebsd/sys/dev/evdev/input-event-codes.h)</div><div dir="ltr" style="color:rgb(34,34,34)">+ install /home/furkan/development/rtems/5/arm-rtems5/beagleboneblack/lib/include/dev/evdev/input.h (from freebsd/sys/dev/evdev/input.h)</div><div dir="ltr" style="color:rgb(34,34,34)">...</div><div dir="ltr" style="color:rgb(34,34,34)"><br></div><div dir="ltr" style="color:rgb(34,34,34)">I'm not sure if this is the right way to use evdev. This is how my application compiles without errors but still there is no /dev/input file.</div></div></div></div></div><br></blockquote><div>As mentioned above, the steps are right and they need to be pushed to rtems-libbsd, please send</div><div>a patch for review.</div><div><br></div><div>There are a few more steps to get your app running. In rtems-littlevgl:</div><div>1. In lvgl.py add this after line 43:</div><div>    mk_files.append('lv_drivers/display/<a href="http://display.mk">display.mk</a>')</div><div>2. In lv_drivers/indev/evdev.c:</div><div>    Change the included headers to match the freebsd headers. Like, linux/input.h to evdev/input.h and try</div><div>    to build it. If it builds fine, please test it with your app and see if it's working.</div><div><br></div><div>Best regards,</div><div>Vijay</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org" target="_blank">vijay@rtems.org</a>>, 6 Nis 2020 Pzt, 09:43 tarihinde şunu yazdı:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2020 at 5:00 AM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2020-04-06 06:17, furkan bodur wrote:<br>
> Hello everyone,<br>
> I am trying to make an simple HMI system . I am using LittlevGL with BSD <br>
> framebuffer. Thanks to Vijay, I made a lot of progress, but I can't <br>
> figure it out how to use touchscreen or any input devices. I followed <br>
> LVGL docs and tried to work with evdev drivers but it doesn't work.<br>
> <br>
> I used input.h and other necessary headers from rtems-libbsd and my app <br>
> successfully compiled but when I run it on the Beagle Black, I am <br>
> getting "unable open evdev interface:: No such file or directory" error <br>
> in serial screen.<br>
> <br>
> I checked the files in Serial screen and noticed that there is no input <br>
> folder in the /dev directory, as in Linux systems. I think that's the <br>
> reason of the error, but I don't know where I made the mistake.<br>
> <br>
> Any suggestions for me to use evdev properly?<br>
<br>
I can see there is evdev code in libbsd so at least it is present. Are <br>
you able to confirm the evdev code is being built and linked into your <br>
application?<br>
<br>
On FreeBSD I have ...<br>
<br>
$ ls -las /dev/input<br>
total 1<br>
1 dr-xr-xr-x   2 root  wheel   512 Mar 21 08:22 .<br>
1 dr-xr-xr-x  11 root  wheel   512 Mar 21 08:22 ..<br>
0 crw-------   1 root  wheel   0xc Mar 21 08:22 event0<br>
0 crw-------   1 root  wheel  0x29 Mar 21 08:22 event1<br>
0 crw-------   1 root  wheel  0x8f Mar 22 13:42 event2<br>
0 crw-------   1 root  wheel  0xa3 Mar 21 08:23 event4<br>
<br>
but I am not sure how they were created.<br><br></blockquote><div> </div><div>Hi Furkan,</div><div><br></div><div>Thanks for posting about your project in the list, good to know that you made progress with it.</div><div> Please check the command that Chris mentioned. There's evdev code in libbsd and is enabled</div><div>in the default build as well,  so it's supposed to be there. If we're lucky, the only thing that needs</div><div>to be done in order to run lvgl input is to port lv_drivers input to BSD. Currently, it uses Linux</div><div>headers and codes. I think we'll just have to change the header includes in lv_drivers/indev/evdev.c</div><div>and if we're lucky, it'll work.</div><div><br></div><div>Best regards,</div><div>Vijay</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Chris<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>