Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power Problem. #42

Closed
aiminickwong opened this issue Jun 25, 2018 · 8 comments
Closed

Power Problem. #42

aiminickwong opened this issue Jun 25, 2018 · 8 comments

Comments

@aiminickwong
Copy link

I found a problem, when shutdown the system or command "init 0" , system will stoped .
It's looks like system level has shutdown ,but soon a later system will be auto start, I don't know why , may be it's a issue.

@andreiw
Copy link
Owner

andreiw commented Jun 25, 2018 via email

@aiminickwong
Copy link
Author

aiminickwong commented Jun 25, 2018

@andreiw how to change it to soft power off (not cut down the electricity, just shutdown system and system will not auto start again, not really shutdown the electricity)? in normal mode not efi it comes system stop and not "auto
restart"
Normally, after we shut down the system, pi will not boot automatically unless power is turned on again after the power is turned off.

@andreiw
Copy link
Owner

andreiw commented Jun 25, 2018

right now there’s no way

Low prio work but I’ll get it done eventually

@aiminickwong
Copy link
Author

@andreiw expect! When you done this , this firmware will be perfect!

@satmandu
Copy link

satmandu commented Jul 6, 2018

I think there is an interesting difference here between what the standard booted images do compared to what an image booted through Tiano Core does. With the standard booted images, doing a powerdown will not power cycle or soft-reset. With Tiano Core, halting does power cycle (or is it a soft-reset?)

(Am I wrong here?) This behavior is expected, so much so that there's provision for adding a soft-reset switch by jumping the P6 header as per here (apparently this was added in rev 2 of the original pi and has carried forward to newer versions.)

https://raspi.tv/2012/making-a-reset-switch-for-your-rev-2-raspberry-pi

It's nice to be able to tell the system to shutdown, so you can remove power or swap an SD card without risking corruption, especially for headless systems. Otherwise you have to time the shutdown command with pulling power as soon as the system has started to power cycle come back up.

Tl;DR: Expected behavior on sending shutdown is to shift the pi into a low power mode which can only be recovered from via power cycle or shorting header P6. With Tiano Core sending shutdown appears to end in a warm-reset.

@andreiw
Copy link
Owner

andreiw commented Jul 6, 2018 via email

@satmandu
Copy link

satmandu commented Jul 6, 2018

Here's the officially suggested solution raspberrypi/firmware#1016 (comment) , which is to "write 0x555 (plus the usual password) to the RSTS register," before using the watchdog timer to reset the device.

That would be a minor modification to the rpi3_system_reset function in https://github.com/andreiw/raspberry-pi3-atf/blob/master/plat/rpi3/rpi3_pm.c, making rpi3_system_off a special case inside rpi3_system_reset, no?

Or was this what was happening in the originally without a shutdown function before you implemented the andreiw/raspberry-pi3-atf@b1f5b03 commit?

@andreiw
Copy link
Owner

andreiw commented Jul 6, 2018 via email

@andreiw andreiw closed this as completed in e20cb55 Jul 8, 2018
andreiw added a commit that referenced this issue Jul 8, 2018
Matches https://github.com/andreiw/raspberry-pi3-atf/ ToT.

Shutdown now puts the Pi in low power mode (GPIO3 low to turn it on).

Closes #42

Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants