From: Wolfgang Denk Date: Sun, 20 May 2012 21:13:03 +0200 Subject: [U-Boot] [PATCH] README: Fix how to for serial console when CONFIG_CFB_CONSOLE is defined In-Reply-To: <1336593952-5808-1-git-send-email-fabio.estevam@freescale.com> References: <1336593952-5808-1-git-send-email-fabio.estevam@freescale.com> Message-ID: <20120520191303.E419820648D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, In message <1336593952-5808-1-git-send-email-fabio.estevam@freescale.com> you wrote: > Fix how to force serial console when CONFIG_CFB_CONSOLE is defined. > > Tested on a mx51evk board. > > Signed-off-by: Fabio Estevam > --- > README | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/README b/README > index 79016e6..9fc4618 100644 > --- a/README > +++ b/README > @@ -615,7 +615,8 @@ The following options need to be configured: > > When CONFIG_CFB_CONSOLE is defined, video console is > default i/o. Serial console can be forced with > - environment 'console=serial'. > + by placing 'setenv("stdout", "serial");' inside > + board_late_init(). > > When CONFIG_SILENT_CONSOLE is defined, all console > messages (by U-Boot and Linux!) can be silenced with I think it is actually a pretty bad idea to do this. One pretty basic rule in U-Boot is not to forcibly mess with environment variable settings that affect operation of U-Boot when the user might want to do things differently - otherwise we could as well hard-code behaviour in the first place. In this situation, no code is needed to perform such an operation. If you want to do this, just enable the PREBOOT feature and define a default "preboot" command as "setenv stdout serial". THe effect is the same, but now the user still has a chance to change behavious as he deems fit. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "In Christianity neither morality nor religion come into contact with reality at any point." - Friedrich Nietzsche