From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13138 invoked by alias); 23 Nov 2008 21:43:38 -0000 Received: (qmail 13085 invoked by uid 22791); 23 Nov 2008 21:43:37 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Nov 2008 21:42:36 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 794793B4007C; Sun, 23 Nov 2008 21:42:25 +0000 (GMT) X-Virus-Scanned: amavisd-new at ecoscentric.com Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9sDmHuH-iA0a; Sun, 23 Nov 2008 21:42:20 +0000 (GMT) Received: from delenn.bartv.net (hagrid.vpn.ecoscentric.com [192.168.145.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 507CB3B4006F; Sun, 23 Nov 2008 21:42:20 +0000 (GMT) Date: Sun, 23 Nov 2008 21:43:00 -0000 Message-Id: From: Bart Veer To: munz@speag.ch CC: ecos-devel@sourceware.org In-reply-to: <49148705.3090007@speag.ch> (munz@speag.ch) Subject: Re: What is the reason to... References: <4910602A.3090408@speag.ch> <49148705.3090007@speag.ch> 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-11/txt/msg00062.txt.bz2 >>>>> "Oliver" == oliver munz @ s p e a g writes: Oliver> In this case templates like: Oliver> target at91sam7sek { Oliver> alias { "Atmel AT91SAM7SEK evaluation board" at91_at91sam7sek } Oliver> packages { CYGPKG_HAL_ARM Oliver> CYGPKG_HAL_ARM_AT91 Oliver> CYGPKG_HAL_ARM_AT91SAM7 Oliver> CYGPKG_HAL_ARM_AT91SAM7SEK Oliver> CYGPKG_IO_SERIAL_ARM_AT91 Oliver> CYGPKG_DEVS_FLASH_AT91 Oliver> CYGPKG_DEVS_SPI_ARM_AT91 Oliver> CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC Oliver> CYGPKG_DEVS_USB_AT91 Oliver> } Oliver> description " Oliver> The at91sam7sek target provides the packages needed to run eCos Oliver> on an Oliver> Atmel AT91SAM7S-EK evaluation board." Oliver> } Oliver> should be changed? Oliver> They are missing the CYGPKG_IO_SPI and so on... As per http://ecos.sourceware.org/ml/ecos-devel/2008-11/msg00012.html, yes. However it looks like other changes are needed. If you just add CYGPKG_IO_SPI to the target definition (not template, that is something else) then you end up with SPI driver code even in executables that do not use SPI. Just build the default config, then do an objdump of install/tests/kernel/current/tm_basic, and you'll see the spi functions. Changing spi_at91.cdl, removing the -library=libextras.a from the compile spi_at91_init.cxx, sorts out that problem. However I don't have a suitable board handy right now so I cannot check that everything still works. So somebody needs to do some experimenting and provide a patch. Bart -- Bart Veer eCos Configuration Architect eCosCentric Limited The eCos experts http://www.ecoscentric.com/ Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071.