Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2006 00:06:53 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        andre@freebsd.org
Cc:        perforce@freebsd.org
Subject:   Re: PERFORCE change 109699 for review
Message-ID:  <20061112.000653.-1303463784.imp@bsdimp.com>
In-Reply-To: <200611101935.kAAJZmWW099731@repoman.freebsd.org>
References:  <200611101935.kAAJZmWW099731@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200611101935.kAAJZmWW099731@repoman.freebsd.org>
            Andre Oppermann <andre@freebsd.org> writes:
: http://perforce.freebsd.org/chv.cgi?CH=109699
: 
: Change 109699 by andre@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);
: 



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