mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 18:55:24 +00:00
Revert "vboot: Plumb the two disk sizes and 'gpt on device' param through"
This reverts commit 5040a945df.
This patch breaks booting any image (both fixed and
removable) on Veyron_Pinky (and presumably every other
non-NAND board?). By the power vested in me through the
office of ChromeOS tree sheriff (well, five hours early
but whatever) it is hereby reverted!
BUG=chromium:425677
BRANCH=none
TEST=Can successfully boot on Veyron_Pinky again.
Change-Id: I9323a3d5e34491337fc7eb09dd00d845ac42997d
Reviewed-on: https://chromium-review.googlesource.com/229963
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Julius Werner <jwerner@chromium.org>
Tested-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
5040a945df
commit
79a9e0e63f
@@ -88,7 +88,7 @@ uint32_t VbTryLoadKernel(VbCommonParams *cparams, LoadKernelParams *p,
|
||||
*/
|
||||
if (512 != disk_info[i].bytes_per_lba ||
|
||||
32 > disk_info[i].lba_count ||
|
||||
get_info_flags != (disk_info[i].flags & ~VB_DISK_FLAG_EXTERNAL_GPT)) {
|
||||
get_info_flags != disk_info[i].flags) {
|
||||
VBDEBUG((" skipping: bytes_per_lba=%" PRIu64
|
||||
" lba_count=%" PRIu64 " flags=0x%x\n",
|
||||
disk_info[i].bytes_per_lba,
|
||||
@@ -98,9 +98,7 @@ uint32_t VbTryLoadKernel(VbCommonParams *cparams, LoadKernelParams *p,
|
||||
}
|
||||
p->disk_handle = disk_info[i].handle;
|
||||
p->bytes_per_lba = disk_info[i].bytes_per_lba;
|
||||
p->ending_lba = disk_info[i].streaming_lba_count - 1;
|
||||
p->gpt_lba_count = disk_info[i].lba_count;
|
||||
p->external_gpt = disk_info[i].flags & VB_DISK_FLAG_EXTERNAL_GPT;
|
||||
p->ending_lba = disk_info[i].lba_count - 1;
|
||||
retval = LoadKernel(p, cparams);
|
||||
VBDEBUG(("VbTryLoadKernel() LoadKernel() = %d\n", retval));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user