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>
This commit is contained in:
Chris Zhong 2017-10-31 17:07:04 +08:00 committed by Tao Huang
commit c44194873a

View file

@ -491,6 +491,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;