PowerBlock Endlessly Reboots
-
I did some further experiments.. Power through the PowerBlock, driver not installed. Jumper the pins, and the Pi powers up. FULLY powers up. System is stable. I go in and tell RetroPie to shutdown the system. It exits ES, then nothing. I pull the plug and reconnect it. Insta-boot (forgot I had the pins still jumpered). Shut down again, pulled plug, removed the jumper, power in. Nothing (like it should). Jumpered pins, powers up and system stable. So the power functions of the PowerBlock seem to be working right.
Go in through the RetroPie-Setup scripts to install the PowerBlock driver. Nothing happens. I pull the jumper, nothing happens. I then go into the Config options in the script and tell it to disable the driver. It says success. Then I go back in and re-enable the driver. The system starts the shutdown routine and fully shuts down (like it should). Power LED (on the Pi) off and everything. I then jumper the pins, system starts up then reboots just like before.
So is this a driver issue, or a hardware issue? It seems to only do it when you're using the driver software.
-
I managed to get a photo of my boot log screen (by pressing ESCAPE during the splash screen). Please excuse the white blob, that's my flash. And the BB-8 is my, well.
To be honest, this screen flashes by so quickly, I don't know if there are more lines or not. Basically everything goes by good, then all of a sudden it goes really quick then does it's reboot. I'm not sure if more lines follow or not.
It is interesting that there is an error mounting the USB, although I never have issues without the PowerBlock, so it may not be related. Hope it helps.
-
One idea: We had several reports in the past about problems that arise when the power supply or the USB cable do not provide enough power or are too thin (i.e., too high resistance), respectively. You should get rid of the lighting bolt by trying out another power supply. We made excellent experiences with the original Raspberry Pi power supply, but others have also reported that they are using all other kinds of power supplies that have enough power with success.
-
BTW: You can show the information from the boot process with the command
dmesg
. -
I will try to reproduce your observations to better understand what might go wrong in your case ...
-
I really don't think it's a power supply problem. I've been tackling the power for a couple of months now. Originally, I was getting the lightning bolt all the time, using a cheap knockoff brand. So I spent a little more money and got a good name brand CanaKit power supply. I was still having issues. This is all with the power supply going directly into the Pi. I bought another CanaKit, thinking mine was faulty (it was buzzing). It too had the lightning bolt but only when the system was under heavy load (pulling data from the hard drive). So I upgraded to a higher voltage, higher amperage, thicker wire power supply. All of the lightning bolts were gone. The system is 100% stable.
Fast forward to using the Mausberry Circuit (direct plug). As soon as I connect it up, I started getting the lightning bolts again during heavy loads. Nothing changed in my setup, only that I added the Mausberry between the power plug. Everything works like it should, but the lightning bolt was annoying. I played around with turning off that alert, but ended up corrupting the SD card. I don't think it's related, as I discovered the flat SD card cable I was using had gotten "chewed" when I tried to reassemble the case this is all in. But, since I was still getting the lightning symbol (only hidden), I decided to try the PowerBlock.
Now, using a clean install, and nothing is hidden, I've got the system completely stable again. 100% running, heavy loads and all, and the lightning bolt doesn't appear. I receive your PowerBlock and install it as described. The only issue I have is the reboots. I only saw the lightning bolt twice, in the 30-40 times I've been watching it. I only mentioned it because I thought it might have been a possible cause for the reboot. Where the circuitry detected a drop in power somewhere and took that as an indication that it needed to shut down. Since the pins are jumpered, it automatically powered back on.
I wonder if the PowerBlock is bad. I looked at the scripts and saw the command the installer uses to do the shutdown.
shutdown -h now
As an experiment, I took my 100% working system (without the PowerBlock) and opened up a terminal. I ran that command to see what it does. The screen displays a lot of "stopping blah blah", before shutting down. With the PowerBlock connected, I never see those lines. I don't believe the PowerBlock is getting a true shutdown signal. If it were, it would display all those stopping lines. Instead, I see the screen I posted. A lot of "starting blah blah", and then instant power off and reboot. -
Thanks for the elaborate information!
Ok, I will prepare an SD Card image with the PowerBlock driver installed. In that way we can ensure that the software part is working as intended. I will use the current RetroPie image, ok? -
@hansolo77 You should be using a switch rather than a "jumper" connection just in case you have forgotten to remove the jumper. The PowerBlock seems to be working well from your previous post. The Pi boots when the jumper is in place and shuts down when you remove it.
Are you using standoffs when the PowerBlock is installed on the RPi3? Or are you just relying on the GPIO pins to hold the PowerBlock in place? There are SPI pins on the RPI3 that lie under the PowerBlock when installed. If you do not use standoffs that are tall enough to clear these pins when the PowerBlock is installed, they will cause a short on the PowerBlock which can cause momentary lost of power.
-
@ortsac said in PowerBlock Endlessly Reboots:
@hansolo77 You should be using a switch rather than a "jumper" connection just in case you have forgotten to remove the jumper. The PowerBlock seems to be working well from your previous post. The Pi boots when the jumper is in place and shuts down when you remove it.
I've never had it do a shutdown when I remove the jumper. The Pi never gets fully booted for me to test that functionality. The only thing I know is that it won't power on if the jumper is off, then it comes on when I put it on.
Are you using standoffs when the PowerBlock is installed on the RPi3? Or are you just relying on the GPIO pins to hold the PowerBlock in place? There are SPI pins on the RPI3 that lie under the PowerBlock when installed. If you do not use standoffs that are tall enough to clear these pins when the PowerBlock is installed, they will cause a short on the PowerBlock which can cause momentary lost of power.
This could be an issue. I'll have to double check. I don't have anything to use as a standoff, and the PowerBlock didn't come with any.
-
I can now confirm that it is definitely NOT getting shorted out because of the contacts touching something it shouldn't.
I did some more software-side troubleshooting. I wonder again if maybe the installer didn't fully install right. If I install the drivers via the RetroPie-Menu, it then gives you an easy to use Config, to enable or disable the driver. However, if I tell it to disable the driver, and then edit the file
/etc/powerblockconfig.cfg
, the status is still written as"activated" : true
. So I wonder if the RetroPie installer is to blame? It's clearly not changing the status of the "activated". -
I uninstalled everything made through the RetroPie-Setup script for the driver, then went through the lines one at a time to manually install it (just in case there was an issue with the auto installer. I got as far as installing it (not the daemon service) and tested it. The system stays off (like it should) until I jumper the switch pins. Then it powers on (like it should). This time, it goes all the way through and the system is running. I then tested the shutdown by removing the jumper. The system didn't react, just stayed running like it should.
So to me, this is a new problem, and constant rebooting is an issue with the daemon service part. But I am closer now. :)
-
I have uploaded a RetroPie V4.2 image that has the PowerBlock driver and service installed. You can find it at https://db.tt/lMXMBQ1Suf. I tested it also with a jumper as switch.
Also, I took the chance and wrote a dedicated getting started tutorial for the PowerBlock and RetroPie: https://blog.petrockblock.com/2017/08/17/tutorial-powerblock-retropie/
You also find a short video demonstration there.
-
Thanks, downloading it now. I will test on my end to see if I still have the same problem.
-
The PowerBlock still isn't working right. I installed the clean image you provided. I then installed the SD card to the Pi, connected HDMI and the controller. I then plugged on the PowerBlock, connected power, then jumpered the switch pins. The system came on like it should, and didn't do a constant reboot (this is good). But then when I tried to switch it off by removing the jumper, nothing happened. It just sat there like nothing happened. I re-connected the jumper, and all of a sudden the system rebooted. It didn't shut down, just rebooted. It came fully back up, and I tested pulling the jumper again. Nothing happened again. I re-connected the jumper again, only this time it didn't reboot, it just continued to sit there. I pulled and re-connected the jumper 3 or 4 more times, then it just randomly rebooted again.
I think there's a problem with the PowerBlock. Either a poor solder connection, or the IC isn't programmed right, or something. I'm doing everything right on my end. I think the automatic installation scripts on the PowerBlock git page needs tweaked, as it just won't work with that at all (causes constant reboots). Doing it line per line manually works as far as halting the reboots, but the system still won't do a graceful shutdown no matter what I do.
-
@hansolo77 Sorry to hear. The instructions at Git are correct, I tested these recently. Also, since you are facing the issues also with the prepared image, it is some sort of a hardware issue.
Please send me an email with your order number for a replacement.
-
@petrockblog Thanks.. I just forwarded a copy of my receipt to info@petrockblock.com.
-
Just for sh!ts and g!ggles, I connected the LED to the LED pins. As soon as I connect the power (before connecting the switch jumper), the LED is pulsing. It's not rapidly blinking, and it's not steady ON, but fades in and out. I think I read somewhere that this is what the LED does to let you know that a shutdown is in progress before it completely turns off everything. So if the LED is indicating this now, before even attaching the PowerBlock to the Pi, might that be a reason for it not to be working right? The circuit is in "shutdown" mode. This would explain why pulling the jumper has no effect. But it doesn't explain how it got in that mode. Is there something I can try to do to fix that? I'd still like to get that replacement too, just in case.
-
@hansolo77 Here's what the LED status mean:
The LED will blink in four different patterns that depend on the power state of the Raspberry Pi:
- Off: The LED is simply off.
- Booting: The LED slowly fades in and out.
- On: The LED constantly stays on.
- Shutting Down: The LED fades in and out twice as fast as during boot up.
How fast does the LED "fades in and out" on your power up?
If it is like #2, then the service is not running or stopped, and it is trying to boot up.
If #4, then there is definite something wrong. -
Not knowing how fast it's supposed to be one way or the other is a problem. I would say it's slow, completing a whole ON/OFF in about 1 second. I've seen it do rapid blinks, like maybe 2 or 3 in a second, so I'm guessing that's the other one. Troubling thing is, it's pulsing before I even connect it to the Pi and before I jump the pins.. It does it's blinking as soon as I connect the power to it. But in the trials I've been doing, it's never been a solid on.
-
@petrockblog - Did you get a tracking number by chance when you mailed the replacement? I only ask because the first one I ordered was shipped out on August 7th and I forwarded you the confirmation email on the 17th with the order number. So that was a 10-day turn around, with a couple days worth of troubleshooting. It's now the 29th.. you said you mailed it the next day (being the 18th). So it's been 11 days and I still haven't received it yet. I'm not mad or nothing, just understandably concerned. I hope it wasn't lost in the mail or anything. If you do have tracking information, can you check on it's progress? I'm just eagerly anticipating. :) Thanks!
EDIT - My bad. Looks like it just arrived today. I'm on my way out for work but I'll give it a go when I get home. May I ask.. what is the best way to install the driver? First thing I'm going to do is test the circuit on that prebuilt image you sent me. If that works, I'll be starting from scratch again on the build I've got going already. Is it better to install manually, automatically using the install auto-install script on github, or to use the installer in the RetroPie-Setup script?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.