meshcube: override the boot loader's (wrong) kernel command line

SVN-Revision: 6872
This commit is contained in:
Felix Fietkau 2007-04-06 14:27:48 +00:00
parent 9a8ff3b05d
commit bf4023bae4

View file

@ -0,0 +1,19 @@
--- linux-2.6.19.2/arch/mips/au1000/mtx-1/init.c.old 2007-04-06 15:01:13.503777992 +0200
+++ linux-2.6.19.2/arch/mips/au1000/mtx-1/init.c 2007-04-06 15:01:36.296313000 +0200
@@ -39,7 +39,6 @@
int prom_argc;
char **prom_argv, **prom_envp;
-extern void __init prom_init_cmdline(void);
extern char *prom_getenv(char *envname);
const char *get_system_type(void)
@@ -59,7 +58,7 @@
mips_machgroup = MACH_GROUP_ALCHEMY;
mips_machtype = MACH_MTX1; /* set the platform # */
- prom_init_cmdline();
+ strcpy(arcs_cmdline, CONFIG_CMDLINE);
memsize_str = prom_getenv("memsize");
if (!memsize_str)