PocketBeagles are Unstable

987 views
Skip to first unread message

Graham

unread,
Nov 24, 2017, 9:55:56 AM11/24/17
to BeagleBoard
I have two PocketBeagles.

Both are exhibiting random reboots, two to four times per day. No 
indication in syslog as to any cause or problem. No pattern to 
the reboots. Can happen while I an logged into the PB editing python 
scripts with nano, or can happen in the middle of the night when 
absolutely nothing is happening.

Both are powered from Vin, running from a trusted lab bench supply 
with plenty of reserve current. I have added extra bulk capacitance on 
the Vin input, and also switched lab bench supplies to make sure it 
was not a power supply problem.

So, no USB-gadget interface running.
No modifications to hardware or kernel. No modifications to the 
system software.

One is running the Oct 10 IoT release version
bone-debian-9.2-iot-armhf-2017-10-10-4gb.img
Linux PB1 4.4.91-ti-r133 #1 SMP Tue Oct 10 05:18:08 UTC 2017 armv7l

The other is running the Stretch IoT weekly snapshot from 11-19
bone-debian-9.2-iot-armhf-2017-11-19-4gb.img
Linux beaglebone 4.9.61-ti-r76 #1 SMP PREEMPT Mon Nov 13 20:24:26 UTC 2017 armv7l

Both are running USB2 to Ethernet dongles on USB Port1 so I can have 
remote Ethernet access. To make sure it was not the USB-to-Ethernet 
drivers, I ran one for a day, without the Ethernet interface, just 
watched it on the UART0 Console Port, no programs running,
and it still does the same thing.

I think this should be easy to reproduce.

Same/similar symptoms to the random reboots we were having on the BBB a year or two ago.

--- Graham

==

acheesehead

unread,
Nov 25, 2017, 12:13:30 PM11/25/17
to BeagleBoard
A likely culprit is the power supply.

evilwulfie

unread,
Nov 25, 2017, 12:15:25 PM11/25/17
to beagl...@googlegroups.com
LOL  With this email coming from Graham I seriously doubt it.
--
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/8f6da7ed-4957-43f1-8b3e-f22a5e878af8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Graham

unread,
Nov 25, 2017, 12:45:56 PM11/25/17
to BeagleBoard
Same 'Stretch'  bone-debian-9.2-iot-armhf-2017-11-19-4gb.img
running on uSD card on a Rev C BeagleBone Black running on 
the same power supply is stable like a rock.

--- Graham

==


Graham

unread,
Dec 3, 2017, 10:21:33 AM12/3/17
to BeagleBoard
I'll try again.

The PocketBeagle, when powered only by the Vin input  (P1-pin1) is unstable.
This is the power supply input, normally assigned to the barrel jack in the BBB, or the AC adapter input in the TI docs.

Not to be confused with the Vi input (P1-pin7) which is connected to Vusb0 and Vusb1 on the PocketBeagle.

I have found that when running with Vin and Vi inputs strapped together, the problem does not occur.

I will try a run with the power on Vi only and see what happens.

During both test runs, there was a USB2-to-Ethernet adapter on USB1, but to make sure that the Ethernet driver is not the problem, I have run a PocketBeagle, powered from Vin with nothing else connected than a serial cable on UART0 console, and the unit still behaves the same.

My opinion is that it is either a hardware or configuration problem with the PMIC.

================================================================
Stability Test Run - DEC 02
Both PocketBeagles are powered from the same lab-bench supply, via Vin.
Good regulation at 5.00 Volts and plenty of current available from the lab-bench supply.

=======
Time is UTC, defined as the time that systemd-timesyncd  resyncs during the reboot.

----
PocketBeagle-2
Linux beaglebone 4.9.61-ti-r76 #1 SMP PREEMPT Mon Nov 13 20:24:26 UTC 2017 armv7l GNU/Linux

Start of test/manual reboot at
Dec  2 21:52:18 UTC

Autonomous reboots 
Dec  3 04:42:20 
Dec  3 04:53:18 
Dec  3 06:01:06 
Dec  3 06:03:45 
Dec  3 12:18:47 
Dec  3 12:30:04 

End of test:
Sun Dec  3 13:47:05 UTC 2017

================================================================
PocketBeagle-1
Linux PB1 4.4.91-ti-r133 #1 SMP Tue Oct 10 05:18:08 UTC 2017 armv7l GNU/Linux


Start of test/manual reboot at
Dec  2 21:52:37 UTC

Autonomous reboots at
Dec  3 02:24:55 UTC

End of Test: System had crashed, no lights, No Ethernet connectivity, had to reboot to recover syslogs
Dec  3 13:50:34 

================================================================

mike.ma...@gmail.com

unread,
Dec 4, 2017, 2:23:01 AM12/4/17
to BeagleBoard


On Sunday, December 3, 2017 at 4:21:33 PM UTC+1, Graham wrote:
The PocketBeagle, when powered only by the Vin input  (P1-pin1) is unstable.
This is the power supply input, normally assigned to the barrel jack in the BBB, or the AC adapter input in the TI docs.

Not to be confused with the Vi input (P1-pin7) which is connected to Vusb0 and Vusb1 on the PocketBeagle.

I'm not quite sure but isn't P1/7 the same as VDD on the BBB? In this case you definitely shouldn't use P1/1 for powering the board...
 

Graham Haddock

unread,
Dec 4, 2017, 9:11:42 AM12/4/17
to BeagleBoard
P1-pin7 is the 5V power input normally associated with power coming in the USB connectors.
In the case of the PocketBeagle, it is the input from the USB0 connector.
It can be used as either a 5V input or, if there is power coming in USB port0, as a power output for USB port 1.
It is just a straight connection.

It happens to work fine, and does not seem to have the stability problem I am seeing on P1-pin1.

--- Graham

==

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/8Y5COfcW-Ok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/9de62b40-9e5c-459f-b258-8e500aa43a31%40googlegroups.com.

Jason Kridner

unread,
Dec 13, 2017, 2:05:13 PM12/13/17
to BeagleBoard
Can you generate a plot of the power applied on P1_1? I suspect some additional bulk capacitance might be required to keep it sufficiently stable. Monitoring the RESET# line at the same time as P1_1 would be ideal.

I'll try to reproduce next week. I only ever tested with a bench supply and not for extended durations. Given the similarity to the BeagleBone Black circuit, it doesn't seem so necessary, but let's make sure the input is sufficiently stable as much of the capacitance that was there is now gone.

Graham

unread,
Dec 14, 2017, 4:23:57 PM12/14/17
to BeagleBoard
OK.
I'll be glad to gather any data for you that I can.

I can grab some scope traces of what the power looks like.
I don't have anything that will do 24 hour long captures.

The bench supply I have is well regulated, and quiet, 5 Amp.

I have run two PB (on Vin P1-pin1) from the same supply simultaneously.
The PBs are both rebooting at very different times, randomly, at the rate of three or four times per day.

I will bridge a BBB and some bulk capacitance across the feed, and re-run the experiment.

I am fairly sure this is not an input side power problem.

--- Graham

==

Graham

unread,
Dec 17, 2017, 4:10:10 PM12/17/17
to BeagleBoard
Some further information.

I have been unable to get your latest Stretch 9.3 IoT image to fail and autonomously reboot, when powered by Vin (P1-pin1)
ie.:    " bone-debian-9.3-iot-armhf-2017-12-10-4gb.img"

I am starting an extended test today, and letting two PBs run for the rest of the week, on this version.
Same power supply, no added bulk capacitance on Vin.

Your recommended PB release version 2017-10-10 definitely does randomly reboot when Vin powered, as do all the Stretch 9.2 weeklies up to Dec 03.
that is,
bone-debian-9.2-iot-armhf-2017-10-10-4gb.img 
through
bone-debian-9.2-iot-armhf-2017-12-03-4gb.img

As far as your questions about my bench power supply, noise/ripple on the supply is at floor of scope's ability to measure, ie, < 12 mV.
Regulation of bench supply, less than 10 mV droop from 0.0A to 1.0A
Voltage set at 5.00 Volts, current limiter set at 5A, so out of the circuit.

Adding or deleting bulk capacitance (100 uF tantalum) at P1-pin makes no difference in the behavior.

I am convinced that this is not a supply side power problem, and is some kind of software issue, hopefully already resolved in Stretch 9.3.

--- Graham

==


Robert Nelson

unread,
Dec 17, 2017, 5:08:18 PM12/17/17
to Beagle Board
Hi Graham, what was the kernel on the working and last 'broken" one?

uname -r

Smells like a random change fixed something, i'd like to know what
that was... Such that when i push it mainline (kernel.org)

(it might have been the v4.4.x-ti -> v4.9.x-ti?)

Regards,


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

Jason Kridner

unread,
Dec 17, 2017, 8:00:24 PM12/17/17
to beagl...@googlegroups.com
Thanks a lot for this analysis. I will update the image tomorrow as we try to root source the problem on the old 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...@googlegroups.com.

Graham

unread,
Dec 18, 2017, 10:49:26 AM12/18/17
to BeagleBoard
Looks like I spoke too soon.
Both PB's reset themselves overnight, running Stretch 9.3 IoT.
With the Stretch 9.3 IoT release, it is more like once per day, than the previous four times per day, but it is still happening.
Happens on both 4.4 and 4.9.


To answer Robert's question.
I generally don't touch the kernel on any of my installs, so whatever comes on the image.

bone-debian-9.2-iot-armhf-2017-10-10-4gb.img
Linux beaglebone 4.4.91-ti-r133 #1 SMP Tue Oct 10 05:18:08 UTC 2017 armv7l GNU/Linux
When running from Vin, reboots three or four times (randomly) per day.

Linux PB2 4.9.61-ti-r76 #1 SMP PREEMPT Mon Nov 13 20:24:26 UTC 2017 armv7l
When running from Vin, reboots three or four times (randomly) per day.

bone-debian-9.3-iot-armhf-2017-12-10-4gb.img 
Linux beaglebone 4.9.67-ti-r82 #1 SMP PREEMPT Fri Dec 8 02:39:42 UTC 2017 armv7l GNU/Linux
When running from Vin, reboots approximately once per day.

--- Graham

Pablo Rodriguez

unread,
Jul 26, 2018, 12:50:43 PM7/26/18
to BeagleBoard
Graham,
I'm having the same behavior with the beaglepocket. Random resets and nothing in the logs. Have 3 boards soldered with a  Meanwell IRM-20-5 (4 amps) to Vin pin 1. 
The capacitor at this pin are an electrolitic 440 uf  and three 22 uf ceramic.
#cat rebootDate
Tue Jul 24 11:52:31 -03 2018
Tue Jul 24 15:35:25 -03 2018
Tue Jul 24 16:00:30 -03 2018
Tue Jul 24 16:12:52 -03 2018
Tue Jul 24 19:10:36 -03 2018
Wed Jul 25 00:06:33 -03 2018
Wed Jul 25 07:36:55 -03 2018
Wed Jul 25 09:52:38 -03 2018
Wed Jul 25 10:30:42 -03 2018
Wed Jul 25 11:42:34 -03 2018
Wed Jul 25 12:01:03 -03 2018

At first i thought that the reset were because of the usb modem that was attached, but they persist without the modem. Lot of time spent in this issue.
Very happy to find the workaround of pin1 and pin 7 tied together. Will try it and come back with the results.

Pablo

evilwulfie

unread,
Jul 26, 2018, 1:19:43 PM7/26/18
to beagl...@googlegroups.com
You have WAY too much capacitance on the power supply. remove all the caps and retest.
--
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.

Pablo Rodriguez

unread,
Jul 26, 2018, 2:17:17 PM7/26/18
to beagl...@googlegroups.com
At the beginning there was only one 22 uf cap. Then 2, 3 and finally added the 470 uf.
Always the same results.
Pablo


To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.

--
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/a3082a95-d2d4-310d-5d16-8bd5192fd533%40gmail.com.

Graham Haddock

unread,
Jul 26, 2018, 2:18:55 PM7/26/18
to BeagleBoard
Pablo:
That is consistent with my test results.
The size of the capacitor is not the issue.
--- Graham



You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/8Y5COfcW-Ok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAEObdD1JL4z2dpXpSK3WhQmUzbQEgzbaDUvq%3D9sUCSEeDMgfaQ%40mail.gmail.com.

evilwulfie

unread,
Jul 26, 2018, 2:32:50 PM7/26/18
to beagl...@googlegroups.com
I use the green and the black. Too much capacitance and the ramp up of the power supply is too much and the PMIC can decide not to turn on.
ITs what i noticed one 10uF cap seems to be fine
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/CANN_KV6DseiaPZJ3OEkMasNoSxcK3ofUTGF7h3veoZZ5mAJAKA%40mail.gmail.com.

Graham Haddock

unread,
Jul 26, 2018, 2:43:21 PM7/26/18
to BeagleBoard
evilwulfie:

The PMIC has some timers, and as I remember, the rise time for the initial turn-on to get inside the valid Voltage window (4.5 to 5.5 Volts) is 50 milliseconds,
So the risetime and drive capability of your power supply is also involved in the choice or limitation on the added input capacitor.

If you have a power supply that can charge a 1000 uF capacitor in less than 50 milliseconds, then you can have 1000 uF on the input.

The stability problem is that the PocketBeagle, if only powered from pin 1, which is the same input used for the barrel-jack input in other designs, will spontaneously reboot a few times a day.

It does this with a "perfect" power supply and any added value of input capacitor you choose, so I don't think the input side of the PMIC is involved.

--- Graham

==

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/8Y5COfcW-Ok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.

Pablo Rodriguez

unread,
Jul 28, 2018, 2:20:43 PM7/28/18
to beagl...@googlegroups.com
After have tied the power pins p1 and p7 the board is running since 2 days straight at the moment without unwanted resets.
Consistent with Graham's report.

To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
--
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.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/8Y5COfcW-Ok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
--
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.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/8Y5COfcW-Ok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

--
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/CANN_KV7zOOPHaRDLPk8MihU29_wuXiGJtPm8Pgoh5pnLWNbFZQ%40mail.gmail.com.

acheesehead

unread,
Jul 29, 2018, 2:35:15 PM7/29/18
to BeagleBoard
Should there be a low Ohm resistor between P1 and P7? Maybe 100 Ohm? Just in case an external USB 5V has a difference between the P1 VIN.

Graham

unread,
Jul 29, 2018, 5:26:01 PM7/29/18
to BeagleBoard

It depends what you are trying to do and what you are worried about.

I would not recommend trying to power it from both USB and External 5V with Pin 1 and Pin 7 shorted.  That is just a work-around to keep it running when powered from external +5 V.

--- Graham

==

acheesehead

unread,
Jul 29, 2018, 11:01:52 PM7/29/18
to BeagleBoard
I am just worried about somebody powering from Vin and Vusb simultaneously.

I have seen crazier things happen. Seems like a safety net. ID10T thing.

acheesehead

unread,
Jul 29, 2018, 11:17:11 PM7/29/18
to BeagleBoard
Here's an example. PB is powered by external 5V through Vin. Then, user hooks up a powered USB hub to Vusb interface to hook up peripherals through the USB hub. Not an unreasonable scenario.

Nothing that I would do of course!

Graham

unread,
Jul 30, 2018, 10:53:35 AM7/30/18
to BeagleBoard
Yes it is a real world scenario.

I don't recommend you do it unless you are really knowledgeable in the way that USB power works, and are willing to accept the consequences if you do it wrong.
A 100 Ohm resistor is way too high to power a PocketBeagle through.
If you make it low enough to cross-feed power between the pins, then it is too low to prevent problems.

Rather than design a circuit that will allow it to work safely under all circumstances, I suggest the PMIC and control software in the PocketBeagle get fixed, so it works as well as, and just like a BBB.  It is supposed to be the same base parts.

In the meantime, I suggest that shorting Pin 1 and Pin 7 be restricted to use as a workaround, in the event you need to power a PocketBeagle from 5 Volts only, and not plug in a USB source of power at the same time, or defeat the USB power lead if you do need to plug in USB for control/communications.

--- Graham

==

viel...@allocor.tech

unread,
Dec 11, 2018, 7:44:47 AM12/11/18
to BeagleBoard
We are seeing something similar on a board we designed using USB1 host. We have PB powered through VIN, with P1.7 floating and are seeing spurious reboots a few times per day. We are running on latest 9.5 image. 

Our initial thought was that it was related to our 5V supply on Vin, and were going to start adding capacitance, and doing some testing based on this line of thought, but it seems you've already been down this road and it did not have an impact. Have there been any new findings since July? If not, have you found the P1.1<=>P1.7 to be stable? In our case this would be fine since we remove the uUSB connector anyway.

Thanks

-- Brian

Pablo Rodriguez

unread,
Dec 11, 2018, 8:25:11 AM12/11/18
to beagl...@googlegroups.com
Hi,

**If not, have you found the P1.1<=>P1.7 to be stable?

It has worked for me. No more random reboot after this.

I'm working in a clone board using the same IC as the PB, when they arrive i will test stability powering from VIN and VUSB.

I have than this test on the BBBW and not detect any issue, although the ICs are not the exactly same ( OSD335x vs OSD335x-SM).
Has anybody powering the OSD335x-SM from VIN with no stability problems?

Thanks, 
Pablo

Pablo

--
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.
Reply all
Reply to author
Forward
0 new messages