ls /dev/ttyu*
/dev/ttyu0 /dev/ttyu0.lock /dev/ttyu1.init /dev/ttyu2 /dev/ttyu2.lock /dev/ttyu3.init
/dev/ttyu0.init /dev/ttyu1 /dev/ttyu1.lock /dev/ttyu2.init /dev/ttyu3 /dev/ttyu3.lock
Aren't they /dev/ttyuX?
I have a couple of MITSPC Intel Atom D2500 systems with real serial ports:Code:ls /dev/ttyu* /dev/ttyu0 /dev/ttyu0.lock /dev/ttyu1.init /dev/ttyu2 /dev/ttyu2.lock /dev/ttyu3.init /dev/ttyu0.init /dev/ttyu1 /dev/ttyu1.lock /dev/ttyu2.init /dev/ttyu3 /dev/ttyu3.lock
ls -al dev/tty*
crw------- 1 root tty 0x3a Nov 9 16:27 ttyv0
crw------- 1 root wheel 0x3b Nov 9 16:25 ttyv1
crw------- 1 root wheel 0x3c Nov 9 16:25 ttyv2
crw------- 1 root wheel 0x3d Nov 9 16:25 ttyv3
crw------- 1 root wheel 0x3e Nov 9 16:25 ttyv4
crw------- 1 root wheel 0x3f Nov 9 16:25 ttyv5
crw------- 1 root wheel 0x40 Nov 9 16:25 ttyv6
crw------- 1 root wheel 0x41 Nov 9 16:25 ttyv7
crw------- 1 root wheel 0x42 Nov 9 16:24 ttyv8
crw------- 1 root wheel 0x43 Nov 9 16:24 ttyv9
crw------- 1 root wheel 0x44 Nov 9 16:24 ttyva
crw------- 1 root wheel 0x45 Nov 9 16:24 ttyvb
Sorry, but cuaU (with uppercase U) is a USB-based serial port. I think it uses the ucom driver.
Traditional motherboard serial ports that are based on the 8250 and 16550 chips (which today are usually integrated into IO bridge chips) use the uart driver, and create cuau (lowercase U) devices.
You asked "how can I get the name of the serial port". If there is only one, the name should be obvious. And if there is only one, it should be cuau0 and ttyu0.