Correct config option for accessing UART1 for Orange Pi Zero

I’m running DietPi on an OrangePi Zero.

I want to get to the equivalent of a cmdline.txt command of ‘console=tty1’. Do I need serial console enabled or disabled to do this?

Is there any way of seeing what the cmdline.txt equivalent used at boot up is?

Cheers

I think the file you are after is:

/boot/armbianEnv.txt

Serial console is always enabled on OPi Zero, due to it being headless. Same for NanoPi Neo’s.

Thanks.

What I discovered is that I needed to go into the dietpi-config, under advanced options disable the serial console. I then found out I could view what the cmdline.txt effectively was by using:

dmesg | grep tty

By trial end error using minicom I found what I was looking for was on ttyS1 i.e. the UART on pins 8 & 10.

Reference that helped:
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=2441
https://forum.armbian.com/index.php/topic/1524-orange-pi-one-how-to-enable-uart/

Cheers