From d90bf392cfb363c05bb2776d6078b4701b6a676f Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 15 Mar 2012 21:43:14 -0700 Subject: [PATCH] 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 Reviewed-on: https://gerrit.chromium.org/gerrit/18333 Reviewed-by: Randall Spangler --- build_kernel_image.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_kernel_image.sh b/build_kernel_image.sh index dc111bc0d4..f408a0d575 100755 --- a/build_kernel_image.sh +++ b/build_kernel_image.sh @@ -153,6 +153,12 @@ tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic 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" bootloader_path="/lib64/bootstub/bootstub.efi"