This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot - remove misleading warning message
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: 07 Nov 2003 10:42:52 -0700
- Subject: RedBoot - remove misleading warning message
- Organization: MLB Associates
obviated by new "fis free" behaviour
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.157
diff -u -5 -p -r1.157 ChangeLog
--- redboot/current/ChangeLog 4 Nov 2003 14:06:33 -0000 1.157
+++ redboot/current/ChangeLog 7 Nov 2003 17:41:36 -0000
@@ -1,5 +1,11 @@
+2003-11-07 Gary Thomas <gary@mlbassoc.com>
+
+ * src/flash.c (fis_init): Take out misleading warning - since the
+ new [default] behaviour of "fis free" means free space need not
+ be necessarily erased on the device.
+
2003-11-04 Gary Thomas <gary@mlbassoc.com>
* src/flash.c (find_free): Better handling of end address - otherwise
list of free blocks could be incorrect. Thanks to Chris Garry.
Index: redboot/current/src/flash.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.59
diff -u -5 -p -r1.59 flash.c
--- redboot/current/src/flash.c 4 Nov 2003 14:06:34 -0000 1.59
+++ redboot/current/src/flash.c 7 Nov 2003 17:39:49 -0000
@@ -426,14 +426,18 @@ fis_init(int argc, char *argv[])
if ((stat = flash_erase((void *)erase_start, erase_size,
(void **)&err_addr)) != 0) {
diag_printf(" initialization failed at %p: %s\n",
err_addr, flash_errmsg(stat));
}
+#ifndef CYGDAT_REDBOOT_FIS_MAX_FREE_CHUNKS
+ // In this case, 'fis free' works by scanning for erased blocks. Since the
+ // "-f" option was not supplied, there may be areas which are not used but
+ // don't appear to be free since they are not erased - thus the warning
} else {
diag_printf(" Warning: device contents not erased, some blocks may not be usable\n");
+#endif
}
-
fis_update_directory();
}
static void
fis_list(int argc, char *argv[])