From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16093 invoked by alias); 22 Nov 2006 10:51:32 -0000 Received: (qmail 16075 invoked by uid 22791); 22 Nov 2006 10:51:31 -0000 X-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from faui03.informatik.uni-erlangen.de (HELO faui03.informatik.uni-erlangen.de) (131.188.30.103) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Nov 2006 10:51:22 +0000 Received: from faui06.informatik.uni-erlangen.de (faui06.informatik.uni-erlangen.de [131.188.30.106]) by faui03.informatik.uni-erlangen.de (Postfix) with ESMTP id 7F9E73F2ED; Wed, 22 Nov 2006 11:51:20 +0100 (CET) Received: from localhost (localhost [[UNIX: localhost]]) by faui06.informatik.uni-erlangen.de (8.13.8/8.12.3/Debian-8) id kAMApFag030214; Wed, 22 Nov 2006 11:51:15 +0100 X-Authentication-Warning: faui06.informatik.uni-erlangen.de: sirupfis set sender to Rudi.Pfister@informatik.stud.uni-erlangen.de using -f From: Rudi Pfister To: andrew@lunn.ch Subject: Re: Flashdriver for TC1796 Date: Wed, 22 Nov 2006 10:51:00 -0000 User-Agent: KMail/1.9.5 Cc: ecos-devel@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611221151.15497.Rudi.Pfister@informatik.stud.uni-erlangen.de> Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-11/txt/msg00022.txt.bz2 Hello, > So you want to do something like: > > fis write -b 0x00100000 -f 0x0020000 -l 0x1000 > > ie write the contents of RAM 0x0010000, length 0x1000 to flash address > 0x00200000. This does not need a buffer. No, I want to do something like this: load -r -f 0xa0000000 -m ymodem I want to load a program directly into the flash memory via a serial line. For this operation Redboot uses the flash_load_write()-function, which saves the block to a buffer in RAM. Using the "fis write"-command doesn't solve my problem. On the one hand I have to load the application into RAM first, but I can't be sure that I have enough RAM for this. And on the other hand I can only write data to the beginning of a block and the whole block will be erased. So even if I want to write only a part of the block the whole old data in the block will be deleted. Thanks Rudi