[H700] Fix reboot and poweroff from EmulationStation menu#33
Open
fedekrum wants to merge 1 commit intoknulli-cfw:knulli-mainfrom
Open
[H700] Fix reboot and poweroff from EmulationStation menu#33fedekrum wants to merge 1 commit intoknulli-cfw:knulli-mainfrom
fedekrum wants to merge 1 commit intoknulli-cfw:knulli-mainfrom
Conversation
Contributor
|
krulli-shutdown? |
31d56cf to
f6d467e
Compare
Author
|
EmulationStation on H700 is patched to call reboot.sh and poweroff.sh instead of standard shutdown commands. These scripts were missing from the H700 filesystem overlay, causing the system to get stuck at the charging/splash screen instead of completing the reboot or shutdown. Add both scripts calling knulli-shutdown, which creates the required /boot/restart.flag (so rcS skips the charger binary), syncs the filesystem and triggers the appropriate power action. Tested on RG40XX-H with Knulli alpha 20260209.
6ac61f3 to
eb13a32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the issue where rebooting or powering off from the EmulationStation menu on Allwinner H700 devices (RG40XX, RG35XX) would result in the system getting stuck at the charging/splash screen instead of completing the reboot or shutting down cleanly.
Problem
In the H700 architecture, EmulationStation is patched to call
reboot.shandpoweroff.shinstead of the standardshutdowncommands. However, these scripts were missing in the filesystem overlay for the H700 board. Without these scripts, the system fails to create the/boot/restart.flagfile, which is necessary for the boot process (rcS) to skip the charging binary (/usr/bin/charger) during a reboot.Solution
Add
reboot.shandpoweroff.shto the H700 filesystem overlay. These scripts now correctly callknulli-shutdown -randknulli-shutdown -s, ensuring that:/boot/restart.flagis created before rebooting.Testing
Tested on RG40XX-H with Knulli alpha
20260209.