This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a question about opening a serial port fax device as a file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]