uboot-neo1973_defaultconsole_usbtty.patch

来自「Uboot常用的移植patches, 方便定制移植到s3c2440」· PATCH 代码 · 共 34 行

PATCH
34
字号
This patch ensures that even if no environment partition is present on a Neo1973device, the USB serial emulation will be the default console, not the serial port.This enables people with no debug board to always access the u-boot console, evenif their environment partition is gone.The only remaining case of bootloader lock-out is now when the environmentcontains stdin/stdout/stderr=serial settings.Index: u-boot/include/configs/neo1973_gta01.h===================================================================--- u-boot.orig/include/configs/neo1973_gta01.h+++ u-boot/include/configs/neo1973_gta01.h@@ -182,6 +182,7 @@  #define CONFIG_EXTRA_ENV_SETTINGS 					\ 	"usbtty=cdc_acm\0"						\+	"stderr=usbtty\0stdout=usbtty\0stdin=usbtty\0"			\ 	"bootargs_base=rootfstype=jffs2 root=/dev/mtdblock4 console=ttySAC0,115200 console=tty0 loglevel=8\0" \ 	"" Index: u-boot/include/configs/neo1973_gta02.h===================================================================--- u-boot.orig/include/configs/neo1973_gta02.h+++ u-boot/include/configs/neo1973_gta02.h@@ -189,6 +189,7 @@  #define CONFIG_EXTRA_ENV_SETTINGS 					\ 	"usbtty=cdc_acm\0"						\+	"stderr=usbtty\0stdout=usbtty\0stdin=usbtty\0"			\ 	"bootargs_base=rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=8\0" \ 	"" 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?