mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 10:14:55 +00:00
nand: Allow smaller disks for booting a kernel
When vboot eliminates trivially small disks, it checks the GPT size for external GPT disks. For upcoming NAND devices, the GPT size is 8kB. This patch changes the definition of trivially small disks to be those under 8kB so that NAND can be booted from. BUG=chromium:433433 TEST=make runalltests TEST=Booted and saw a kernel from NAND selected on from an 8kB GPT. BRANCH=none Change-Id: I5047b9b642d564d5e4d77dd0b6dafb9eea09176a Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/238463 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
f3f7fca07f
commit
f47eccf65b
@@ -104,7 +104,7 @@ uint32_t VbTryLoadKernel(VbCommonParams *cparams, LoadKernelParams *p,
|
||||
* asked for.
|
||||
*/
|
||||
if (512 != disk_info[i].bytes_per_lba ||
|
||||
32 > disk_info[i].lba_count ||
|
||||
16 > disk_info[i].lba_count ||
|
||||
get_info_flags != (disk_info[i].flags & ~VB_DISK_FLAG_EXTERNAL_GPT)) {
|
||||
VBDEBUG((" skipping: bytes_per_lba=%" PRIu64
|
||||
" lba_count=%" PRIu64 " flags=0x%x\n",
|
||||
|
||||
Reference in New Issue
Block a user