Queries related to PRU drivers
nilhoel1 at gmail.com
Wed Jan 22 08:11:10 UTC 2020
On Tue, 21 Jan 2020 at 18:06, Utkarsh Rai <utkarsh.rai60 at gmail.com> wrote:
> I have been waiting for my JTAG to arrive so that I can debug mmap
> related issues, meanwhile I have been going through the implementation of
> the PRU drivers on freebsd and linux and have few questions.
> 1. This
> method will fail without a file in /dev, how are the drivers registered
> in /dev in rtems?
Yes you are right, the pruss devices need to be registered in /dev.
Rtems-libbsd uses a FileDeviceTree (FDT) to map the devices on the board
and the Pruss driver should attach during boot.
You can read here
drivers are attached in libbsd.
Also take a look at the rtems documentation here
Also you need a FDT from the BSD repository, and load it via uboot with
The actual driver is found here
> 2. As far as I could understand freebsd uses uio framework for
> communication between PRU and the kernel , how is that implemented for the
> RTEMS ?
When the devices are registered you use the code you linked in you first
Basically the devices in /dev are hadeled like files but the driver links
the file operations to other driver related functions.
> 3. On a side note, building rtems application through waf is very erratic
> on my system( waf configure at times fails with 'could not find
> <machine/rtems-bsd-sysinit.h>' header) . What other build system can be
> useful for building rtems applications?
I'am sorry I can't help you with this one, since I only know about the waf
> I am sorry if my questions seem a bit naive, I am new to open source
> development and I would be grateful for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel