serial_uart.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ==================
  2. SA1100 serial port
  3. ==================
  4. The SA1100 serial port had its major/minor numbers officially assigned::
  5. > Date: Sun, 24 Sep 2000 21:40:27 -0700
  6. > From: H. Peter Anvin <hpa@transmeta.com>
  7. > To: Nicolas Pitre <nico@CAM.ORG>
  8. > Cc: Device List Maintainer <device@lanana.org>
  9. > Subject: Re: device
  10. >
  11. > Okay. Note that device numbers 204 and 205 are used for "low density
  12. > serial devices", so you will have a range of minors on those majors (the
  13. > tty device layer handles this just fine, so you don't have to worry about
  14. > doing anything special.)
  15. >
  16. > So your assignments are:
  17. >
  18. > 204 char Low-density serial ports
  19. > 5 = /dev/ttySA0 SA1100 builtin serial port 0
  20. > 6 = /dev/ttySA1 SA1100 builtin serial port 1
  21. > 7 = /dev/ttySA2 SA1100 builtin serial port 2
  22. >
  23. > 205 char Low-density serial ports (alternate device)
  24. > 5 = /dev/cusa0 Callout device for ttySA0
  25. > 6 = /dev/cusa1 Callout device for ttySA1
  26. > 7 = /dev/cusa2 Callout device for ttySA2
  27. >
  28. You must create those inodes in /dev on the root filesystem used
  29. by your SA1100-based device::
  30. mknod ttySA0 c 204 5
  31. mknod ttySA1 c 204 6
  32. mknod ttySA2 c 204 7
  33. mknod cusa0 c 205 5
  34. mknod cusa1 c 205 6
  35. mknod cusa2 c 205 7
  36. In addition to the creation of the appropriate device nodes above, you
  37. must ensure your user space applications make use of the correct device
  38. name. The classic example is the content of the /etc/inittab file where
  39. you might have a getty process started on ttyS0.
  40. In this case:
  41. - replace occurrences of ttyS0 with ttySA0, ttyS1 with ttySA1, etc.
  42. - don't forget to add 'ttySA0', 'console', or the appropriate tty name
  43. in /etc/securetty for root to be allowed to login as well.