fromJPN
Posts: 14
Joined: Wed Dec 13, 2017 3:40 am

Issue for serial0 port on Stretch.

Mon Apr 02, 2018 6:24 am

Hello.
please tell me.

my environment:
2017-07-05-raspbian-jessie-lite.img
or
2018-03-13-raspbian-stretch-lite.img
on
raspberry pi 3 model B

I conected a serial cable bitwin a terminal and GPIO physical pins 15,16(serial0 port).
I modified "console=tty1" to "console=ttyAMA0" in "/boot/cmdline.txt" file.
I had append next two line to "/boot/config.txt" file bottom.
dtoverlay=pi3-disable-bt
enable_uart=1

When Jessie, there was no problem at all. ;)

But, for Stretch, it has following problem. :o
When you turn on the power, the login prompt is displayed.
If I do not enter anything here, the cursor should stay in there on forever.

But, Stretch, after 15 seconds, the cursor will move to the left end in automaticay.
If I finish log in within 15 seconds, the same thing happens on the command line.
After all, the cursor jumps over the command prompt and moves to the left end.

I have use the same terminal, same cable and same hardware as Jessie's time.
why? :(

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Issue for serial0 port on Stretch.

Mon Apr 02, 2018 6:59 am

It is a bug. I did find some information sometime ago but I forgot where as it has been noticed and does not really hurt.
Maybe it will be fixed sometime in the future.

viewtopic.php?t=192960
The road to insanity is paved with static ip addresses

fromJPN
Posts: 14
Joined: Wed Dec 13, 2017 3:40 am

Re: Issue for serial0 port on Stretch.

Mon Apr 02, 2018 7:16 am

Thank you very much for your quick reply. :o

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Issue for serial0 port on Stretch.

Mon Apr 02, 2018 8:36 am

fromJPN wrote:
Mon Apr 02, 2018 6:24 am

I conected a serial cable bitwin a terminal and GPIO physical pins 15,16(serial0 port).
I modified "console=tty1" to "console=ttyAMA0" in "/boot/cmdline.txt" file.
I had append next two line to "/boot/config.txt" file bottom.
dtoverlay=pi3-disable-bt
enable_uart=1
You need

Code: Select all

 console=serial0,115200 
in cmdline.txt

The UART is pin#8 GPIO14 TX and pin#10 GPIO15 RX
https://pinout.xyz/pinout/uart

That config stuff is all done for you with sudo raspi-config
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

fromJPN
Posts: 14
Joined: Wed Dec 13, 2017 3:40 am

Re: Issue for serial0 port on Stretch.

Mon Apr 02, 2018 10:59 pm

To Dougie Lawson

Thank you very much for your reply. ;)

What you wrote is correct.
I have been setting from the beginning as you are writing.
But when I write here I made a mistake.
I think that this problem is a bug as Ernst stated.

Return to “General discussion”