[U-Boot-Users] PXA27x usbtty start up sequence

Bryan O'Donoghue bodonoghue at codehermit.ie
Sun May 13 14:25:36 CEST 2007


On Sun, 13 May 2007 01:19:07 +0200
Rodolfo Giometti <giometti at enneenne.com> wrote:

> Using serial console with a bootdelay of only 1 second is ok, but
> using usbtty is not. In fact is not possible to stop boot sequence
> anymore unless bootdelay is increased at least 10-15 seconds needed
> to run the terminal on the new ttyUSB0 device and to enter the
> password.
> 
> Also I notice that when usbtty is selected as the default console
> the system doesn't start up until I connect the kermit/minicom to
> the new ttyUSB0 device.


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()


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 */
	}
}


Bryan




More information about the U-Boot mailing list