Git Product home page Git Product logo

Comments (8)

andreiw avatar andreiw commented on May 1, 2024 1

from raspberrypipkg.

andreiw avatar andreiw commented on May 1, 2024

from raspberrypipkg.

aiminickwong avatar aiminickwong commented on May 1, 2024

@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.

from raspberrypipkg.

andreiw avatar andreiw commented on May 1, 2024

right now there’s no way

Low prio work but I’ll get it done eventually

from raspberrypipkg.

aiminickwong avatar aiminickwong commented on May 1, 2024

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

from raspberrypipkg.

satmandu avatar satmandu commented on May 1, 2024

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.

from raspberrypipkg.

andreiw avatar andreiw commented on May 1, 2024

from raspberrypipkg.

satmandu avatar satmandu commented on May 1, 2024

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?

from raspberrypipkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.