Loading PRU overlay causes BBB to lock

62 views
Skip to first unread message

Damon Kelly

unread,
Dec 13, 2016, 10:37:47 PM12/13/16
to BeagleBoard
I'm having problems with my PRU overlay, I think.

I updated my BBB to beaglebone 3.8.13-bone79, and am now getting very odd behavior. It used to work, but I'm embarrassed to say I can't remember which version that was -- it was quite a while ago.

After manually loading my overlay to activate the PRU, the BBB dramatically slows down, and responds to commands like this:

-bash: /sbin/reboot: Input/output error

I do not have much experience with Linux.
My basic question is where do I start looking for the problem?
What things should I check?


Cheers,
Damon

Greg

unread,
Dec 14, 2016, 7:39:49 AM12/14/16
to BeagleBoard
A couple of commands in a shell might help you get going:

lsmod

The above command will tell you which kernel modules are loaded.  If you are using PRU, you probably want to have one or more related modules.
Run this before you add the overlay.  Do you know if you are using the RemoteProc or UIO framework?

Also the command

dmesg

You probably want to use

dmesg | less

and with the above you can use the letter f (page forward) b (page backward) and q for quit, as this log file is quite long.

dmesg will show you the kernel log which will possibly help.  Assuming you can look at it at all after loading the overlay!

I'm not sure if the 3.8 version distributions require a change to the Device Tree to get a particular PRU framework.
The newest version 8 Debian definitely do.

You need to provide more details for sure.  What is it you were doing before which worked?

Greg

TJF

unread,
Dec 14, 2016, 11:40:03 AM12/14/16
to BeagleBoard
Hi Damon!

Kernel 3.8.13-bone79 is uio_pruss only (no remoteproc).

Am Mittwoch, 14. Dezember 2016 04:37:47 UTC+1 schrieb Damon Kelly:
-bash: /sbin/reboot: Input/output error

You executed the reboot command and the binary /sbin/reboot couldn't access some hardware (perhaps a CPU ball). Obviously the device tree mixes up some configurations.

First, try to re-compile your device tree source. There were changes in the device tree compiler around that version, so
use the dtc version of the new kernel! If this doesn't help, then post your source here.

Regards

Greg

unread,
Dec 14, 2016, 1:14:34 PM12/14/16
to BeagleBoard
TJF, so what is the best way to update the dtc?

I've used this in the past:


More specifically the script:

dtc-overlay.sh

However, I'm not sure this is the appropriate method in this case.
If not, what is?  An apt-get install ...?

Greg

TJF

unread,
Dec 14, 2016, 1:21:46 PM12/14/16
to BeagleBoard
Am Mittwoch, 14. Dezember 2016 19:14:34 UTC+1 schrieb Greg:
TJF, so what is the best way to update the dtc?

The new version should come with your update. Just re-compile your source on the new kernel installation:

sudo dtc -@ -I dts -O dtb   -o /lib/firmware/NAME_OF_YOUR_SOURCE.dtbo  /PATH_TO_YOUR_SOURCE/NAME_OF_YOUR_SOURCE.dts

Regards

TJF

unread,
Dec 14, 2016, 1:33:53 PM12/14/16
to BeagleBoard
@Greg:

Sorry, I didn't answer your question.


Am Mittwoch, 14. Dezember 2016 19:14:34 UTC+1 schrieb Greg:
TJF, so what is the best way to update the dtc?
...
An apt-get install ...?

sudo apt-get install device-tree-compiler

 Regards

William Hermans

unread,
Dec 14, 2016, 4:37:06 PM12/14/16
to beagl...@googlegroups.com
You should not have to upgrade the device tree compiler( dtc ). As each kernel version, as provided with the latest images have the proper device tree compiler. However, assuming, running Wheezy, then upgrading to a newer kernel( 3.8.x to 4.x ) the device tree compiler would have to be upgraded at this time. But it is also worth nothing that it's not only easier, but better to just download and burn a new image at this time. As there can be multiple problems when upgrading from a 3.8.x kernel, to 4.x on older Wheezy images.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fc982f79-df4b-437f-9950-504360f54c5a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages