DescriptionThis is a script which allows accessing a certain byte in
CMOS. See script Doc string for details of operation.
This script is being added in a new directory which will
host various userland utilities used to communicate with
the firmware.
Tested on a development machine using mock ACPI and NVRAM
files and on ST8 equipped with the BIOS implementing the
ChromeOS ACPI device. Below is the development machine
run:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
(utils $) for de in 0 1; do
> for tr in 0 1; do
> for re in 0 1; do
> echo;
> echo "re=$re de=$de tr=$tr"
> ./reboot_mode.py --nvram_file=/tmp/nvram --acpi_file=/tmp/acpi_file --de=$de --tr=$tr --re=$re
> ./reboot_mode.py --acpi_file=/tmp/acpi_file --nvram_file=/tmp/nvram --de=$de --tr=$tr --re=$re
> /usr/bin/od -Ax -t x1 -v /tmp/nvram | grep '^000060' | awk '{print $14}'
> done
> done
> done
re=0 de=0 tr=0
reboot_mode.py: no update required
00
re=1 de=0 tr=0
reboot_mode.py: no update required
80
re=0 de=0 tr=1
reboot_mode.py: no update required
20
re=1 de=0 tr=1
reboot_mode.py: no update required
a0
re=0 de=1 tr=0
reboot_mode.py: no update required
40
re=1 de=1 tr=0
reboot_mode.py: no update required
c0
re=0 de=1 tr=1
reboot_mode.py: no update required
60
re=1 de=1 tr=1
reboot_mode.py: no update required
e0
(utils $) ./reboot_mode.py --acpi_file=/tmp/acpi_file --nvram_file=/tmp/nvram
Current reboot mode settings:
try_firmware_b : 1
recovery : 1
debug_reset : 1
(utils $)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Patch Set 1 #
Total comments: 17
Patch Set 2 : Changes based on review comments. #Messages
Total messages: 7 (0 generated)
|