This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: a question about opening a serial port fax device as a file
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Indra Antonius Simalango <indra at vlsi dot itb dot ac dot id>
- Cc: eCos Disuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 20 Jul 2005 22:52:38 +0200
- Subject: Re: [ECOS] a question about opening a serial port fax device as a file
- References: <20050720181515.GG29741@lunn.ch> <Pine.LNX.4.33.0507210302040.8135-100000@ic.vlsi.itb.ac.id>
On Thu, Jul 21, 2005 at 03:08:19AM +0700, Indra Antonius Simalango wrote:
> Thank you, Mr Lunn.
>
> Here is my file eCos.ecc :
> --------------------------------------------------------------------------------
> cdl_component CYGPKG_IO_SERIAL_DEVICES {
> display "Hardware serial device drivers"
> Flavor : bool
> Default value : 0
> description "This option enables the hardware device drivers
> for the current platform"
>
> # Flavor: bool
> # No user value, uncomment the following line to provide one.
> # user_value 0
> # value_source default
> # Default value: 0
>
> # The following properties are affected by this value
> # option CYGPKG_IO_SERIAL_TESTS
> # Calculated: CYGPKG_IO_SERIAL_DEVICES ? "tests/serial1
> tests/serial2 tests/serial3 tests/serial4 tests/serial5 tests/tty1
> tests/tty2 tests/flow1 tests/flow2" : ""
> --------------------------------------------------------------------------------
>
> After changing this file eCos.ecc. , should I make any 'update' to my
> package? Or I could only just "save as" the file after changing?
http://ecos.sourceware.org/docs-latest/user-guide/manual-configuration.html
>
> I've also define FAXDEV = "/dev/serial1" , as mentioned in the last
> sentences. But I still encountered the same error message :
>
> 50:44 Error : can't open serial port /dev/serial1 : No such entity
>
> Pardon me, did I make any mistake (again) here?
Possibly. Look at the ecos.ecc file and find out the name of the
serial devices for your target. Maybe its called /dev/ser1 not
/dev/serial1.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss