[PATCH] fixing checksum (running over uninitialized data)

Frieder Ferlemann Frieder.Ferlemann at NOSPAMweb.de
Sun Oct 31 12:38:03 EDT 2010


Signed-off-by: Frieder Ferlemann <Frieder.Ferlemann at NOSPAMweb.de>
---
 updateme/Makefile.sdcc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/updateme/Makefile.sdcc b/updateme/Makefile.sdcc
index 73da03d..1a832cb 100644
--- a/updateme/Makefile.sdcc
+++ b/updateme/Makefile.sdcc
@@ -79,8 +79,9 @@ $(IMAGEDIR)/$(TARGET).ihx: $(OBJ) dummy
 $(IMAGEDIR)/$(TARGET).bin: $(IMAGEDIR)/$(TARGET).ihx
 	$(SREC_CAT) -Disable_Sequence_Warnings \
 		$< -intel  \
+		-fill 0xff 0x0000 0xfffc \
 		-little_endian_checksum_negative 0xfffc 4 4 \
-		-fill 0xff 0x0000 0x20000 \
+		-fill 0xff 0x10000 0x20000 \
 		-o $@ -binary
 	cp $(IMAGEDIR)/$(TARGET).bin ~/vboxes/shared
 
-- 
1.7.1


--------------040909020101000700000207--


More information about the Openec mailing list