PERFORCE change 109694 for review
Andre Oppermann
andre at FreeBSD.org
Fri Nov 10 18:46:43 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109694
Change 109694 by andre at 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);
}
More information about the p4-projects
mailing list