* [Buildroot] [PATCH] Add ttyO devices to the mdev configuration and the static device table. @ 2012-01-01 17:26 Frank Hunleth 2012-01-01 20:50 ` Thomas Petazzoni 0 siblings, 1 reply; 4+ messages in thread From: Frank Hunleth @ 2012-01-01 17:26 UTC (permalink / raw) To: buildroot These are needed to support the serial ports on OMAP/AM335x devices such as the BeagleBone. Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> --- package/busybox/mdev.conf | 1 + target/generic/device_table_dev.txt | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/package/busybox/mdev.conf b/package/busybox/mdev.conf index 247c0ed..7fb71bc 100644 --- a/package/busybox/mdev.conf +++ b/package/busybox/mdev.conf @@ -20,6 +20,7 @@ tty root:tty 666 tty[0-9]* root:tty 660 vcsa*[0-9]* root:tty 660 ttyS[0-9]* root:root 660 +ttyO[0-9]* root:root 660 # alsa sound devices pcm.* root:audio 660 =snd/ diff --git a/target/generic/device_table_dev.txt b/target/generic/device_table_dev.txt index 71cd083..b02963e 100644 --- a/target/generic/device_table_dev.txt +++ b/target/generic/device_table_dev.txt @@ -24,6 +24,7 @@ /dev/ptmx c 666 0 0 5 2 - - - /dev/ttyP c 666 0 0 57 0 0 1 4 /dev/ttyS c 666 0 0 4 64 0 1 4 +/dev/ttyO c 666 0 0 253 0 0 1 4 /dev/fb c 640 0 5 29 0 0 1 4 #/dev/ttySA c 666 0 0 204 5 0 1 3 /dev/psaux c 666 0 0 10 1 0 0 - -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] Add ttyO devices to the mdev configuration and the static device table. 2012-01-01 17:26 [Buildroot] [PATCH] Add ttyO devices to the mdev configuration and the static device table Frank Hunleth @ 2012-01-01 20:50 ` Thomas Petazzoni 2012-01-02 1:03 ` Frank Hunleth 0 siblings, 1 reply; 4+ messages in thread From: Thomas Petazzoni @ 2012-01-01 20:50 UTC (permalink / raw) To: buildroot Hello Frank, Le Sun, 1 Jan 2012 12:26:36 -0500, Frank Hunleth <fhunleth@troodon-software.com> a ?crit : > +/dev/ttyO c 666 0 0 253 0 0 1 4 Unfortunately, this does not work. The omap-serial driver does not define its major number, its gets allocated by alloc_chrdev_region() dynamically at runtime. Therefore, depending on the drivers that are compiled into the kernel and their initialization order, the major number of the omap-serial devices might be 253 or 252 or 251, etc. Basically, with the omap-serial driver, there is no other choice than using devtmpfs (optionally with mdev or udev). Best regards, Thomas Petazzoni -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] Add ttyO devices to the mdev configuration and the static device table. 2012-01-01 20:50 ` Thomas Petazzoni @ 2012-01-02 1:03 ` Frank Hunleth 2012-01-02 7:44 ` Thomas Petazzoni 0 siblings, 1 reply; 4+ messages in thread From: Frank Hunleth @ 2012-01-02 1:03 UTC (permalink / raw) To: buildroot Got it. That makes sense. What about the other part of the patch for adding ttyO to mdev.conf? That one is more important to me since I am currently using mdev (and probably shouldn't have tried to cram the static dev table change in the patch anyway). Thanks, Frank On Sun, Jan 1, 2012 at 3:50 PM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Hello Frank, > > Le Sun, 1 Jan 2012 12:26:36 -0500, > Frank Hunleth <fhunleth@troodon-software.com> a ?crit : > > > +/dev/ttyO c 666 0 0 253 0 0 1 > 4 > > Unfortunately, this does not work. The omap-serial driver does not > define its major number, its gets allocated by alloc_chrdev_region() > dynamically at runtime. Therefore, depending on the drivers that are > compiled into the kernel and their initialization order, the major > number of the omap-serial devices might be 253 or 252 or 251, etc. > > Basically, with the omap-serial driver, there is no other choice than > using devtmpfs (optionally with mdev or udev). > > Best regards, > > Thomas Petazzoni > -- > Thomas Petazzoni, Free Electrons > Kernel, drivers, real-time and embedded Linux > development, consulting, training and support. > http://free-electrons.com > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- Frank Hunleth Troodon Software LLC 240.397.8766 | fhunleth at troodon-software.com http://troodon-software.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120101/44abe87f/attachment.html> ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] Add ttyO devices to the mdev configuration and the static device table. 2012-01-02 1:03 ` Frank Hunleth @ 2012-01-02 7:44 ` Thomas Petazzoni 0 siblings, 0 replies; 4+ messages in thread From: Thomas Petazzoni @ 2012-01-02 7:44 UTC (permalink / raw) To: buildroot Le Sun, 1 Jan 2012 20:03:04 -0500, Frank Hunleth <fhunleth@troodon-software.com> a ?crit : > Got it. That makes sense. > > What about the other part of the patch for adding ttyO to mdev.conf? That > one is more important to me since I am currently using mdev (and probably > shouldn't have tried to cram the static dev table change in the patch > anyway). That part of the patch makes sense. Can you submit it separately? Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-02 7:44 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-01 17:26 [Buildroot] [PATCH] Add ttyO devices to the mdev configuration and the static device table Frank Hunleth 2012-01-01 20:50 ` Thomas Petazzoni 2012-01-02 1:03 ` Frank Hunleth 2012-01-02 7:44 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox