[ECOS] Building dl_edb7xxx for cygwin?

Jonathan Larmour jlarmour@redhat.com
Mon Mar 26 11:11:00 GMT 2001


"Lewin A.R.W. Edwards" wrote:
> 
> > > io.c:139: `FIONREAD' undeclared (first use in this function)
> >
> >I think you may be able to get away with changing CharReady to always
> >return 1, at the expense of it being in a busy loop.
> 
> This doesn't work, because dl_edb7xxx.c flushes the input queue with:
> 
> while (CharReady(lPort))
> {
> cChar = ReceiveChar(lPort);
> }
> 
> This code hangs with your suggested change.
> 
> If I comment out that "flush input queue" code (it occurs twice in
> dl_edb7xxx.c) I get something that looks like it's working but I'm not sure
> if it really is (for instance, the "loading code" count doesn't get to 100%
> and the board doesn't boot after the download is complete).

IIRC the loading code never reaches 100% even when it works.
 
> I really do suggest you update the Windows install instructions for eCos to
> state that current gcc snapshots can't be compiled in cygwin right now

Or I could spend the time to try and track down the bug. What list were you
discussing it with gcc folks on? I had a look and couldn't find it...

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Ecos-discuss mailing list