sysvinit-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sysvinit-devel] [PATCH] bootlogd: Allow console writes to ttyPS*


From: Ben Shelton
Subject: [sysvinit-devel] [PATCH] bootlogd: Allow console writes to ttyPS*
Date: Mon, 28 Jul 2014 11:02:31 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

The patch below enables bootlogd to make console writes to /dev/ttyPS*,
the default naming convention for xilinx-zynq UARTs.  It was originally
written by Richard Tollerton (copied).

Thanks,
Ben

---

Index: sysvinit/trunk/src/bootlogd.c
===================================================================
--- sysvinit/trunk/src/bootlogd.c       (revision 200)
+++ sysvinit/trunk/src/bootlogd.c       (working copy)
@@ -85,6 +85,7 @@
        { "ttyB",       "/dev/ttyB%s",          NULL            },
        { "ttySC",      "/dev/ttySC%s",         "/dev/ttsc/%s"  },
        { "ttyS",       "/dev/ttyS%s",          "/dev/tts/%s"   },
+       { "ttyPS",      "/dev/ttyPS%s",         NULL            },
        { "tty",        "/dev/tty%s",           "/dev/vc/%s"    },
        { "hvc",        "/dev/hvc%s",           "/dev/hvc/%s"   },
        { NULL,         NULL,                   NULL            },
@@ -94,7 +95,7 @@
  *     Devices to try as console if not found on kernel command line.
  *     Tried from left to right (as opposed to kernel cmdline).
  */
-char *defcons[] = { "tty0", "hvc0", "ttyS0", "ttySC0", "ttyB0", NULL };
+char *defcons[] = { "tty0", "hvc0", "ttyS0", "ttyPS0", "ttySC0", "ttyB0", NULL 
};
 
 /*
  *     Catch signals.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]