From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30504 invoked by alias); 5 Jul 2006 14:11:24 -0000 Received: (qmail 30494 invoked by uid 22791); 5 Jul 2006 14:11:21 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.170) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Jul 2006 14:11:17 +0000 Received: by ug-out-1314.google.com with SMTP id y2so1606566uge for ; Wed, 05 Jul 2006 07:11:15 -0700 (PDT) Received: by 10.66.220.17 with SMTP id s17mr7849969ugg; Wed, 05 Jul 2006 07:11:14 -0700 (PDT) Received: by 10.66.222.10 with HTTP; Wed, 5 Jul 2006 07:11:14 -0700 (PDT) Message-ID: <4dd15d180607050711m3738a085y4137bf1ff340bdfd@mail.gmail.com> Date: Wed, 05 Jul 2006 14:11:00 -0000 From: "David Ho" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Enabling flash memory support (custom board) X-SW-Source: 2006-07/txt/msg00010.txt.bz2 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