From owner-p4-projects@FreeBSD.ORG Fri Nov 10 19:35:49 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1134716A417; Fri, 10 Nov 2006 19:35:49 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE5FA16A415 for ; Fri, 10 Nov 2006 19:35:48 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65E4143D66 for ; Fri, 10 Nov 2006 19:35:48 +0000 (GMT) (envelope-from andre@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAAJZm4j099734 for ; Fri, 10 Nov 2006 19:35:48 GMT (envelope-from andre@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAAJZmWW099731 for perforce@freebsd.org; Fri, 10 Nov 2006 19:35:48 GMT (envelope-from andre@freebsd.org) Date: Fri, 10 Nov 2006 19:35:48 GMT Message-Id: <200611101935.kAAJZmWW099731@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to andre@freebsd.org using -f From: Andre Oppermann To: Perforce Change Reviews Cc: Subject: PERFORCE change 109699 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 19:35:49 -0000 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);