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]

RE: [Fwd: How to enable redboots CRC checking]


On Wed, 2004-05-26 at 07:15, Winkler Andreas wrote:
> > Sorry, but I don't know anything about the eCosCentric snapshots.
> > 
> > Perhaps you can update via CVS?
> 
> Unfortunately our proxy server doesn't support the access to the CVS
> repository.
> So I downloaded the sources from
> http://www.ecoscentric.com/devzone/snapshots.shtml
> which where said to be updated every sunday.
> But they are not. I just downloaded them again, but the newes changelog
> entry still
> is from 2004-04-29.
> I'll try to ask the eCosCentric people for more recent sources.

It would be nice to know what their schedule is...

Attached is the [very simple] patch that should fix your problem.  You
should not have to update anything else.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/src/flash.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -5 -p -r1.65 -r1.66
--- redboot/current/src/flash.c	23 Apr 2004 20:38:18 -0000	1.65
+++ redboot/current/src/flash.c	5 May 2004 10:44:31 -0000	1.66
@@ -981,15 +981,15 @@ fis_load(int argc, char *argv[])
     struct fis_image_desc *img;
     CYG_ADDRESS mem_addr;
     bool mem_addr_set = false;
     bool show_cksum = false;
     struct option_info opts[3];
-#ifdef CYGPKG_REDBOOT_FIS_CRC_CHECK
+#if defined(CYGSEM_REDBOOT_FIS_CRC_CHECK)
     unsigned long cksum;
 #endif
     int num_options;
-#ifdef CYGPRI_REDBOOT_ZLIB_FLASH
+#if defined(CYGPRI_REDBOOT_ZLIB_FLASH) ||  defined(CYGSEM_REDBOOT_FIS_CRC_CHECK)
     bool decompress = false;
 #endif
     void *err_addr;
 
     init_opts(&opts[0], 'b', true, OPTION_ARG_TYPE_NUM, 
@@ -1064,11 +1064,11 @@ fis_load(int argc, char *argv[])
         load_address = mem_addr;
         load_address_end = mem_addr + img->data_length;
     }
     entry_address = (unsigned long)img->entry_point;
 
-#ifdef CYGPKG_REDBOOT_FIS_CRC_CHECK
+#ifdef CYGSEM_REDBOOT_FIS_CRC_CHECK
     cksum = cyg_crc32((unsigned char *)mem_addr, img->data_length);
     if (show_cksum) {
         diag_printf("Checksum: 0x%08lx\n", cksum);
     }
     // When decompressing, leave CRC checking to decompressor

-- 
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]