ar71xx: fix lzma-loader kernel command line passing
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 Aug 2015 15:06:54 +0000 (15:06 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 Aug 2015 15:06:54 +0000 (15:06 +0000)
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 <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46544 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/image/lzma-loader/src/loader.c

index 5c674ae..cc73eb1 100644 (file)
@@ -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,
 };