Jump to content
serene

How to enable serial console in 2S?

Recommended Posts

Hi,

How do I enable serial-console in 2S?

I am running TinkerOS Debian 10, and there is no extlinux folder nor extlinux.conf

I found /boot/config.txt and un-commented "intf:uart0=off", to no avail.

Share this post


Link to post
Share on other sites

hello @serene

  1. Connect Tinker Board 2S to PC with a USB serial cable
  2. On PC, open Putty and select Serial.
  3. The Serial line can be checked from Windows >Device Manager >Ports (COM & LPT). The speed is 115200 baud.
  4. Click the Open button on Putty and power the board, and some boot logs will be printed on Putty from PC

tinkerboard2s_uart1.jpg 

 

image.png

Share this post


Link to post
Share on other sites
18 hours ago, tooz said:

hello @serene

  1. Connect Tinker Board 2S to PC with a USB serial cable
  2. On PC, open Putty and select Serial.
  3. The Serial line can be checked from Windows >Device Manager >Ports (COM & LPT). The speed is 115200 baud.
  4. Click the Open button on Putty and power the board, and some boot logs will be printed on Putty from PC

tinkerboard2s_uart1.jpg 

 

 

image.png

I see, so that's the Debug UART.

Is it possible to enable console on UART0 or UART1 at boot up? What should I put in boot kernel parameter - /boot/config.txt or /boot/cmdline.txt?

In /boot/config.txt I enabled uart1 by setting "intf:uart0=on" and also "console=ttyS1,115200n8" to no avail. Or should I use "console=ttyS0" instead?

I left /boot/cmdline.txt empty.

Edited by serene
typo

Share this post


Link to post
Share on other sites

hello @serene

you can use overlay to enable console on UART0 or UAR1 at bootup,

change the last line of overlay= in /boot/config.txt to overlay=console-uart0-overlay
 
there's no need to edit cmdline.txt 

Share this post


Link to post
Share on other sites

hello

to activate the uart, I change the /boot/config.txt

1. last line => overlay=console-uart0-overlay

2. intf:uart0=off => intf-uart0=on

is that all? but, I can't connect the uart0.

Is there anything else I need to configure?

 

$ dmesg | grep tty

[    0.000000] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal  androidboot.slot_suffix= androidboot.serialno=987cee5e97234e00 root=/dev/mmcblk1p9  rw rootwait earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 console=ttyFIQ0 rootfstype=ext4 coherent_pool=1m

[    0.560088] Registered FIQ tty driver

[    1.910761] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 37, base_baud = 1500000) is a 16550A

[ 2949.553543] ttyS0 - failed to request DMA, use interrupt mode

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...