* [ECOS] Enabling flash memory support (custom board)
@ 2006-07-05 14:11 David Ho
2006-07-05 14:55 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: David Ho @ 2006-07-05 14:11 UTC (permalink / raw)
To: ecos-discuss
Hi,
I am attempting to enable AMD/Spansion flash support for redboot but
when I examined ecos.ecc, it is not active.
# AMD AM29XXXXX FLASH memory support
# FLASH memory device support for AMD AM29XXXXX
#
cdl_package CYGPKG_DEVS_FLASH_AMD_AM29XXXXX {
# Packages cannot be added or removed, nor can their version be changed,
# simply by editing their value. Instead the appropriate configuration
# should be used to perform these actions.
# This option is not active
# ActiveIf constraint: CYGPKG_IO_FLASH
# CYGPKG_IO_FLASH == current
# --> 1
# ActiveIf constraint: CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED
# CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED (unknown) == 0
# --> 0
};
Looking around, CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED is not set, I
suppose I should not set this manually and let the inference engine
figure it out.
The question becomes, how do I do that?
I have included in my ROM configuration IO_FLASH and DEV_FLASH_AMD,
enabled FIS and FCONFIG.
Is there anything I missed?
Thanks,
David
diff --git a/packages/hal/arm/at91/satmodem/current/misc/redboot_ROM.ecm
b/packages/hal/arm/at91/satmodem/current/misc/redboot_ROM.ecm
index b6fa905..ad4032d 100644
--- a/packages/hal/arm/at91/satmodem/current/misc/redboot_ROM.ecm
+++ b/packages/hal/arm/at91/satmodem/current/misc/redboot_ROM.ecm
@@ -9,13 +9,15 @@ cdl_savefile_command cdl_interface { val
cdl_configuration eCos {
description "" ;
- hardware eb40a ;
+ hardware satmodem ;
template redboot ;
package -hardware CYGPKG_HAL_ARM current ;
package -hardware CYGPKG_HAL_ARM_AT91 current ;
+ package -hardware CYGPKG_DEVS_FLASH_AMD_AM29XXXXX current ;
package -template CYGPKG_HAL current ;
package -template CYGPKG_INFRA current ;
package -template CYGPKG_REDBOOT current ;
+ package CYGPKG_IO_FLASH current ;
};
cdl_option CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE {
@@ -51,11 +53,11 @@ cdl_component CYGBLD_BUILD_REDBOOT {
};
cdl_option CYGOPT_REDBOOT_FIS {
- user_value 0
+ user_value 1
};
cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
- user_value 0
+ user_value 1
};
cdl_option CYGBLD_BUILD_REDBOOT_WITH_EXEC {
--
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] 3+ messages in thread
* Re: [ECOS] Enabling flash memory support (custom board)
2006-07-05 14:11 [ECOS] Enabling flash memory support (custom board) David Ho
@ 2006-07-05 14:55 ` Gary Thomas
2006-07-05 15:14 ` David Ho
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2006-07-05 14:55 UTC (permalink / raw)
To: David Ho; +Cc: ecos-discuss
David Ho wrote:
> Hi,
>
> I am attempting to enable AMD/Spansion flash support for redboot but
> when I examined ecos.ecc, it is not active.
>
> # AMD AM29XXXXX FLASH memory support
> # FLASH memory device support for AMD AM29XXXXX
> #
> cdl_package CYGPKG_DEVS_FLASH_AMD_AM29XXXXX {
> # Packages cannot be added or removed, nor can their version be changed,
> # simply by editing their value. Instead the appropriate configuration
> # should be used to perform these actions.
>
> # This option is not active
> # ActiveIf constraint: CYGPKG_IO_FLASH
> # CYGPKG_IO_FLASH == current
> # --> 1
> # ActiveIf constraint: CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED
> # CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED (unknown) == 0
> # --> 0
> };
>
>
> Looking around, CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED is not set, I
> suppose I should not set this manually and let the inference engine
> figure it out.
>
> The question becomes, how do I do that?
>
> I have included in my ROM configuration IO_FLASH and DEV_FLASH_AMD,
> enabled FIS and FCONFIG.
>
> Is there anything I missed?
>
Your platform has to provide the implementation details for the
FLASH driver. Look around at how other platforms do it, e.g. the
A&M Adder uses this driver.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
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] 3+ messages in thread
* Re: [ECOS] Enabling flash memory support (custom board)
2006-07-05 14:55 ` Gary Thomas
@ 2006-07-05 15:14 ` David Ho
0 siblings, 0 replies; 3+ messages in thread
From: David Ho @ 2006-07-05 15:14 UTC (permalink / raw)
To: Gary Thomas; +Cc: ecos-discuss
On 7/5/06, Gary Thomas <gary@mlbassoc.com> wrote:
> Your platform has to provide the implementation details for the
> FLASH driver. Look around at how other platforms do it, e.g. the
> A&M Adder uses this driver.
I found that after a bit of digging myself. Should have looked harder :)
Thanks, David
--
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] 3+ messages in thread
end of thread, other threads:[~2006-07-05 15:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 14:11 [ECOS] Enabling flash memory support (custom board) David Ho
2006-07-05 14:55 ` Gary Thomas
2006-07-05 15:14 ` David Ho
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).