This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[eb40]problem about change to another type ?


hi list,
I have one customed board based on AT91M40800(AT91X40),flash type:AMD
AM29F800B
so i step of build->templates: choose eb40 and redboot.
based advice,I change three file :ecos.db,flash_eb40.cdl and
eb40_flash.c,detailed
change is behind.
compile success and download to flash, but serial info as follows:
+FLASH: driver init failed: Driver does not support device
Sorry, FLASH config exceeds available space in FIS directory
RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 16:35:53, May 27 2004
Platform: Atmel AT91/EB40 (ARM7TDMI) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x02000000-0x02200000, [0x02005a98-0x021fd000] available
FLASH: 0x00000000 - 0x00000001, 0 blocks of 0x00000000 bytes each.
RedBoot> 
problem)what i forget to change,any advice will help me.

detailed changes:
diff -Naur
ecos_orig/ecos/packages/devs/flash/arm/eb40/current/cdl/flash_eb40.cdl
ecos/packages/devs/flash/arm/eb40/current/cdl/flash_eb40.cdl
---
ecos_orig/ecos/packages/devs/flash/arm/eb40/current/cdl/flash_eb40.cdl	2003-08
-05 16:57:26.000000000 +0800
+++ ecos/packages/devs/flash/arm/eb40/current/cdl/flash_eb40.cdl	2004-05-27
16:27:06.000000000 +0800
@@ -56,15 +56,15 @@
     parent        CYGPKG_IO_FLASH
     active_if     CYGPKG_IO_FLASH
     requires      CYGPKG_HAL_ARM_AT91
-    requires      CYGPKG_DEVS_FLASH_ATMEL_AT29CXXXX
-
+    requires      CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
+    requires      CYGHWR_DEVS_FLASH_AMD_AM29F800
     compile       eb40_flash.c
 
     # Arguably this should do in the generic package
     # but then there is a logic loop so you can never enable it.
-    cdl_interface CYGINT_DEVS_FLASH_ATMEL_AT29CXXXX_REQUIRED {
-        display   "Generic Atmel AT29CXXXX driver required"
+    cdl_interface CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED {
+        display   "Generic Atmel AM29XXXXX driver required"
     }
 
-    implements    CYGINT_DEVS_FLASH_ATMEL_AT29CXXXX_REQUIRED
+    implements    CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED
 }
diff -Naur
ecos_orig/ecos/packages/devs/flash/arm/eb40/current/src/eb40_flash.c
ecos/packages/devs/flash/arm/eb40/current/src/eb40_flash.c
---
ecos_orig/ecos/packages/devs/flash/arm/eb40/current/src/eb40_flash.c	2003-08-0
5 16:57:26.000000000 +0800
+++ ecos/packages/devs/flash/arm/eb40/current/src/eb40_flash.c	2004-05-27
16:30:26.000000000 +0800
@@ -53,12 +53,13 @@
 
 // The EB40 is equipped with one single AT29LV1024 flash chip.
 
-#define CYGPKG_DEVS_FLASH_ATMEL_AT29LV1024
+#define CYGPKG_DEVS_FLASH_AMD_AM29F800
 #define CYGNUM_FLASH_INTERLEAVE	1
 #define CYGNUM_FLASH_SERIES	1
+#define CYGNUM_FLASH_WIDTH      (8)
 #define CYGNUM_FLASH_BASE 	0x01000000
 
-#include "cyg/io/flash_at29cxxxx.inl"
+#include "cyg/io/flash_am29xxxxx.inl"
 
 
 // ------------------------------------------------------------------------
diff -Naur ecos_orig/ecos/packages/ecos.db ecos/packages/ecos.db
--- ecos_orig/ecos/packages/ecos.db	2004-04-29 12:13:44.000000000 +0800
+++ ecos/packages/ecos.db	2004-05-27 15:16:54.000000000 +0800
@@ -3792,9 +3792,10 @@
                    CYGPKG_HAL_ARM_AT91
                    CYGPKG_HAL_ARM_AT91_EB40
                    CYGPKG_DEVS_FLASH_EB40
-                   CYGPKG_DEVS_FLASH_ATMEL_AT29CXXXX
+                   CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
                    CYGPKG_IO_SERIAL_ARM_AT91
                    CYGPKG_DEVICES_WATCHDOG_ARM_AT91
+                   CYGPKG_IO_FLASH
         }
         description "
         The eb40 target provides the packages needed to run eCos on an
Atmel
@@ -3810,6 +3811,7 @@
                    CYGPKG_DEVS_FLASH_ATMEL_AT49XXXX
                    CYGPKG_IO_SERIAL_ARM_AT91
                    CYGPKG_DEVICES_WATCHDOG_ARM_AT91
+                   CYGPKG_IO_FLASH
         }
         description "
 	The eb40a target provides the packages needed to run eCos on an Atmel






--http://www.eyou.com
--Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä  ÓïÒôÓʼþ  Òƶ¯ÊéÇ©  ÈÕÀú·þÎñ  ÍøÂç´æ´¢...ÒÚÓÊδ¾¡

--http://vip.eyou.com
--¿ì¿ìµÇ¼ÒÚÓÊVIPÐÅÏä  ×¢²áÄúÖÐÒâµÄÓû§Ãû



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]