Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Disable u-boot serial console

Featured Replies

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,

  • Author

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

 

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" \

 

 

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)

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

 

 

Anyone know how to completely disable console output for ttyS2 on RK3328?

Are there also getty services using it by default?

When I go to /dev there are only files for ttyS0, ttyS1 & ttyS3.

I need to have console completely disabled for ttyS2 since I need to use bluetooth over ttyS2.

Bluetooth chip is a RTL8723DS that is sdio + uart.

 

When Armbian for RK3328 is build, it shows this message.

How to stop it from enabling ttyS2?

o.k. ] Enabling serial console [ ttyS2 ]
 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.