LIBPRUIO

228 views
Skip to first unread message

Dario Guaman

unread,
Jul 7, 2017, 10:41:42 AM7/7/17
to BeagleBoard
Hi, does anyone know if libpruio works also for this kernel version?   (http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/index.html)


regards

Robert Nelson

unread,
Jul 7, 2017, 11:06:47 AM7/7/17
to Beagle Board, datr...@gmail.com
On Fri, Jul 7, 2017 at 9:41 AM, Dario Guaman <datr...@gmail.com> wrote:
Hi, does anyone know if libpruio works also for this kernel version?   (http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/index.html)



For libpruio you need to switch the uio pru option, for that kernel see this note:


Regards,

--
Robert Nelson
https://rcn-ee.com/

Dario Guaman

unread,
Jul 7, 2017, 12:37:45 PM7/7/17
to BeagleBoard, datr...@gmail.com
Thanks Robert, 

But /boot/uEnv.txt it shows this



Then, Is PRU  enabled by default?


Regards

Robert Nelson

unread,
Jul 7, 2017, 12:41:26 PM7/7/17
to Beagle Board, Dario Guaman
On Fri, Jul 7, 2017 at 11:37 AM, Dario Guaman <datr...@gmail.com> wrote:
Thanks Robert, 

But /boot/uEnv.txt it shows this



Then, Is PRU  enabled by default?


it's setup for ti's remoteproc_pruss, so you need to:

#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo

and:

uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo

Regards,

Jason Kridner

unread,
Jul 7, 2017, 1:29:31 PM7/7/17
to beagl...@googlegroups.com, Dario Guaman
I love how easy it is to switch now, but maybe I should submit a patch to convert it to rproc. I did a simplified tutorial on a PRU hello world with rproc: https://gist.github.com/jadonk/2ecf864e1b3f250bad82c0eae12b7b64
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYihHuZ4ASMFZs8vztrSf5%3DpBUf%2BBfkNY2-%3Dk%3D9a9qt9Gg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Dario Guaman

unread,
Jul 7, 2017, 3:38:01 PM7/7/17
to BeagleBoard, datr...@gmail.com
Hello, I am getting some issues to setup the libpruio to work with C. I am following this tutorial http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/_cha_preparation.html

I' have enabled the PRU


and I am trying to install libpruio following the step 3 from the tutorial but i got this error


I am doing some wrong?

Still, Is the tutorial working for this kernel?


Regards

Dario

Robert Nelson

unread,
Jul 7, 2017, 3:44:13 PM7/7/17
to Beagle Board, Dario Guaman
On Fri, Jul 7, 2017 at 2:38 PM, Dario Guaman <datr...@gmail.com> wrote:
Hello, I am getting some issues to setup the libpruio to work with C. I am following this tutorial http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/_cha_preparation.html

I' have enabled the PRU


and I am trying to install libpruio following the step 3 from the tutorial but i got this error


I am doing some wrong?

Still, Is the tutorial working for this kernel?


You can't mix and match u-boot/kernel overlays, in /boot/uEnv.txt

add: 

uboot_overlay_addr4=/lib/firmware/libpruio-0A00.dtbo

Regards,

TJF

unread,
Jul 8, 2017, 2:46:44 PM7/8/17
to BeagleBoard, datr...@gmail.com
Hi Dario!

Once you get the dtbo running, you'll find out that neither pinmuxing nor PWM output from PWMSS will work with libpruio-0.2. Some paths in sysfs changed between kernel versions 3.8 and 4.x (related to pinmuxing). And the clock setting for the PWMSS changed. After all, libpruio-0.2 will work best with 3.8 kernel versions.

I can provide my current source libpruio-0.4. It's prepared for 3.8 and 4.x kernel sysfs, has some more features (ie. TIMER and QEP). Software works OK, but docu isn't finished yet. In order to  get PWM working, it needs some changes in the default device tree. And you'll have to compile the source on your system. (I can provide email support in case of trouble.)

Let me know if you're interested.

Regards

Dario Guaman

unread,
Jul 9, 2017, 10:09:18 PM7/9/17
to BeagleBoard, datr...@gmail.com
Yes, I am interested, I will work with the ADC converter, but I would also like to use the PWM output

Thanks

Darío

TJF

unread,
Jul 10, 2017, 3:40:38 AM7/10/17
to BeagleBoard, datr...@gmail.com
OK, I uploaded the (experimental) stuff at https://github.com/DTJF/libpruio.

Find some hints on preparation in file https://github.com/DTJF/libpruio/blob/master/src/doc/_2_preparation.md.

I guess the package installation wont work, so you should follow the guide for experts (section Tools {#SecTools} and following).

Please give some feedback (trouble or success).

Regards

TJF

unread,
Jul 10, 2017, 3:45:23 AM7/10/17
to BeagleBoard, datr...@gmail.com
I just found out that the instructions for getting the PWM output is missing.

Please do the installation and package building first. Once done, I'll explain how to adapt the default device tree for PWMSS.

Regards

Jaime Carrillo

unread,
Nov 22, 2017, 7:14:59 AM11/22/17
to BeagleBoard
Hi,

I am interested in use libpruio, and I would like to know if you were able to use it in that kernel version.
I will work with the ADC too, so maybe you can give some advice to install the libpruio and how to use it.

PD: I'm using this kernel version:  "Linux beaglebone 4.4.82-bone19 #1 Mon Aug 14 21:56:51 UTC 2017 armv7l GNU/Linux"

TJF

unread,
Nov 22, 2017, 10:02:46 AM11/22/17
to BeagleBoard
Hi Jaime!

In one project I've libpruio-0.4 running on

 4.4.22-bone13

It should be possible to run it (version 0.4) on your kernel version as
well. But it's a mess to install on 4.x kernel versions (recompiling of
inertial device tree is necessary to get all PWM working). And I didn't
finish the docu yet.

So if you want a precompiled binary and complete docu, you'll have to
switch to a 3.8 kernel version with libpruio-0.2.

Otherwise, you can download and compile the libpruio-0.4 source here

  https://github.com/dtjf/libpruio

Regards.
Reply all
Reply to author
Forward
0 new messages