From 352b2584d2b168ce8701a4ece7acef5036602e3b Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 10 Nov 2018 21:16:39 +0100 Subject: [PATCH] [ sunxi ] fixed boot console output to match reality. In "both" mode you can have serial console login, but boot log goes to HDMI. In "serial" you (current "both" defaults) you get boot log to serial console, console login and blinking cursor on HDMI which is hard to spot. Lot's of people thinks board doesn't work ... --- config/bootscripts/boot-sunxi.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/bootscripts/boot-sunxi.cmd b/config/bootscripts/boot-sunxi.cmd index e5c93ec39d..78bf7839db 100644 --- a/config/bootscripts/boot-sunxi.cmd +++ b/config/bootscripts/boot-sunxi.cmd @@ -28,8 +28,8 @@ fi if test "${logo}" = "disabled"; then setenv logo "logo.nologo"; fi -if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=tty1"; fi -if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "${consoleargs} console=ttyS0,115200"; fi +if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=ttyS0,115200 console=tty1"; fi +if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200"; fi # get PARTUUID of first partition on SD/eMMC it was loaded from # mmc 0 is always mapped to device u-boot (2016.09+) was loaded from