In AGX Orin ttyAMA0 baud rate not able change

In AGX Orin ttyAMA0 baud rate not able change. If i set 115200 , it will accept. How to set different baud rate ?

----------logs as below--------------
nvidia@nvidia-desktop:~$ sudo stty -F /dev/ttyAMA0 9600
stty: /dev/ttyAMA0: unable to perform all requested operations
nvidia@nvidia-desktop:~$ sudo stty -F /dev/ttyAMA0 115200
nvidia@nvidia-desktop:~$ sudo stty -F /dev/ttyAMA0 9600
stty: /dev/ttyAMA0: unable to perform all requested operations
nvidia@nvidia-desktop:~$

Hi Team any help on this ?

Dear @varada.k

Thank you for contacting the NVIDIA Developer Forum.
I have moved your query to the Jetson AGX Orin section for better traction.

Warm Regards,
NVIDIA Forum Moderator

Hi vardhaman.k,

/dev/ttyAMA0 has been configured to 115200 as default in device tree for SBSA driver.

What’s your purpose to use this node?

Hi Kevin @KevinFFF
We are going to use for RS485 .

@KevinFFF is there any way to change baud rate of /dev/ttyAMA0 ?

You could try to modify current-speed of serial@31d0000 in device tree (tegra234-soc-uart.dtsi)

Or you can try to just modify in kernel cmdline setting in p3701.conf.common

CMDLINE_ADD="... console=ttyAMA0, <baud rate> ..."

@KevinFFF any suggestion without rebuilding package, like application developer can change in target board. (one time reboot also accepted)

CMDLINE could also be found in /boot/extlinux/extlinux.conf.
Could you help to modify the baud rate of ttyAMA0 there?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.