Date: Fri, 10 Nov 2006 19:35:48 GMT From: Andre Oppermann <andre@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109699 for review Message-ID: <200611101935.kAAJZmWW099731@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. 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?200611101935.kAAJZmWW099731>