From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Grant Edwards Cc: ecos Subject: Re: [ECOS] Ethernet and Serial drivers for Linux target? Date: Thu, 11 Nov 1999 09:10:00 -0000 Message-id: <382AF88B.95F35E45@cygnus.co.uk> References: <19991110143853.A18972@visi.com> X-SW-Source: 1999-11/msg00038.html Grant Edwards wrote: > > I told management that it should be possible to write serial port and > Ethernet device drivers for the Linux eCos target, thus allowing > people to do eCos application development on Linux boxes. Of course > the performance and timing won't be the same, but for basic application > functionality it should be good enough for many things. > > Has anybody done this? I assume that all you have to do is to map > cyg_io_read() and cyg_io_write() into read() and write() calls, and > map cyg_io_get_config() and cyg_io_set_config() into appropriate > ioctl() calls? One other issue that no-one else has mentioned is that you can't make calls to the system read() and write(), ioctl() etc. directly. To do that would involve linking with glibc, and that would simply not work. Instead all the current interfacing is done using kernel system calls directly. Of course, this doesn't prevent you having a separate native linux program acting as a server for the client requests, communicating using fd's. And that's where Bart's solution would come in, in the thread in October he mentioned. Jifl -- Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762 "I used to have an open mind but || Get yer free open source RTOS's here... my brains kept falling out." || http://sourceware.cygnus.com/ecos Help fight spam! http://spam.abuse.net/ These opinions are all my own fault