PERFORCE change 109699 for review

M. Warner Losh imp at bsdimp.com
Sun Nov 12 07:09:27 UTC 2006


In message: <200611101935.kAAJZmWW099731 at repoman.freebsd.org>
            Andre Oppermann <andre at freebsd.org> writes:
: 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.

This change is wrong.  The largest loader you can have is 12kb, not
16kb.

Warner

: 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