From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 17 Apr 2009 11:37:51 +0200 Subject: [U-Boot] UART2 Console in u-boot In-Reply-To: <49E84B99.8020604@deeopl.com> References: <49E83D98.6060400@deeopl.com> <200904171107.34385.sr@denx.de> <49E84B99.8020604@deeopl.com> Message-ID: <200904171137.51849.sr@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 On Friday 17 April 2009, prathika wrote: > i have ported u-boot this way to my board with few changes in the u-boot > source code and the board is up and i have tested stand alone > application execution also. So you did a "real" board port to your custom board? Or did you "just" change the yosemite files? > Now as my requirement is that my console should be on UART2 as my UART0 > and UART1 are coming out as RS 422 lines and only UART2 is RS232. I did > some patch up work on UART0 lines and tested my u-boot porting. Ah, I though you wanted the console on UART1. Ok, then my solution does not work for you. > I added a line > > #define UART2_BASE CFG_PERIPHERAL_BASE + 0x500 > > I have now changed as below and I commented checking for #define > UART0_CONSOLE and #define UART1_CONSOLE: > > #define UARTBASE UART2_BASE > > Is this OK?? Best would be to add the 3rd UART (UART2) to the SERIAL_MULTI infrastructure (see end of serial.c) and use this device as "stdin/stdout/.." in your default environment. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================