Support dev vs consumer firmware in vboot_reference

Change-Id: I5a42ba017974b3d591abc574ef7b9b7c9ac579e8

BUG=chrome-os-partner:1824
TEST=make && make runtests

Review URL: http://codereview.chromium.org/6462010
This commit is contained in:
Randall Spangler
2011-02-14 11:12:09 -08:00
parent 61362d65fc
commit a8e0f94b94
5 changed files with 47 additions and 7 deletions

View File

@@ -144,6 +144,15 @@ int main(int argc, char* argv[]) {
* heap instead of its actual target address in the firmware. */
lkp.boot_flags |= BOOT_FLAG_SKIP_ADDR_CHECK;
/* If the boot flags are for developer mode, non-recovery, add the dev-type
* firmware bit. LoadKernel() masks off the developer bit if the dev
* firmware bit is absent, to keep normal firmware from verifying dev
* kernels. */
if ((lkp.boot_flags & BOOT_FLAG_DEVELOPER)
&& !(lkp.boot_flags & BOOT_FLAG_RECOVERY)) {
lkp.boot_flags |= BOOT_FLAG_DEV_FIRMWARE;
}
printf("bootflags = %" PRIu64 "\n", lkp.boot_flags);
/* Get image size */