This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Spi enable problem
- From: Andrew Lunn <andrew at lunn dot ch>
- To: sandip <sandip at masibus dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 22 Aug 2007 09:37:22 +0200
- Subject: Re: [ECOS] Spi enable problem
- References: <1187753982671.10006.PostMaster@masibus.com>
On Wed, Aug 22, 2007 at 09:09:44AM +0530, sandip wrote:
>
> I want to enable my SPI bus in SAM7XEK board.
>
> In configuration tool SPI driver package CYGPKG_DEVS_SPI_ARM_AT91 can not
> get enabled.
>
> I know that I have to add package for
> generic SPI. But when I am trying to add package from windows based
> configuration tool through build ----> packages and trying to add generic
> SPI package it is prompting that " Add and Remove hardware packages by
> selecting a new hardware template ".
>
> And another way is through Tools---->Administration. When I am going
> to Add generic SPI package it is asking for .epk file to be opened. I
> searched in my local drives that there is no such extension file is
> available.
>
> So, how can I add this package to my configuration. I think this is
> the same problem for Ethernet also.
You have two options.
1) Use ecosconfig. It ignores the hardware property and allows you to
add/remove anything.
2) Making this change to your ecos.db:
target at91sam7xek {
alias { "Atmel AT91SAM7XEK evaluation board" at91_at91sam7xek }
packages { CYGPKG_HAL_ARM
CYGPKG_HAL_ARM_AT91
CYGPKG_HAL_ARM_AT91SAM7
CYGPKG_HAL_ARM_AT91SAM7XEK
CYGPKG_IO_SERIAL_ARM_AT91
CYGPKG_DEVS_FLASH_AT91
CYGPKG_IO_SPI
CYGPKG_DEVS_SPI_ARM_AT91
CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC
CYGPKG_IO_USB
CYGPKG_IO_USB_SLAVE
CYGPKG_DEVS_USB_AT91
CYGPKG_DEVS_ETH_PHY
CYGPKG_DEVS_ETH_ARM_AT91
CYGPKG_
}
description "
The at91sam7xek target provides the packages needed to run eCos on an
Atmel AT91SAM7X-EK evaluation board."
}
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss