This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: How do I add a serial driver?
On Wed, Jun 11, 2008 at 09:29:24AM -0700, Paul J THACKER wrote:
> Andrew Lunn wrote:
>>> I added the code to packages/devs/serial/arm/cartesio/ - basically
>>> copied the AT91 code and modified it for my board.
>>>
>>> When I rebuild, the serial driver doesn't get compiled. The
>>> build/io/serial/ does get compiled. I'm sure I'm missing something
>>> basic, but I can't figure out what it is.
>>
>> Take a look at CYGPKG_IO_SERIAL_DEVICES.
>>
>> Andrew
>
> I enabled Hardware Serial Device Drivers (CYGPKG_IO_SERIAL_DEVICES) in
> configtool - no difference.
So you need to look at your configuration and work out why your serial
driver package is not active.
eg the top of the AT91 driver has:
cdl_package CYGPKG_IO_SERIAL_ARM_AT91 {
display "Atmel AT91 serial device drivers"
parent CYGPKG_IO_SERIAL_DEVICES
active_if CYGPKG_IO_SERIAL
active_if CYGPKG_HAL_ARM_AT91
We know you have CYGPKG_IO_SERIAL_DEVICES enabled. Does your
configuration have CYGPKG_IO_SERIAL enabled? Does your package still
require CYGPKG_HAL_ARM_AT91 which is not true for your hardware? Have
you made a typo in the name of the replacement?
Look at your ecos.ecc file. You can learn a lot from that.
Andrew