From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan O'Donoghue Date: Sun, 13 May 2007 13:25:36 +0100 Subject: [U-Boot-Users] PXA27x usbtty start up sequence In-Reply-To: <20070512231906.GG11070@enneenne.com> References: <20070512231906.GG11070@enneenne.com> Message-ID: <20070513132536.6ab397df@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 13 May 2007 01:19:07 +0200 Rodolfo Giometti 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