diff options
author | Randall Spangler <rspangler@chromium.org> | 2011-02-14 11:12:09 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2011-02-14 11:12:09 -0800 |
commit | a8e0f94b94c2181a95a984fbcd8de80c3ca1b8c9 (patch) | |
tree | 8443735374d04604a006d8561b770e1fd900e982 /utility/load_kernel_test.c | |
parent | 61362d65fcdd6f6aff90fc5be51237b39cfeb9ae (diff) | |
download | vboot-a8e0f94b94c2181a95a984fbcd8de80c3ca1b8c9.tar.gz |
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
Diffstat (limited to 'utility/load_kernel_test.c')
-rw-r--r-- | utility/load_kernel_test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c index 9d1f14c3..38e4104f 100644 --- a/utility/load_kernel_test.c +++ b/utility/load_kernel_test.c @@ -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 */ |