public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Bart Veer <bartv@ecoscentric.com>
To: munz@speag.ch
Cc: ecos-devel@sourceware.org
Subject: Re: What is the reason to...
Date: Sun, 23 Nov 2008 21:43:00 -0000	[thread overview]
Message-ID: <pn1vx2ruf8.fsf@delenn.bartv.net> (raw)
In-Reply-To: <49148705.3090007@speag.ch> (munz@speag.ch)

>>>>> "Oliver" == oliver munz @ s p e a g <munz@speag.ch> 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.

  parent reply	other threads:[~2008-11-23 21:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04 14:46 oliver munz @ s p e a g
2008-11-04 18:57 ` Bart Veer
2008-11-07 18:20   ` oliver munz @ s p e a g
2008-11-08 21:40     ` Gábor Török
2008-11-08 23:25       ` Oliver Munz @ SNR
2008-11-09 11:08         ` Gary Thomas
2008-11-09 13:52           ` Bart Veer
2008-11-09 13:46       ` Bart Veer
2008-11-09 15:34         ` Frank Pagliughi
2008-11-09 13:35     ` Bart Veer
2008-11-23 21:43     ` Bart Veer [this message]
2008-11-18 17:16   ` Jonathan Larmour
2008-11-18 18:39     ` Bart Veer
2008-11-18 18:45       ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pn1vx2ruf8.fsf@delenn.bartv.net \
    --to=bartv@ecoscentric.com \
    --cc=ecos-devel@sourceware.org \
    --cc=munz@speag.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).