From mboxrd@z Thu Jan 1 00:00:00 1970 From: yasosyaso Date: Sun, 15 Jul 2007 23:03:54 -0700 (PDT) Subject: [U-Boot-Users] How console redirection is done In-Reply-To: References: <11573368.post@talk.nabble.com> <65487840707122317ve675e94x222e48968a8a730b@mail.gmail.com> Message-ID: <11609584.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Joey Oravec wrote: > > "Ori Idan" wrote in message > news:65487840707122317ve675e94x222e48968a8a730b at mail.gmail.com... >>I am sorry, I can not understand the question. >> U-boot always outputs to serial port. >> If you would like to change to another serial port look at the >> configuration file corresponding to your board under include/configs. > > That's not exactly true. After the initial console (bootup) you can use > more > than serial. > > There are a few functions like drv_lcd_init in lcd.c that create a > device_t > structure -- in my version they're all called within devices_init in > common/devices.c during boot. This defines a putc, puts, getc, and tstc to > handle I/O character by character. Once you call device_register() it will > available to the system. Using the environment variables stdin, stdout, > and > stderr you can choose which device is active, and console.c calls the > appropriate function pointer. Set the variable and you can be printing on > the LCD instead. > > Of course all this can be changed with a million CONFIG_ parameters, and > it > is a little strange if you have several consoles available and no default. > > -joey > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users > > -- View this message in context: http://www.nabble.com/How-console-redirection-is-done-tf4072301.html#a11609584 Sent from the Uboot - Users mailing list archive at Nabble.com.