All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Carlos Hernandez <ceh@ti.com>
Cc: meta-ti@yoctoproject.org
Subject: Re: Denys Dmytriyenko : udev: rules for seamless transition to 8250_omap serial driver
Date: Fri, 27 Feb 2015 12:06:17 -0500	[thread overview]
Message-ID: <20150227170617.GK6052@edge> (raw)
In-Reply-To: <54F06FC4.3070608@ti.com>

Hmm, that's weird, I'll check...

On Fri, Feb 27, 2015 at 08:23:16AM -0500, Carlos Hernandez wrote:
> BTW, the rule is fine but for some reason is not triggering on boot.
> I had to ssh into the board and run udevadm trigger to get symlinks
> created (see below)
> 
> root@dra7xx-evm:~# ls -l /dev/tty*
> crw-rw-rw-    1 root     tty         5,   0 Feb 17 12:43 /dev/tty
> crw--w----    1 root     tty         4,   0 Feb 17 12:43 /dev/tty0
> crw--w----    1 root     root        4,   1 Feb 17 12:59 /dev/tty1
> crw--w----    1 root     tty         4,  10 Feb 17 12:43 /dev/tty10
> crw--w----    1 root     tty         4,  11 Feb 17 12:43 /dev/tty11
> crw--w----    1 root     tty         4,  12 Feb 17 12:43 /dev/tty12
> crw--w----    1 root     tty         4,  13 Feb 17 12:43 /dev/tty13
> crw--w----    1 root     tty         4,  14 Feb 17 12:43 /dev/tty14
> crw--w----    1 root     tty         4,  15 Feb 17 12:43 /dev/tty15
> crw--w----    1 root     tty         4,  16 Feb 17 12:43 /dev/tty16
> crw--w----    1 root     tty         4,  17 Feb 17 12:43 /dev/tty17
> crw--w----    1 root     tty         4,  18 Feb 17 12:43 /dev/tty18
> crw--w----    1 root     tty         4,  19 Feb 17 12:43 /dev/tty19
> crw--w----    1 root     tty         4,   2 Feb 17 12:43 /dev/tty2
> crw--w----    1 root     tty         4,  20 Feb 17 12:43 /dev/tty20
> crw--w----    1 root     tty         4,  21 Feb 17 12:43 /dev/tty21
> crw--w----    1 root     tty         4,  22 Feb 17 12:43 /dev/tty22
> crw--w----    1 root     tty         4,  23 Feb 17 12:43 /dev/tty23
> crw--w----    1 root     tty         4,  24 Feb 17 12:43 /dev/tty24
> crw--w----    1 root     tty         4,  25 Feb 17 12:43 /dev/tty25
> crw--w----    1 root     tty         4,  26 Feb 17 12:43 /dev/tty26
> crw--w----    1 root     tty         4,  27 Feb 17 12:43 /dev/tty27
> crw--w----    1 root     tty         4,  28 Feb 17 12:43 /dev/tty28
> crw--w----    1 root     tty         4,  29 Feb 17 12:43 /dev/tty29
> crw--w----    1 root     tty         4,   3 Feb 17 12:43 /dev/tty3
> crw--w----    1 root     tty         4,  30 Feb 17 12:43 /dev/tty30
> crw--w----    1 root     tty         4,  31 Feb 17 12:43 /dev/tty31
> crw--w----    1 root     tty         4,  32 Feb 17 12:43 /dev/tty32
> crw--w----    1 root     tty         4,  33 Feb 17 12:43 /dev/tty33
> crw--w----    1 root     tty         4,  34 Feb 17 12:43 /dev/tty34
> crw--w----    1 root     tty         4,  35 Feb 17 12:43 /dev/tty35
> crw--w----    1 root     tty         4,  36 Feb 17 12:43 /dev/tty36
> crw--w----    1 root     tty         4,  37 Feb 17 12:43 /dev/tty37
> crw--w----    1 root     tty         4,  38 Feb 17 12:43 /dev/tty38
> crw--w----    1 root     tty         4,  39 Feb 17 12:43 /dev/tty39
> crw--w----    1 root     tty         4,   4 Feb 17 12:43 /dev/tty4
> crw--w----    1 root     tty         4,  40 Feb 17 12:43 /dev/tty40
> crw--w----    1 root     tty         4,  41 Feb 17 12:43 /dev/tty41
> crw--w----    1 root     tty         4,  42 Feb 17 12:43 /dev/tty42
> crw--w----    1 root     tty         4,  43 Feb 17 12:43 /dev/tty43
> crw--w----    1 root     tty         4,  44 Feb 17 12:43 /dev/tty44
> crw--w----    1 root     tty         4,  45 Feb 17 12:43 /dev/tty45
> crw--w----    1 root     tty         4,  46 Feb 17 12:43 /dev/tty46
> crw--w----    1 root     tty         4,  47 Feb 17 12:43 /dev/tty47
> crw--w----    1 root     tty         4,  48 Feb 17 12:43 /dev/tty48
> crw--w----    1 root     tty         4,  49 Feb 17 12:43 /dev/tty49
> crw--w----    1 root     tty         4,   5 Feb 17 12:43 /dev/tty5
> crw--w----    1 root     tty         4,  50 Feb 17 12:43 /dev/tty50
> crw--w----    1 root     tty         4,  51 Feb 17 12:43 /dev/tty51
> crw--w----    1 root     tty         4,  52 Feb 17 12:43 /dev/tty52
> crw--w----    1 root     tty         4,  53 Feb 17 12:43 /dev/tty53
> crw--w----    1 root     tty         4,  54 Feb 17 12:43 /dev/tty54
> crw--w----    1 root     tty         4,  55 Feb 17 12:43 /dev/tty55
> crw--w----    1 root     tty         4,  56 Feb 17 12:43 /dev/tty56
> crw--w----    1 root     tty         4,  57 Feb 17 12:43 /dev/tty57
> crw--w----    1 root     tty         4,  58 Feb 17 12:43 /dev/tty58
> crw--w----    1 root     tty         4,  59 Feb 17 12:43 /dev/tty59
> crw--w----    1 root     tty         4,   6 Feb 17 12:43 /dev/tty6
> crw--w----    1 root     tty         4,  60 Feb 17 12:43 /dev/tty60
> crw--w----    1 root     tty         4,  61 Feb 17 12:43 /dev/tty61
> crw--w----    1 root     tty         4,  62 Feb 17 12:43 /dev/tty62
> crw--w----    1 root     tty         4,  63 Feb 17 12:43 /dev/tty63
> crw--w----    1 root     tty         4,   7 Feb 17 12:43 /dev/tty7
> crw--w----    1 root     tty         4,   8 Feb 17 12:43 /dev/tty8
> crw--w----    1 root     tty         4,   9 Feb 17 12:43 /dev/tty9
> crw-rw----    1 root     dialout     4,  64 Feb 17 12:43 /dev/ttyS0
> crw-rw----    1 root     dialout     4,  65 Feb 17 12:43 /dev/ttyS1
> crw-rw----    1 root     dialout     4,  66 Feb 17 12:59 /dev/ttyS2
> crw-rw----    1 root     dialout     4,  67 Feb 17 12:43 /dev/ttyS3
> crw-rw----    1 root     dialout     4,  68 Feb 17 12:43 /dev/ttyS4
> crw-rw----    1 root     dialout     4,  69 Feb 17 12:43 /dev/ttyS5
> crw-rw----    1 root     dialout     4,  70 Feb 17 12:43 /dev/ttyS6
> crw-rw----    1 root     dialout     4,  71 Feb 17 12:43 /dev/ttyS7
> crw-rw----    1 root     dialout     4,  72 Feb 17 12:43 /dev/ttyS8
> crw-rw----    1 root     dialout     4,  73 Feb 17 12:43 /dev/ttyS9
> root@dra7xx-evm:~# udevadm trigger
> root@dra7xx-evm:~# ls -l /dev/tty*
> crw-rw-rw-    1 root     tty         5,   0 Feb 17 13:09 /dev/tty
> crw--w----    1 root     tty         4,   0 Feb 17 13:09 /dev/tty0
> crw--w----    1 root     tty         4,   1 Feb 17 13:09 /dev/tty1
> crw--w----    1 root     tty         4,  10 Feb 17 13:09 /dev/tty10
> crw--w----    1 root     tty         4,  11 Feb 17 13:09 /dev/tty11
> crw--w----    1 root     tty         4,  12 Feb 17 13:09 /dev/tty12
> crw--w----    1 root     tty         4,  13 Feb 17 13:09 /dev/tty13
> crw--w----    1 root     tty         4,  14 Feb 17 13:09 /dev/tty14
> crw--w----    1 root     tty         4,  15 Feb 17 13:09 /dev/tty15
> crw--w----    1 root     tty         4,  16 Feb 17 13:09 /dev/tty16
> crw--w----    1 root     tty         4,  17 Feb 17 13:09 /dev/tty17
> crw--w----    1 root     tty         4,  18 Feb 17 13:09 /dev/tty18
> crw--w----    1 root     tty         4,  19 Feb 17 13:09 /dev/tty19
> crw--w----    1 root     tty         4,   2 Feb 17 13:09 /dev/tty2
> crw--w----    1 root     tty         4,  20 Feb 17 13:09 /dev/tty20
> crw--w----    1 root     tty         4,  21 Feb 17 13:09 /dev/tty21
> crw--w----    1 root     tty         4,  22 Feb 17 13:09 /dev/tty22
> crw--w----    1 root     tty         4,  23 Feb 17 13:09 /dev/tty23
> crw--w----    1 root     tty         4,  24 Feb 17 13:09 /dev/tty24
> crw--w----    1 root     tty         4,  25 Feb 17 13:09 /dev/tty25
> crw--w----    1 root     tty         4,  26 Feb 17 13:09 /dev/tty26
> crw--w----    1 root     tty         4,  27 Feb 17 13:09 /dev/tty27
> crw--w----    1 root     tty         4,  28 Feb 17 13:09 /dev/tty28
> crw--w----    1 root     tty         4,  29 Feb 17 13:09 /dev/tty29
> crw--w----    1 root     tty         4,   3 Feb 17 13:09 /dev/tty3
> crw--w----    1 root     tty         4,  30 Feb 17 13:09 /dev/tty30
> crw--w----    1 root     tty         4,  31 Feb 17 13:09 /dev/tty31
> crw--w----    1 root     tty         4,  32 Feb 17 13:09 /dev/tty32
> crw--w----    1 root     tty         4,  33 Feb 17 13:09 /dev/tty33
> crw--w----    1 root     tty         4,  34 Feb 17 13:09 /dev/tty34
> crw--w----    1 root     tty         4,  35 Feb 17 13:09 /dev/tty35
> crw--w----    1 root     tty         4,  36 Feb 17 13:09 /dev/tty36
> crw--w----    1 root     tty         4,  37 Feb 17 13:09 /dev/tty37
> crw--w----    1 root     tty         4,  38 Feb 17 13:09 /dev/tty38
> crw--w----    1 root     tty         4,  39 Feb 17 13:09 /dev/tty39
> crw--w----    1 root     tty         4,   4 Feb 17 13:09 /dev/tty4
> crw--w----    1 root     tty         4,  40 Feb 17 13:09 /dev/tty40
> crw--w----    1 root     tty         4,  41 Feb 17 13:09 /dev/tty41
> crw--w----    1 root     tty         4,  42 Feb 17 13:09 /dev/tty42
> crw--w----    1 root     tty         4,  43 Feb 17 13:09 /dev/tty43
> crw--w----    1 root     tty         4,  44 Feb 17 13:09 /dev/tty44
> crw--w----    1 root     tty         4,  45 Feb 17 13:09 /dev/tty45
> crw--w----    1 root     tty         4,  46 Feb 17 13:09 /dev/tty46
> crw--w----    1 root     tty         4,  47 Feb 17 13:09 /dev/tty47
> crw--w----    1 root     tty         4,  48 Feb 17 13:09 /dev/tty48
> crw--w----    1 root     tty         4,  49 Feb 17 13:09 /dev/tty49
> crw--w----    1 root     tty         4,   5 Feb 17 13:09 /dev/tty5
> crw--w----    1 root     tty         4,  50 Feb 17 13:09 /dev/tty50
> crw--w----    1 root     tty         4,  51 Feb 17 13:09 /dev/tty51
> crw--w----    1 root     tty         4,  52 Feb 17 13:09 /dev/tty52
> crw--w----    1 root     tty         4,  53 Feb 17 13:09 /dev/tty53
> crw--w----    1 root     tty         4,  54 Feb 17 13:09 /dev/tty54
> crw--w----    1 root     tty         4,  55 Feb 17 13:09 /dev/tty55
> crw--w----    1 root     tty         4,  56 Feb 17 13:09 /dev/tty56
> crw--w----    1 root     tty         4,  57 Feb 17 13:09 /dev/tty57
> crw--w----    1 root     tty         4,  58 Feb 17 13:09 /dev/tty58
> crw--w----    1 root     tty         4,  59 Feb 17 13:09 /dev/tty59
> crw--w----    1 root     tty         4,   6 Feb 17 13:09 /dev/tty6
> crw--w----    1 root     tty         4,  60 Feb 17 13:09 /dev/tty60
> crw--w----    1 root     tty         4,  61 Feb 17 13:09 /dev/tty61
> crw--w----    1 root     tty         4,  62 Feb 17 13:09 /dev/tty62
> crw--w----    1 root     tty         4,  63 Feb 17 13:09 /dev/tty63
> crw--w----    1 root     tty         4,   7 Feb 17 13:09 /dev/tty7
> crw--w----    1 root     tty         4,   8 Feb 17 13:09 /dev/tty8
> crw--w----    1 root     tty         4,   9 Feb 17 13:09 /dev/tty9
> lrwxrwxrwx    1 root     root             5 Feb 17 13:09 /dev/ttyO0 -> ttyS0
> lrwxrwxrwx    1 root     root             5 Feb 17 13:09 /dev/ttyO2 -> ttyS2
> crw-rw----    1 root     dialout     4,  64 Feb 17 13:09 /dev/ttyS0
> crw-rw----    1 root     dialout     4,  65 Feb 17 13:09 /dev/ttyS1
> crw-rw----    1 root     dialout     4,  66 Feb 17 13:09 /dev/ttyS2
> crw-rw----    1 root     dialout     4,  67 Feb 17 13:09 /dev/ttyS3
> crw-rw----    1 root     dialout     4,  68 Feb 17 13:09 /dev/ttyS4
> crw-rw----    1 root     dialout     4,  69 Feb 17 13:09 /dev/ttyS5
> crw-rw----    1 root     dialout     4,  70 Feb 17 13:09 /dev/ttyS6
> crw-rw----    1 root     dialout     4,  71 Feb 17 13:09 /dev/ttyS7
> crw-rw----    1 root     dialout     4,  72 Feb 17 13:09 /dev/ttyS8
> crw-rw----    1 root     dialout     4,  73 Feb 17 13:09 /dev/ttyS9
> root@dra7xx-evm:~#
> 
> On 02/27/2015 07:48 AM, Carlos Hernandez wrote:
> >Acked-by: Carlos Hernandez <ceh@ti.com>
> >
> >On 02/26/2015 08:33 PM, Arago Project git wrote:
> >>Module: meta-ti
> >>Branch: master
> >>Commit: 4ce69eff28103778508d23af766e6204c95595d3
> >>URL: http://arago-project.org/git/meta-ti.git?a=commit;h=4ce69eff28103778508d23af766e6204c95595d3
> >>
> >>Author: Denys Dmytriyenko <denys@ti.com>
> >>Date:   Thu Feb 26 14:51:40 2015 -0500
> >>
> >>udev: rules for seamless transition to 8250_omap serial driver
> >>
> >>Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> >>
> >>---
> >>
> >>  recipes-core/udev/udev/omap-tty.rules |   17 +++++++++++++++++
> >>  recipes-core/udev/udev_%.bbappend     |    9 +++++++++
> >>  2 files changed, 26 insertions(+), 0 deletions(-)
> >>
> >>diff --git a/recipes-core/udev/udev/omap-tty.rules
> >>b/recipes-core/udev/udev/omap-tty.rules
> >>new file mode 100644
> >>index 0000000..989d60f
> >>--- /dev/null
> >>+++ b/recipes-core/udev/udev/omap-tty.rules
> >>@@ -0,0 +1,17 @@
> >>+# There are a number of modifiers that are allowed to be used in some
> >>+# of the different fields. They provide the following subsitutions:
> >>+#
> >>+# %n the "kernel number" of the device.
> >>+#    For example, 'sda3' has a "kernel number" of '3'
> >>+# %e the smallest number for that name which does not matches
> >>an existing node
> >>+# %k the kernel name for the device
> >>+# %M the kernel major number for the device
> >>+# %m the kernel minor number for the device
> >>+# %b the bus id for the device
> >>+# %c the string returned by the PROGRAM
> >>+# %s{filename} the content of a sysfs attribute
> >>+# %% the '%' char itself
> >>+#
> >>+
> >>+# Backward compatibility with old OMAP UART-style ttyO0 naming
> >>+SUBSYSTEM=="tty", ATTR{uartclk}!="0", KERNEL=="ttyS[0-9]",
> >>SYMLINK+="ttyO%n"
> >>diff --git a/recipes-core/udev/udev_%.bbappend
> >>b/recipes-core/udev/udev_%.bbappend
> >>new file mode 100644
> >>index 0000000..fd0d99b
> >>--- /dev/null
> >>+++ b/recipes-core/udev/udev_%.bbappend
> >>@@ -0,0 +1,9 @@
> >>+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> >>+
> >>+SRC_URI_append = " file://omap-tty.rules"
> >>+
> >>+PR_append = ".0"
> >>+
> >>+do_install_append() {
> >>+    install -m 0644 ${WORKDIR}/omap-tty.rules
> >>${D}${sysconfdir}/udev/rules.d/
> >>+}
> >>
> >
> 
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


  reply	other threads:[~2015-02-27 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27  1:33 Denys Dmytriyenko : udev: rules for seamless transition to 8250_omap serial driver Arago Project git
2015-02-27 12:48 ` Carlos Hernandez
2015-02-27 13:23   ` Carlos Hernandez
2015-02-27 17:06     ` Denys Dmytriyenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-27  1:33 Arago Project git

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150227170617.GK6052@edge \
    --to=denys@ti.com \
    --cc=ceh@ti.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.