From owner-p4-projects@FreeBSD.ORG Fri Nov 10 18:46:43 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 422C316A415; Fri, 10 Nov 2006 18:46:43 +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 068C516A40F for ; Fri, 10 Nov 2006 18:46:43 +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 6C7D643D5F for ; Fri, 10 Nov 2006 18:46:42 +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 kAAIkgeM089945 for ; Fri, 10 Nov 2006 18:46:42 GMT (envelope-from andre@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAAIkgVx089942 for perforce@freebsd.org; Fri, 10 Nov 2006 18:46:42 GMT (envelope-from andre@freebsd.org) Date: Fri, 10 Nov 2006 18:46:42 GMT Message-Id: <200611101846.kAAIkgVx089942@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 109694 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 18:46:43 -0000 http://perforce.freebsd.org/chv.cgi?CH=109694 Change 109694 by andre@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); }