Enable UART ports.
-
- Posts: 7
- Joined: 2020/03/12 03:24:07
Enable UART ports.
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.
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.
-
- Posts: 7
- Joined: 2020/03/12 03:24:07
Re: Enable UART ports.
Or anyone can provide me CentOS Legacy image.
-
- Posts: 98
- Joined: 2019/12/11 03:51:58
Re: Enable UART ports.
Hi,
I think CentOS does not support Orange PI. do you have any clue it support Orange PI?
BR.
I think CentOS does not support Orange PI. do you have any clue it support Orange PI?
BR.
Re: Enable UART ports.
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).
You can use setserial program to get/set serial port information (I think CentOS 7, certainly was in 6 and 8 arm).
-
- Posts: 7
- Joined: 2020/03/12 03:24:07
Re: Enable UART ports.
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.afewgoodman wrote: ↑2020/03/13 08:16:11Hi,
I think CentOS does not support Orange PI. do you have any clue it support Orange PI?
BR.
-
- Posts: 7
- Joined: 2020/03/12 03:24:07
Re: Enable UART ports.
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.
-
- Posts: 98
- Joined: 2019/12/11 03:51:58
Re: Enable UART ports.
Hi,
BR.
Can you share the url of CentOS wiki with me?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.
BR.
-
- Posts: 7
- Joined: 2020/03/12 03:24:07
Re: Enable UART ports.
https://wiki.centos.org/SpecialInterest ... rch/armhfpafewgoodman wrote: ↑2020/03/17 08:46:42Hi,
Can you share the url of CentOS wiki with me?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.
BR.
In the end, you will see the process using which we can change U-boot according to the arm boards.
Re: Enable UART ports.
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.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.
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.
-
- Posts: 98
- Joined: 2019/12/11 03:51:58
Re: Enable UART ports.
saurabh009 wrote: ↑2020/03/18 09:53:22https://wiki.centos.org/SpecialInterest ... rch/armhfpafewgoodman wrote: ↑2020/03/17 08:46:42Hi,
Can you share the url of CentOS wiki with me?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.
BR.
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.