Add ttyO devices to the mdev configuration and the static device table.
PATCH 1/1 Add ttyO devices to the mdev configuration and the static device table.
These are needed to support the serial ports on OMAP/AM335x devices such as the BeagleBone.
--- package/busybox/mdev.conf | 1 + target/generic/device_table_dev.txt | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
package/busybox/mdev.conf +1 -0
@@ -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/
target/generic/device_table_dev.txt +1 -0
@@ -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 -
Signature · 1 line
1.7.0.4
PATCH 1/1 Add ttyO devices to the mdev configuration and the static device table.
Hello Frank,
Le Sun, 1 Jan 2012 12:26:36 -0500,
Frank Hunleth <[email protected]> a ?crit :
Quoted 1 line
+/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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 Add ttyO devices to the mdev configuration and the static device table.
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
Quoted 29 lines · Thomas Petazzoni
Hello Frank,
Le Sun, 1 Jan 2012 12:26:36 -0500,
Frank Hunleth <[email protected]> a ?crit :Quoted 1 line
+/dev/ttyO c 666 0 0 253 0 0 1
4Unfortunately, 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
Signature · 7 lines
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>
PATCH 1/1 Add ttyO devices to the mdev configuration and the static device table.
Le Sun, 1 Jan 2012 20:03:04 -0500,
Frank Hunleth <[email protected]> a ?crit :
Quoted 6 lines
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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com