Enable UART ports.

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

Enable UART ports.

Post by saurabh009 » 2020/03/12 03:38:15

Hi,

I am using Centos 7 armhf image for the Orange Pi Pc board downloaded from the CentOS site. I am not able to enable the UART ports of the board. In legacy kernel it was easy to make changes in the script.bin files but, this is a mainline image and I do not know how to enable a port in a dtb file . Is there any utility in CentOS which enable UART ports?

Or If I am asking in the wrong forum, let me know where to post it.

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

Re: Enable UART ports.

Post by saurabh009 » 2020/03/13 06:25:09

Or anyone can provide me CentOS Legacy image.

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

Re: Enable UART ports.

Post by afewgoodman » 2020/03/13 08:16:11

Hi,

I think CentOS does not support Orange PI. do you have any clue it support Orange PI?

BR.

aks
Posts: 2958
Joined: 2014/09/20 11:22:14

Re: Enable UART ports.

Post by aks » 2020/03/13 17:16:43

Do you have /dev/ttyS<something> ports?
You can use setserial program to get/set serial port information (I think CentOS 7, certainly was in 6 and 8 arm).

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

Re: Enable UART ports.

Post by saurabh009 » 2020/03/17 08:25:40

afewgoodman wrote:
2020/03/13 08:16:11
Hi,

I think CentOS does not support Orange PI. do you have any clue it support Orange PI?

BR.
Yes , it does Support Orange Pi Pc , you just need to configure the boot options before inserting SD card in board. It is mentioned on the CentOS wiki.

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

Re: Enable UART ports.

Post by saurabh009 » 2020/03/17 08:27:05

aks wrote:
2020/03/13 17:16:43
Do you have /dev/ttyS<something> ports?
You can use setserial program to get/set serial port information (I think CentOS 7, certainly was in 6 and 8 arm).
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.

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

Re: Enable UART ports.

Post by afewgoodman » 2020/03/17 08:46:42

Hi,
Yes , it does Support Orange Pi Pc , you just need to configure the boot options before inserting SD card in board. It is mentioned on the CentOS wiki.
Can you share the url of CentOS wiki with me?

BR.

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

Re: Enable UART ports.

Post by saurabh009 » 2020/03/18 09:53:22

afewgoodman wrote:
2020/03/17 08:46:42
Hi,
Yes , it does Support Orange Pi Pc , you just need to configure the boot options before inserting SD card in board. It is mentioned on the CentOS wiki.
Can you share the url of CentOS wiki with me?

BR.
https://wiki.centos.org/SpecialInterest ... rch/armhfp

In the end, you will see the process using which we can change U-boot according to the arm boards.

aks
Posts: 2958
Joined: 2014/09/20 11:22:14

Re: Enable UART ports.

Post by aks » 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.

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

Re: Enable UART ports.

Post by afewgoodman » 2020/03/19 01:17:47

saurabh009 wrote:
2020/03/18 09:53:22
afewgoodman wrote:
2020/03/17 08:46:42
Hi,
Yes , it does Support Orange Pi Pc , you just need to configure the boot options before inserting SD card in board. It is mentioned on the CentOS wiki.
Can you share the url of CentOS wiki with me?

BR.
https://wiki.centos.org/SpecialInterest ... rch/armhfp

In the end, you will see the process using which we can change U-boot according to the arm boards.

Many thanks. I was not aware of it.

Post Reply

Return to “CentOS 7 - General Support”