summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-06 14:27:48 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-06 14:27:48 +0000
commit61a952e9a6b9b8e13c3e35f12addddcf2a75c860 (patch)
tree2b50b9ed4630a3d4c4dd0ff9a820845ffb2e467e
parent9fc88068dc1f737aab1ba573a4f5b31c5cdf1a3c (diff)
meshcube: override the boot loader's (wrong) kernel command line
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6872 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/au1000-2.6/patches/012-mtx1_cmdline.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/au1000-2.6/patches/012-mtx1_cmdline.patch b/target/linux/au1000-2.6/patches/012-mtx1_cmdline.patch
new file mode 100644
index 000000000..8f078428c
--- /dev/null
+++ b/target/linux/au1000-2.6/patches/012-mtx1_cmdline.patch
@@ -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)