mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
Use keyboard controller for hard reset instead of CF9
For some still unknown reason writes to location 0xcf9 do not cause the Link to reboot, they cause it to shut down instead. While this will have to be investigated and fixed, this change modifies the code to have the kernel use the keyboard controller (implemented by the EC on Link) to restart the system. Once the 0xcf9 problem is resolved, this change could be reverted. BUG=chrome-os-partner:8397 TEST=manual . typing 'reboot' at the shell causes the system to restart. It was shutting down before this change. Change-Id: I515c87c8ffb57c444bfc3e7074d584e7cbefa87f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/18333 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
parent
aa13ea4658
commit
d90bf392cf
@ -153,6 +153,12 @@ tpm_tis.force=1
|
|||||||
tpm_tis.interrupts=0
|
tpm_tis.interrupts=0
|
||||||
nmi_watchdog=panic,lapic
|
nmi_watchdog=panic,lapic
|
||||||
EOF
|
EOF
|
||||||
|
if [[ "${FLAGS_board}" = "link" ]]; then
|
||||||
|
# This is a hack to work around the issue of CF9 reset not properly
|
||||||
|
# causing Link to restart. This is marked for removal on the appropriate
|
||||||
|
# bug record.
|
||||||
|
echo 'reboot=k' >> "${FLAGS_working_dir}/config.txt"
|
||||||
|
fi
|
||||||
WORK="${WORK} ${FLAGS_working_dir}/config.txt"
|
WORK="${WORK} ${FLAGS_working_dir}/config.txt"
|
||||||
|
|
||||||
bootloader_path="/lib64/bootstub/bootstub.efi"
|
bootloader_path="/lib64/bootstub/bootstub.efi"
|
||||||
|
Loading…
Reference in New Issue
Block a user