summaryrefslogtreecommitdiff
path: root/packages/linux/linux-storcenter/10-command-line.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux/linux-storcenter/10-command-line.patch')
-rw-r--r--packages/linux/linux-storcenter/10-command-line.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/linux/linux-storcenter/10-command-line.patch b/packages/linux/linux-storcenter/10-command-line.patch
new file mode 100644
index 0000000000..6d2647bdcc
--- /dev/null
+++ b/packages/linux/linux-storcenter/10-command-line.patch
@@ -0,0 +1,26 @@
+--- linux-2.6.12.6.orig/arch/ppc/platforms/iomega8241.c 2006-10-31 08:48:09.000000000 -0800
++++ linux-2.6.12.6/arch/ppc/platforms/iomega8241.c 2006-11-08 08:19:58.000000000 -0800
+@@ -82,6 +82,10 @@
+
+ static void iomega8241_halt(void);
+
++static char iomega8241_command_line[] __initdata =
++ "root=/dev/mtdblock2 rootfstype=jffs2 rw init=/linuxrc "
++ CONFIG_CMDLINE;
++
+ /*
+ * Define all of the IRQ senses and polarities.
+ */
+@@ -519,6 +523,12 @@
+ strcpy(cmd_line, (char *)(r6+KERNELBASE));
+ }
+
++ /*
++ * Just use our command line, no matter what
++ */
++ strlcpy(cmd_line, iomega8241_command_line, COMMAND_LINE_SIZE);
++
++
+ #ifdef CONFIG_BLK_DEV_INITRD
+ /* take care of initrd if we have one */
+ if (r4) {