From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27837 invoked by alias); 10 Jun 2008 22:11:36 -0000 Received: (qmail 27819 invoked by uid 22791); 10 Jun 2008 22:11:34 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from s200aog16.obsmtp.com (HELO s200aog16.obsmtp.com) (207.126.144.130) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jun 2008 22:11:07 +0000 Received: from source ([167.4.1.35]) (using TLSv1) by eu1sys200aob016.postini.com ([207.126.147.11]) with SMTP; Tue, 10 Jun 2008 22:11:02 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.80.115]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 48EB0DAFE; Tue, 10 Jun 2008 22:10:56 +0000 (GMT) Received: from mail1.phx.st.com (mail1.phx.st.com [167.4.198.60]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id AA78248CA4; Tue, 10 Jun 2008 22:10:55 +0000 (GMT) Received: from [167.4.196.118] (cea05.phx.st.com [167.4.196.118]) by mail1.phx.st.com (MOS 3.7.5a-GA) with ESMTP id CPH17218 (AUTH "paul thacker"); Tue, 10 Jun 2008 15:10:54 -0700 (MST) Message-ID: <484EFC97.1050207@st.com> Date: Tue, 10 Jun 2008 22:11:00 -0000 From: Paul J THACKER User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Andrew Lunn Cc: ecos-devel@ecos.sourceware.org Subject: Re: How do I add a serial driver? References: <484EE45D.6040407@st.com> <20080610214551.GJ8456@lunn.ch> In-Reply-To: <20080610214551.GJ8456@lunn.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2008-06/txt/msg00005.txt.bz2 Andrew Lunn wrote: > 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 Hi Andrew, Thanks for responding. I added it to my template: target cartesio { alias { "Cartesio (ARM) board" cartesio } packages { CYGPKG_HAL_ARM CYGPKG_HAL_ARM_ARM9 CYGPKG_HAL_ARM_ARM9_CARTESIO CYGPKG_IO_SERIAL_ARM_CARTESIO } description " The Cartesio HAL package provides the support needed to run RedBoot on the ARM processor of the Cartesio. } package CYGPKG_IO_SERIAL_ARM_CARTESIO { alias { "Cartesio evaluation board" devs_serial_arm_cartesio cartesio_serial_driver } hardware directory devs/serial/arm/cartesio script ser_arm_cartesio.cdl description "Cartesio evaluation board serial drivers." } 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. Thanks, Paul