This is the mail archive of the ecos-patches@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]

RedBoot: fis delete won't erase


Hi,

fis delete no longer needs to erase the flash as fis free now uses the FIS directory to determine free space. Erasing the flash twice (once for fis delete and then again for fis create) is also unnecessary.

2003-12-15 David Vrabel <dvrabel@arcom.com>

* src/flash.c (fis_delete): Don't erase the flash.

David Vrabel
--
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/


_____________________________________________________________________ The message in this transmission is sent in confidence for the attention of the addressee only and should not be disclosed to any other party. Unauthorised recipients are requested to preserve this confidentiality. Please advise the sender if the addressee is not resident at the receiving end. Email to and from Arcom is automatically monitored for operational and lawful business reasons.

This message has been checked for all viruses by MessageLabs Virus Control Centre.
--- redboot/current/src/flash.c	2004-01-13 10:35:15.000000000 +0000
+++ redboot/current/src/flash.c.new	2004-01-13 10:36:41.000000000 +0000
@@ -964,13 +964,8 @@
         diag_printf("No image '%s' found\n", name);
         return;
     }
-    // Erase Data blocks (free space)
-    if ((stat = flash_erase((void *)img->flash_base, img->size, (void **)&err_addr)) != 0) {
-        diag_printf("Error erasing at %p: %s\n", err_addr, flash_errmsg(stat));
-    } else {
-        img->name[0] = (unsigned char)0xFF;    
-        fis_update_directory();
-    }
+    img->name[0] = (unsigned char)0xFF;
+    fis_update_directory();
 }
 
 static void

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