This is the mail archive of the ecos-discuss@sourceware.org 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: Question on serial ports


Hi, sorry to post on this yet again, but I built both
the p2106 and lpcmt targets, and both appear to have the
same (forgive me) braindamaged I/O as the mcb2100 board
target. I tried:

C:\projects\testbuild>ecosconfig add CYGPKG_IO_SERIAL_GENERIC_16X5X
Package `CYGPKG_IO_SERIAL_GENERIC_16X5X' is already loaded.

And the configurator appears to believe that this is already selected.
However, after building, I don't see the ser_16x5x.o file anywhere
in the build. ser_16x5x.c is the file 
../ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x which
contains the 16x5x general support. Instead it is including:

09/14/2007  01:47 PM            23,264 io_serial_haldiag.o
09/14/2007  01:47 PM            26,808 io_serial_serial.o
09/14/2007  01:47 PM            21,488 io_serial_tty.o

haldiag is the package that includes the stripped down, polling
mode only I/O.

What's the trick to getting this package (really) included in the
build?

Thank you,

Scott Moore

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Scott Moore
Sent: Thursday, September 13, 2007 2:12 PM
To: Andrew Lunn
Cc: Ecos-Discuss; Steve Gaskill
Subject: RE: [ECOS] Question on serial ports

Thank you. 

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: Thursday, September 13, 2007 2:04 PM
To: Scott Moore
Cc: Ecos-Discuss; Steve Gaskill
Subject: Re: [ECOS] Question on serial ports

> The questions are:
> 
> 1. Does this indeed indicate that a full (not diagnostic) serial port 
> implementation was never completed for the MCB2100 board?
> 
> 2. What was the purpose of the directory 
> ../packages/devs/serial/arm/lpc2xxx/..? Was this just a placeholder 
> for where a device might go?

Take a look at the targets which use this:

target p2106 {
        alias { "Olimex evaluation board LPC-P2106" p2106 }
        packages { CYGPKG_HAL_ARM
                   CYGPKG_HAL_ARM_LPC2XXX
                   CYGPKG_HAL_ARM_LPC2XXX_P2106
                   CYGPKG_IO_SERIAL_GENERIC_16X5X
                   CYGPKG_IO_SERIAL_ARM_LPC2XXX
                   CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX
        }
        description "
        The p2106 target provides the packages needed to run eCos on the
        LPC-P2106 evaluation board from Olimex."
}

target lpcmt {
        alias { "Olimex evaluation board LPC-LPCMT" lpcmt }
        packages { CYGPKG_HAL_ARM
                   CYGPKG_HAL_ARM_LPC2XXX
                   CYGPKG_HAL_ARM_LPC2XXX_LPCMT
                   CYGPKG_IO_SERIAL_GENERIC_16X5X
                   CYGPKG_IO_SERIAL_ARM_LPC2XXX
                   CYGPKG_DEVICES_WATCHDOG_ARM_LPC2XXX
        }
        description "
        The lpcmt target provides the packages needed to run eCos on the
        LPC-LPCMT evaluation board from Olimex."
}

Looking at this suggests that the LPC2XXX serial driver is just what is needed to make the generic 16x5x serial driver work on LPC targets. Take a closer look at one of the these targets and all should become clear...

       Andrew

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
 


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
 


--
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]