From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17745 invoked by alias); 11 Jun 2008 16:48:43 -0000 Received: (qmail 17737 invoked by uid 22791); 11 Jun 2008 16:48:43 -0000 X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jun 2008 16:48:25 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1K6TUi-0000DG-00; Wed, 11 Jun 2008 18:48:20 +0200 Date: Wed, 11 Jun 2008 16:48:00 -0000 From: Andrew Lunn To: Paul J THACKER Cc: ecos-devel@ecos.sourceware.org Subject: Re: How do I add a serial driver? Message-ID: <20080611164820.GA523@lunn.ch> References: <484EE45D.6040407@st.com> <20080610214551.GJ8456@lunn.ch> <484EFC97.1050207@st.com> <20080611065454.GK8456@lunn.ch> <484FFD64.10307@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <484FFD64.10307@st.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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/msg00008.txt.bz2 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