From 05dad972346050a389ded5edf2e264002ff34e77 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 31 Jul 2016 00:23:11 -0500 Subject: [PATCH] UPSTREAM: util/cbfstool: Increase initrd offset to 64M Newer Linux kernels fail to detect the initramfs using the old 16M offset. Increase the offset to the minimum working value, 64M. Tested-on: qemu pc, 64-bit virtual CPU, linux 4.6 x86_64 BUG=None BRANCH=None TEST=None Change-Id: Ib124c1e1fdb4e43dfb74e19d6126b575fd706325 Signed-off-by: Timothy Pearson Reviewed-on: https://review.coreboot.org/15999 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-on: https://chromium-review.googlesource.com/366298 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Furquan Shaikh --- util/cbfstool/cbfs-payload-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cbfstool/cbfs-payload-linux.c b/util/cbfstool/cbfs-payload-linux.c index 79ee7eaa85..03a41cd7f4 100644 --- a/util/cbfstool/cbfs-payload-linux.c +++ b/util/cbfstool/cbfs-payload-linux.c @@ -279,7 +279,7 @@ int parse_bzImage_to_payload(const struct buffer *input, * close to the kernel, so give it some room. */ initrd_base = kernel_base + buffer_size(&bzp.kernel); - initrd_base = ALIGN(initrd_base, 16*1024*1024); + initrd_base = ALIGN(initrd_base, 64*1024*1024); params.initrd_start = initrd_base; params.initrd_size = buffer_size(&bzp.initrd);