diff options
author | Chris Zhong <zyw@rock-chips.com> | 2017-10-31 17:07:04 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2017-11-10 17:46:36 +0800 |
commit | 01b0c61bc9552ee97991f5c6d9e87c128c3f627c (patch) | |
tree | 896d4e006603374dd6c0c62c21fee1214496876d /init | |
parent | fc0cda6b092b7ba7367ebacaf1461dd53b90af01 (diff) |
HACK: get ramdisk correct size with rk bootloader
RK bootloader does not put a correct size to cmdline, hack the initramfs,
directly return when we get a good initrd.
Change-Id: Ia1199a1c47f1c0789268971c9f2c9b55bf81ca05
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/initramfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index f8ce812ba43e..69805244732b 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -498,6 +498,11 @@ static char * __init unpack_to_rootfs(char *buf, unsigned long len) error("junk in compressed archive"); if (state != Reset) error("junk in compressed archive"); + #ifdef CONFIG_ARCH_ROCKCHIP + else + break; + #endif + this_header = saved_offset + my_inptr; buf += my_inptr; len -= my_inptr; |