Enable UART ports.

General support questions
saurabh009
Posts: 7
Joined: 2020/03/12 03:24:07

Re: Enable UART ports.

Post by saurabh009 » 2020/03/19 04:41:31

aks wrote:
2020/03/18 19:39:40
Yes, I do have ttyS* ports in the /dev directory. I searched for the setserial command but, I am not able to enable ttyS1 or ttyS2 port.
Eh? What do you mean by "enable"? If the nodes are there they are "enabled" - i.e.: detected, drivers loaded, a path for the kernel to "talk" to the device(s), otherwise they wouldn't be there (unless they are NOT really serial devices) - this is the job of udev.

Now you need to "map" those ttyS port to each serial port, including whatever port your device is on (which may change from boot to boot - you can ensure the same state across boot - but that depends on udev "rules" and you need to understand that completely, which is not that hard).

The setserial command is just a "userland" application to set the serial communication parameters according to the "rules" of RS-232 communications (via the kernel). If you know what you're doing, you could probably set the same thing via a "decent" serial program such as minicom.
I usually work on Ubuntu so I do not have much info about this. Thanks for letting me know, I will try. I will ask questions here if I get stuck somewhere.

afewgoodman
Posts: 58
Joined: 2019/12/11 03:51:58

Re: Enable UART ports.

Post by afewgoodman » 2020/03/19 08:22:44

How about ttyAMA0/1 ?

saurabh009
Posts: 7
Joined: 2020/03/12 03:24:07

Re: Enable UART ports.

Post by saurabh009 » 2020/03/20 04:04:30

Thank you all for your help. I was finally able to enable the UART ports from the dtb file.

Post Reply

Return to “CentOS 7 - General Support”