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?
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Paul J THACKER <paul dot thacker at st dot com>
- Cc: ecos-devel at ecos dot sourceware dot org
- Date: Tue, 10 Jun 2008 23:45:51 +0200
- Subject: Re: How do I add a serial driver?
- References: <484EE45D.6040407@st.com>
On Tue, Jun 10, 2008 at 01:30:21PM -0700, Paul J THACKER wrote:
> I'm porting ECOS to a new platform, based on the ARM926. I cloned an
> existing platform and got everything to compile, but I can't figure out
> how to add the serial driver.
>
> I cloned an existing driver and added it to my cdl files. It shows up in
> Build->Packages, but when I try to add it, I get a message that says
> "Add and remove hardware packages by selecting a new hardware template".
>
> I tried a couple of other platforms with the same result. I'm clearly
> not understanding this process. Can anybody help?
Hardware packages should be part of the basic target template:
target h8max {
alias { "H8MAX" }
packages { CYGPKG_HAL_H8300
CYGPKG_HAL_H8300_H8300H
CYGPKG_HAL_H8300_H8300H_H8MAX
CYGPKG_IO_SERIAL_H8300_SCI
CYGPKG_DEVS_ETH_H8300_H8MAX
CYGPKG_DEVICES_WATCHDOG_H8300_H8300H
}
description "
The h8max target provides the packages need to run
eCos in the strawberry-linux.com H8MAX board."
}
Andrew