Kimberly Posted June 29, 2017 Posted June 29, 2017 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, 0 Quote
Igor Posted June 29, 2017 Posted June 29, 2017 Just use / enable this patch: https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/remove-boot-messages-from-hdmi.patch.disabled 0 Quote
Kimberly Posted June 29, 2017 Author Posted June 29, 2017 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 0 Quote
Igor Posted June 30, 2017 Posted June 30, 2017 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" \ 0 Quote
zzz Posted May 11, 2019 Posted May 11, 2019 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) 0 Quote
Tejas SJ Posted August 14, 2019 Posted August 14, 2019 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 0 Quote
mo123 Posted March 19, 2022 Posted March 19, 2022 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 ] 0 Quote
Recommended Posts
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.