This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Enabling flash memory support (custom board)
- From: "David Ho" <davidkwho at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 5 Jul 2006 10:11:14 -0400
- Subject: [ECOS] Enabling flash memory support (custom board)
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