Skip to main content
HMüll.4
Senior
April 10, 2025
Solved

Linux-console on UART for STM32MP25 / STLinux

  • April 10, 2025
  • 2 replies
  • 746 views

Hi,

for evaluation I'm running STLinux on a STM32MP257F-DK board currently.

I found the Linux console is available on one of the USB-ports with the default configuration of that operating system.

Quick question: is that Linux console also available on some plain UART-port for that development kit (or for the STM32MP25 in general)? If yes: which port is used?

Thanks!

Best answer by GatienC

Hello!

Looking at the arch/arm64/boot/dts/st/stm32mp257f-dk.dts file, the USART3 is not enabled, therefore it's default disabled for this board. Enabling the node in the board device tree and handling the M33 firmware as mentioned in the linked post above may be sufficient.

Regards,

Gatien

2 replies

GatienC
ST Employee
April 16, 2025

Hi,

What exactly is "plain UART port"?

You can change which UART you wish to use in the board device tree file of the Linux kernel I guess (serial aliases). That stated, you can check the board schematics to know what is available on the GPIO expansion connector for the STM32MP257F-DK. I already checked and saw that USART6 is available on it :) (TX pin8 and RX pin10) so feel free to use them!

I hope this helps,

Gatien

 

 

GatienC
ST Employee
April 16, 2025
HMüll.4
HMüll.4Author
Senior
May 6, 2025

Hello Gatien,

thank you for your answer. That device-tree-stuff is known to me, but I wonder if there is already a port defined in standard STMLinux. So when running that STMLinux stuff on the STM32MP257F-DK-board, both without any changes, everythign used as it is shipped, do I find that Linux console output on any UART?

Thanks!

 

GatienC
GatienCBest answer
ST Employee
May 12, 2025

Hello!

Looking at the arch/arm64/boot/dts/st/stm32mp257f-dk.dts file, the USART3 is not enabled, therefore it's default disabled for this board. Enabling the node in the board device tree and handling the M33 firmware as mentioned in the linked post above may be sufficient.

Regards,

Gatien