public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Spi enable problem
@ 2007-08-22  3:43 sandip
  2007-08-22  7:37 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: sandip @ 2007-08-22  3:43 UTC (permalink / raw)
  To: ecos-discuss


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.

Regards

Sandip



   

-------------------------------------------------------
Masibus Process Instruments (P) Ltd, Gandhinagar, India




-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Spi enable problem
  2007-08-22  3:43 [ECOS] Spi enable problem sandip
@ 2007-08-22  7:37 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-08-22  7:37 UTC (permalink / raw)
  To: sandip; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-22  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-22  3:43 [ECOS] Spi enable problem sandip
2007-08-22  7:37 ` Andrew Lunn

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).