PERFORCE change 109699 for review

Andre Oppermann andre at FreeBSD.org
Fri Nov 10 19:35:49 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=109699

Change 109699 by andre at andre_flirtbox on 2006/11/10 19:35:44

	Increase EEPROMSIZE to 16384 as the boot2 loader is slighly larger than
	8192 bytes.
	Get the printing of EEPROMSIZE right.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/main.c#9 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/main.c#9 (text) ====

@@ -28,7 +28,7 @@
 #include "lib.h"
 #include "at91rm9200_lowlevel.h"
 
-#define EEPROMSIZE	8192	/* Bytes to be written to EEPROM  */
+#define EEPROMSIZE	16384	/* Bytes to be written to EEPROM  */
 
 int
 main(void)
@@ -36,12 +36,12 @@
 	char *addr = (char *)SDRAM_BASE + (1 << 20); /* Load to base + 1MB */
 
 	printf("\r\nSend data to be written into EEPROM at addr 0 "
-	       "(EEPROMSIZE bytes)\r\n");
+	       "(0x%x bytes)\r\n", EEPROMSIZE);
 
 	while (xmodem_rx(addr) == -1)
 		continue;
 	InitEEPROM();
-	printf("\r\nWriting EEPROM from 0x%x to addr 0, EEPROMSIZE bytes\r\n", addr);
+	printf("\r\nWriting EEPROM from 0x%x to addr 0, 0x%x bytes\r\n", addr, EEPROMSIZE);
 	WriteEEPROM(0, addr, EEPROMSIZE);
 	printf("\r\nWrite complete.  Press reset\r\n");
 	return (1);


More information about the p4-projects mailing list