Patch for zsrec.c

Pavel Roskin pavel_roskin at
Tue Feb 1 11:12:00 EST 2000


File has a bug.
It uses an S9 closing record, but specifies 3 address bytes instead of 2
required by the standard.

RPX/Lite boards report checksum error on such records, which is not good
either, but the real bug is zsrec.c

Since data are represented by S3 records with 4-byte addresses, the safest
way to fix it would be to use S7 records that also use 4-byte addresses.
It is also possible to use 0x200000 as the starting address, so that the
"t" command in the boot prompt works!

The sentence about buggy RPX boards should be removed from

This is my patch

=== cut here ===
--- zsrec.c	Mon Jan 31 10:57:19 2000
+++ zsrec.c	Mon Jan 31 18:41:55 2000
@@ -69,7 +69,7 @@
 	if (l1total)
-	printf("S904000000FB\n");
+	printf("S70500200000DA\n");

=== cut here ===

Pavel Roskin

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list