Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2006 18:46:42 GMT
From:      Andre Oppermann <andre@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 109694 for review
Message-ID:  <200611101846.kAAIkgVx089942@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109694

Change 109694 by andre@andre_flirtbox on 2006/11/10 18:45:42

	Add printf to announce when boot0iic is ready to accept the download.
	Some xmodem implementations get confused when the 'C' for the download
	appear right away.
	Put /r/n to all printf's.  Some terminal applications have trouble
	switching back from xmodem transfers and the first char of the printf
	gets lost.  This is the case with CRT 5.2.
	Make the EEPROM write size a #define.

Affected files ...

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

Differences ...

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

@@ -28,16 +28,21 @@
 #include "lib.h"
 #include "at91rm9200_lowlevel.h"
 
+#define EEPROMSIZE	8192	/* Bytes to be written to EEPROM  */
+
 int
 main(void)
 {
 	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");
+
 	while (xmodem_rx(addr) == -1)
 		continue;
 	InitEEPROM();
-	printf("Writing EEPROM from 0x%x to addr 0\n", addr);
-	WriteEEPROM(0, addr, 8192);
-	printf("Write complete.  Press reset\n");
+	printf("\r\nWriting EEPROM from 0x%x to addr 0, EEPROMSIZE bytes\r\n", addr);
+	WriteEEPROM(0, addr, EEPROMSIZE);
+	printf("\r\nWrite complete.  Press reset\r\n");
 	return (1);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611101846.kAAIkgVx089942>