From: Felix Fietkau Date: Sun, 2 Aug 2015 15:06:54 +0000 (+0000) Subject: ar71xx: fix lzma-loader kernel command line passing X-Git-Tag: reboot~2343 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=320aa306092383e7d2eaa37a2ce6fdca03186069;p=openwrt%2Fstaging%2Fblogic.git ar71xx: fix lzma-loader kernel command line passing The generic kernel cmdline parser ignores argv[0], this caused a regression for all lzma-loader based boards with linux 4.1 Signed-off-by: Felix Fietkau SVN-Revision: 46544 --- diff --git a/target/linux/ar71xx/image/lzma-loader/src/loader.c b/target/linux/ar71xx/image/lzma-loader/src/loader.c index 5c674ae5ff5f..cc73eb1721cb 100644 --- a/target/linux/ar71xx/image/lzma-loader/src/loader.c +++ b/target/linux/ar71xx/image/lzma-loader/src/loader.c @@ -73,9 +73,10 @@ static unsigned long lzma_outsize; static unsigned long kernel_la; #ifdef CONFIG_KERNEL_CMDLINE -#define kernel_argc 1 +#define kernel_argc 2 static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE; static const char *kernel_argv[] = { + NULL, kernel_cmdline, NULL, };