If I try to open(“/dev/ttyTHS3”, O_RDWR | O_NOCTTY | O_NONBLOCK ); then -1 is returned. Device ttyS3 can be succesfully opened, but applying function tcgetattr() returns -1.
I can access and use only ttyS0.
Linux:
I’m using linux image Apalis-TK1-Mainline_LXDE-Image_2.7b2-20170410.tar.bz2
HW:
Apalis TK1 V1.1
IXORA V1.1A
Can you please advice, how can I use UART2, UART3 and UART4?
I guess that article describes our downstream NVIDIA L4T based BSP whereas the mainline one just uses mainline drivers which may have subtle differences like what you are describing now.
OK, Thank you. The “mainline” linux image does not support UART2, UART3 and UART4. The other image does (Apalis-TK1_LXDE-Image_2.7b2). But if I try to do “opkg update and opkg upgrade” on that image, the module hangs on the next boot. The “mainline” image worked that way. So, I will open that problem in the other post.
The “mainline” linux image does not support UART2, UART3 and UART4.
The mainline BSP should really support those UARTs but unfortunately I noticed that we included a wrong compatible string in the device tree. The following patch would fix this:
The other image does (Apalis-TK1_LXDE-Image_2.7b2). But if I try to do “opkg update and opkg upgrade” on that image, the module hangs on the next boot. The “mainline” image worked that way. So, I will open that problem in the other post.
Unfortunately opkg upgrade is rather tricky as it will update stuff from the Angstrom distribution feeds potentially overriding some local changes we had to do.