Correct config option for accessing UART1 for Orange Pi Zero

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Correct config option for accessing UART1 for Orange Pi Zero

Post by baz123 »

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
Last edited by baz123 on Tue Feb 14, 2017 10:16 pm, edited 3 times in total.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Correct config option

Post by Fourdee »

baz123 wrote: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:

Code: Select all

/boot/armbianEnv.txt
Serial console is always enabled on OPi Zero, due to it being headless. Same for NanoPi Neo's.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Correct config option for tty

Post by baz123 »

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:

Code: Select all

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/f ... d&tid=2441
https://forum.armbian.com/index.php/top ... able-uart/

Cheers
Post Reply