[U-Boot-Users] PXA27x usbtty start up sequence
Rodolfo Giometti
giometti at enneenne.com
Mon May 14 08:35:07 CEST 2007
On Sun, May 13, 2007 at 01:25:36PM +0100, Bryan O'Donoghue wrote:
>
> Hmm, you might want to change
>
> unsigned int len = 0;
> while(len > 0) {
> usbtty_poll();
>
> space = maxlen - usbtty_output.size;
> if(space){
> /* Do stuff */
> }
> }
>
> to
>
>
> /* Not tested */
> unsigned int len = 0;
> while(len > 0) {
> usbtty_poll();
>
> /* Do stuff */
> }
>
> in __usbtty_puts()
Ok, I'll test it. This should remove the problem that the system
doesn't boot if no connected?
> puts() I guess _should_ be a 'best effort'. Better, still, maybe
> we could add an environment variable which would switch puts()
> between flow-control and 'best effort', so that people have the
> choice.
>
> /* Not tested */
> unsigned int len = 0;
> while(len > 0) {
> usbtty_poll();
> space = maxlen;
>
> if(environment_variable_use_tty_flow_control)
> space = maxlen - usbtty_output.size;
>
> if(space){
> /* Do stuff */
> }
> }
If I set environment_variable_use_tty_flow_control to "no", how I can
restore it to "yes"?
Thanks,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
More information about the U-Boot
mailing list