0
Kimberly

Disable u-boot serial console

Recommended Posts

I'm testing with bananapi m1 plus(ARMBIAN 5.31 stable Debian GNU/Linux 8 jessie 4.11.6-sunxi)

 

I want to remove booting output both in the lcd screen and the serial console(because I am using the ttys0 for other purpose), so changed /boot/boot.cmd.

I found these two line,

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

and changed it with those two lines below.

if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=tty3"; fi
if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=tty3"; fi

I was able to remove booting output after kernel, but I wasn't for the u-boot booting output.

 

I also tried setenv stdout from serial,vga to vga. By this, I could remove some part of the booting output in the serial console, but I still have this in the serial console.

U-Boot SPL 2017.05-armbian (Jun 15 2017 - 02:10:40)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.05-armbian (Jun 15 2017 - 02:10:40 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
HDMI connected: Setting up a 800x480 dvi console (overscan 0x0)
Error: no valid bmp image at 66000000
In:    serial
Out:   vga
Err:   vga
U

I want to also get rid of this. I tried searching in the web about this, and found that I should set these and compile the kernel and make patch

CONFIG_SILENT_CONSOLE
CONFIG_SYS_DEVICE_NULLDEV
CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC

http://developer.toradex.com/knowledge-base/how-to-disable-enable-debug-messages-in-linux

 

However, I cannot find which file I should insert those three lines to.

Can anybody help me how to disable u-boot serial console output?

 

Thanks,

Share this post


Link to post
Share on other sites

Igor,

 

Thanks for the reply. The problem is I want to remove both the screen message and the serial console message from ttyS0. With this patch it seems that there still be a serial console message. I think the message below should be removed from u-boot.

 

U-Boot SPL 2017.05-armbian (Jun 15 2017 - 02:10:40)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.05-armbian (Jun 15 2017 - 02:10:40 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
HDMI connected: Setting up a 800x480 dvi console (overscan 0x0)
Error: no valid bmp image at 66000000
In:    serial
Out:   vga
Err:   vga
U

 

Share this post


Link to post
Share on other sites

Try this :
 

Spoiler

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -487,8 +487,8 @@ extern int soft_i2c_gpio_scl;

 #ifdef CONFIG_VIDEO
 #define CONSOLE_STDOUT_SETTINGS \
-	"stdout=serial,vga\0" \
-	"stderr=serial,vga\0"
+	"stdout=\0" \
+	"stderr=\0"
 #else
 #define CONSOLE_STDOUT_SETTINGS \
 	"stdout=serial\0" \

 

 

Share this post


Link to post
Share on other sites

I'm in the same situation, I was able to hide all the boot messages after u-boot via settings in armbianEnv.txt.

 

Then I copied the SD to eMMC (faced this issue so I had to changed the boot script and regenerate) and updated the bootloader via nand-sata-install and now I have a verbose u-boot...

 

How should I apply the patch mentioned above ? Compile u-boot ? Any guidance on how to proceed ?

 

Thanks in advance for your help guys, much appreciated

 

OrangepiPC+ / 5.73 Jessie Legacy (yes, I know it's old but I need 'advanced' graphic control)

Share this post


Link to post
Share on other sites

How to disable the Serial Console log in LCD during the U-Boot stage? 

I am using Lime2 Rev.K board "A20-OLinuXino-LIME2-e4Gs16M" with a 7" LCD. Image used is "Armbian_5.89 with Ubuntu bionic".

There is a serial console log displayed on the LCD during the U-Boot stage which stays on for a brief period of less than 5 seconds. 
 

Quote

 

Printenv:: (only selected outputs..)

 

console=ttyS0,115200
lcd_olinuxino=7859
monitor=lcd
serial#=00007f98
stdout=serial,vga

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0