Real reboot of RaspberryPI
Real reboot of RaspberryPI
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
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
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Real reboot of RaspberryPI
1: cut usb cable
2: add switch
3: ...
4: profit
2: add switch
3: ...
4: profit
Re: Real reboot of RaspberryPI
I was thinking something a little bit more fancy..
Re: Real reboot of RaspberryPI
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.
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
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.
Watchdog was not documented in SOC datasheet, but there's an example on how to use it: Dwelch67's blinker06.
If something looks overcomplicated, most likely it is.
Re: Real reboot of RaspberryPI
What is that "video core os"? If you meant the rpi supported OS, you can just run /sbin/rebootmutex 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
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
A switch on the power supply works for me with my Pi. KISS.
Re: Real reboot of RaspberryPI
And if a power adapter with switch is not available I'm sure you can find an extension cord with a switch
I'm Eino Tuominen from Finland, a web software dev learning low level stuff and reading / trying out kernel dev
Re: Real reboot of RaspberryPI
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.
Regards,
John.
Re: Real reboot of RaspberryPI
I think you have misunderstood the OP's issue
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).Usb power port is almost worn out because of rebooting.
Re: Real reboot of RaspberryPI
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
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