How to enable/use UART0?

Hi there,

I’m trying to connect minicom to the RPI UART0, but it doesn’t show any characters. I connected RX and TX as loopback. Is osmc creating getty or something on the UART0?

At startup (when UART0 is connected to Windows putty) I get “Uncompressing Linux… done, booting the kernel.” but that’s it.

Thank you!

VERSION_ID=“0.9.9”

I doubt that there is a serial console enabled by default in OSMC. (I have not tried it)

With systemd gettys are handled by the getty@.service instantiated service, for example to start a getty on tty1 (which is not normally running) you would:

sudo systemctl start getty@tty1

I don’t know off hand what the device name is for the serial point but if you substitute the /dev device name for the serial port in place of tty1 it should work. If that’s the case you can enable it on boot:

sudo systemctl enable getty@uartdevname

By the way, you’re still on a very old pre release version of OSMC.

This might be more help than what I’ve suggested above:

You will want to upgrade to the final version first. Serial port must be configured with a dt_overlay. You then just need to enable the Getty on ttyAMA0

The solution is pretty embarrassing: I was connected to my other rpi instead of the new one on my desk…

So after installing minicom, there was no problem in using the UART0 as device ttyAMA0.

sudo apt-get install minicom
minicom -b 9600 -o -D /dev/ttyAMA0

Thanks for your help anyway!