mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
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
|
|
@ -491,6 +491,11 @@ static char * __init unpack_to_rootfs(char *buf, unsigned long len)
|
||||||
error("junk in compressed archive");
|
error("junk in compressed archive");
|
||||||
if (state != Reset)
|
if (state != Reset)
|
||||||
error("junk in compressed archive");
|
error("junk in compressed archive");
|
||||||
|
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
this_header = saved_offset + my_inptr;
|
this_header = saved_offset + my_inptr;
|
||||||
buf += my_inptr;
|
buf += my_inptr;
|
||||||
len -= my_inptr;
|
len -= my_inptr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user