summaryrefslogtreecommitdiff
path: root/include/chromeos/common.h
AgeCommit message (Collapse)Author
2011-08-29CHROMIUMOS: Add vbexport_init() to set up librarySimon Glass
We need to register available boot devices. It seems reasonable that this library should be initialized before use. BUG=chromium-os:19518 TEST=build on Seaboard; vbexport_test diskinfo See that all boot devices are found with SD and USB inserted Change-Id: I17a535dc85b5aaee669ea67b439632bafb19c806 Reviewed-on: http://gerrit.chromium.org/gerrit/6501 Reviewed-by: Anton Staaf <robotboy@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
2011-08-29CHROMIUM: Add bootstage markers to twostop bootSimon Glass
This lets us see the time used by twostop which is outside vboot itself. BUG=chromium-os:17805 TEST=build and boot on Aebl, see new output: Timer summary in microseconds: Mark Elapsed Stage ... 647,449 4,792 do_vboot_twostop 649,768 2,319 twostop_init 661,083 11,315 twostop_select_and_set_main_firmware 886,859 225,776 twostop_main_firmware 1,324,964 438,105 select_and_load_kernel_exit Change-Id: I85408bf2860a77fae54fcb78ece07314b8929d25 Reviewed-on: http://gerrit.chromium.org/gerrit/5775 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
2011-08-29CHROMIUM: make include of vboot_api.h unconditionalSonny Rao
This fixes a build breakage in lib/vbexport/display.c when VBOOT_DEBUG isn't defined. BUG=none TEST=compile without VBOOT_DEBUG=1 defined Change-Id: Icdafd2783190b39bbd031565d14b4b20bdefe446 Signed-off-by: Sonny Rao <sonnyrao@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/5202
2011-08-29CHROMIUM: avoid using printf %s on long stringsChe-Liang Chiou
The U-Boot printf() implementation has an output buffer limitation on output, and so cannot be used for very long output. Instead, puts() has no such limitation. BUG=chromium-os:18351 TEST=run on Aebl Change-Id: I3f3e3b81968f5169a2fe1f581924fa19c3dc1a43 Reviewed-on: http://gerrit.chromium.org/gerrit/4990 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Che-Liang Chiou <clchiou@chromium.org>
2011-08-29Implement shared display support.Vadim Bendebury
This change fills up the stubs in lib/vbexport/display.c to provide support on both ARM (where LCD driver is used) and X86 (where the CFB driver is used) platforms. BUG=chrome-os-partner:4552 TEST=manual On X86 (alex with a Dediprog programmer connected to it), run the following commands: . emerge-x86-alex vboot_reference-firmware chromeos-u-boot chromeos-coreboot dd if=/build/x86-alex/coreboot/coreboot.rom of=/tmp/coreboot seek=3584 bs=1K sudo flashrom -p dediprog -w /tmp/coreboot . Reboot the machine, observe it come up to boot> prompt, start ChromeOS (using the `boot' cli command). On ARM (tegra2_kaen) . emerge-tegra2_kaen vboot_reference-firmware chromeos-u-boot chromeos-bootimage . program the resulting image into Kaen, restart it, observe the machine come up. . install the new OS image on the machine, restart it, observe the machine come up. . request recovery reboot using crossystem, restart the machine, observe it come up in recovery request mode. This test case actually failed: the system did show the recovery request screen, but then proceeded to boot from the plugged in USB stick (it was supposed to wait for the stick to be removed/reinserted) Change-Id: I75310de3f93464645cc9e61237f65d7d19b71873 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/4886 Reviewed-by: Stefan Reinauer <reinauer@google.com>
2011-08-29CHROMIUM: Redirect VBDEBUG to VbExDebug if VBOOT_DEBUG on.Tom Wai-Hong Tam
Make all debug print go to VbExDebug such that it is easy for performance measurment. BUG=chromium-os:18126 TEST=build without error Change-Id: I30d59bd371dc3b122b3c1014107f2238cc01dc3c Reviewed-on: http://gerrit.chromium.org/gerrit/4725 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
2011-08-29can separately enable vboot-related debug outputChe-Liang Chiou
U-Boot debug output is very verbose, and sometimes does not help debugging verified boot related changes. This commit let us enable vboot-related debug output separately. BUG=chromium-os:15747 TEST=boot and see vboot-related debug output Cherry-pick: 84c65f7 Change-Id: I934d46654777347f09d9d3d71c55b3e478fd02c6 Reviewed-on: http://gerrit.chromium.org/gerrit/1532 Tested-by: Che-Liang Chiou <clchiou@chromium.org> Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>