Page 1 of 1

Real reboot of RaspberryPI

Posted: Thu Jan 23, 2014 5:03 pm
by mutex
Hi,

I have been running my OS on RaspberryPI for some time... Though i have one problem;

Usb power port is almost worn out because of rebooting.. Need to manually unplug power and connect again to do a REAL reboot and not just a reset.

Is there any way to make the video core os perform a reboot trough the mailbox interface? (or something else). I want to restart the entire process like poweroff/on would do starting from ROM, then doing SD-card boot process..

regards
Thomas

Re: Real reboot of RaspberryPI

Posted: Thu Jan 23, 2014 5:10 pm
by Combuster
1: cut usb cable
2: add switch
3: ...
4: profit

Re: Real reboot of RaspberryPI

Posted: Thu Jan 23, 2014 5:12 pm
by mutex
I was thinking something a little bit more fancy.. =D>

Re: Real reboot of RaspberryPI

Posted: Thu Jan 23, 2014 5:58 pm
by jnc100
You can connect a switch across P6.

I didn't have one to hand so soldered a small patch cable in one of the holes, and briefly touch the other one with the other end of the cable to cause a reset.

Regards,
John.

Re: Real reboot of RaspberryPI

Posted: Sat Jan 25, 2014 4:44 am
by Velko
You can utilize RasPi's Watchdog timer for that. Enable it and let it expire.

Watchdog was not documented in SOC datasheet, but there's an example on how to use it: Dwelch67's blinker06.

Re: Real reboot of RaspberryPI

Posted: Sat Jan 25, 2014 11:35 am
by bluemoon
mutex wrote:Hi,

I have been running my OS on RaspberryPI for some time... Though i have one problem;

Usb power port is almost worn out because of rebooting.. Need to manually unplug power and connect again to do a REAL reboot and not just a reset.

Is there any way to make the video core os perform a reboot trough the mailbox interface? (or something else). I want to restart the entire process like poweroff/on would do starting from ROM, then doing SD-card boot process..

regards
Thomas
What is that "video core os"? If you meant the rpi supported OS, you can just run /sbin/reboot
If you're developing your own OS, just plug your usb cable into usb-transformer then into a wall socket with switch button.

Re: Real reboot of RaspberryPI

Posted: Sat Jan 25, 2014 12:33 pm
by iansjack
A switch on the power supply works for me with my Pi. KISS.

Re: Real reboot of RaspberryPI

Posted: Sun Jan 26, 2014 6:51 am
by eino
And if a power adapter with switch is not available I'm sure you can find an extension cord with a switch ;)

Re: Real reboot of RaspberryPI

Posted: Sun Jan 26, 2014 10:00 am
by jnc100
The issue is that if you're debugging an OS on the Pi you probably have a USB to TTL cable connected to the board. If this is the case then the board draws its power directly from this rather than the USB port on the board, so if you need to repeatedly power cycle in this mode without constantly plugging/unplugging you need another means. I may have misunderstood the setup the OP was describing.

Regards,
John.

Re: Real reboot of RaspberryPI

Posted: Sun Jan 26, 2014 10:18 am
by iansjack
I think you have misunderstood the OP's issue
Usb power port is almost worn out because of rebooting.
Momentarily disconnecting the pin that carries power on a serial cable isn't going to damage the power port (or even the header it is connected to).

Re: Real reboot of RaspberryPI

Posted: Tue Feb 04, 2014 4:39 pm
by mutex
The watchdog does only reset arm core. It does not invoke the video core bootloader which loads from SD etc.

I guess it would be no problem for Broadcom to implement the feature, but no documentation is availabe on it.

One option could be to preserve the second stage bootloader and the vector table etc. Then the reset trough watchdog could work. But if kernel crash and fucks up something in memory then it could potentially prevent the bootloader working.

I'll do some research on it.

Edit;

Actually looks like blinker6 is managing to reset it (vcore). Will give it a shot.

Regards
Thomas