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:
parent
6061f79283
commit
c44194873a
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue