public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Implementation of serial console redirection in uboot
@ 2007-07-17  5:41 yasothabalanr at gmail.com
  2007-07-17 12:54 ` Joey Oravec
  0 siblings, 1 reply; 2+ messages in thread
From: yasothabalanr at gmail.com @ 2007-07-17  5:41 UTC (permalink / raw)
  To: u-boot

I am using Uboot as my boot loader. 

Actually here I want to do console redirection through USB port. 

So that I have to modify console redirection via serial code to console redirection via of USB 

To do that first I want to know how serial console redirection is done in the UBOOT code. i.e., how in uboot the "serial console redirection" is implemented. 

For console redirection(serial) there should be some code, somewhere in the UBoot. I want to know how and where(in file,in which function) the console redirection is implemented. [I have found how the configuration is done for console redirection] 

Thanks yaso 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] Implementation of serial console redirection in uboot
  2007-07-17  5:41 [U-Boot-Users] Implementation of serial console redirection in uboot yasothabalanr at gmail.com
@ 2007-07-17 12:54 ` Joey Oravec
  0 siblings, 0 replies; 2+ messages in thread
From: Joey Oravec @ 2007-07-17 12:54 UTC (permalink / raw)
  To: u-boot

<yasothabalanr@gmail.com> wrote in message 
news:22587334.1242731184650886880.JavaMail.nabble at isper.nabble.com...
>I am using Uboot as my boot loader.
>
> Actually here I want to do console redirection through USB port.
>
> So that I have to modify console redirection via serial code to console 
> redirection via of USB
>
> To do that first I want to know how serial console redirection is done in 
> the UBOOT code. i.e., how in uboot the "serial console redirection" is 
> implemented.
>
> For console redirection(serial) there should be some code, somewhere in 
> the UBoot. I want to know how and where(in file,in which function) the 
> console redirection is implemented. [I have found how the configuration is 
> done for console redirection]

You have posted the same question several times. I have already responded to 
you. In case you deleted the email, see 
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30132

File common/console.c and common/devices.c contain everything. When you 
device_register(), you're inserting a new item into the devlist. When you 
set the stdin, stdout, or stderr you're calling console_setfile() which 
assigns a function pointer for each I/O function. When u-boot wants to read 
or display a character it follows the function pointer stored in global 
data.

Please read my previous posting. Use lcd.c as an example. Write 4 new 
functions that implement getc, tstc, putc, and puts. Register these as I/O 
using device_register() and choose them by setting stdin, stdout, and 
stderr.

-joey 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-17 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17  5:41 [U-Boot-Users] Implementation of serial console redirection in uboot yasothabalanr at gmail.com
2007-07-17 12:54 ` Joey Oravec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox