Skip to content

Fallback config needed while overclock in unattended mode. #761

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

Closed
kirgene opened this issue Mar 11, 2017 · 5 comments
Closed

Fallback config needed while overclock in unattended mode. #761

kirgene opened this issue Mar 11, 2017 · 5 comments
Labels
Close within 30 days This issue will be closed within 30 days unless further interactions are posted. If you wish this is Waiting for response from OP

Comments

@kirgene
Copy link

kirgene commented Mar 11, 2017

There are several RPi v1 B devices that are working in headless unattended mode (without physical access to them, only ssh).
Now I need to set some overclock options that will include force_turbo=1 and I'm afraid that some of devices won't boot at all after such operation.
It would be great to have a fallback config that device could load in case of previous boot fails.

Is there any way to achieve such behavior now or are there any plans to develop such feature?

@pelwell
Copy link
Contributor

pelwell commented Mar 11, 2017

Detecting a boot failure sounds tricky, but I can think of an alternative - a one-time boot configuration. This could be implemented in a number of ways - a section ("[once]") or entire config file ("config_once.txt"). The only way to reliably prevent them being used a second time is to rename them - either the section or the file - just before launching the kernel, which is slightly bothering because the firmware doesn't normally modify the boot partition. This scheme would also fail if the failure is so catastrophic that the firmware won't run.

There used to be a mechanism to select an alternative configuration using a GPIO, which might have been useful with external hardware support, but that feature is no longer supported.

@popcornmix
Copy link
Contributor

I'm not keen on firmware writing to sdcard - it never has previously.
This sounds like it could all be handled on the arm side:

  • don't use force_turbo
  • default to powersave cpufreq governor (the default in raspbian kernel)
  • remove switch to ondemand governor (in /etc/init.d/raspi-config)
  • Enable the watchdog.
  • Switch to performance governor (same effect as force_turbo) if previous boot wasn't a watchdog reset

You can detect a watchdog reset with vcgencmd get_rsts

@JamesH65
Copy link
Contributor

@kirgene Did the suggestion above work? Can this be closed?

@JamesH65
Copy link
Contributor

This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.

@JamesH65 JamesH65 added the Close within 30 days This issue will be closed within 30 days unless further interactions are posted. If you wish this is label Jan 11, 2019
@JamesH65
Copy link
Contributor

JamesH65 commented Nov 5, 2019

Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant.

@JamesH65 JamesH65 closed this as completed Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Close within 30 days This issue will be closed within 30 days unless further interactions are posted. If you wish this is Waiting for response from OP
Projects
None yet
Development

No branches or pull requests

4 participants