From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32066 invoked by alias); 17 May 2006 15:12:30 -0000 Received: (qmail 31876 invoked by uid 22791); 17 May 2006 15:12:30 -0000 X-Spam-Check-By: sourceware.org Received: from porthos.cmles.com (HELO porthos.cml.com) (216.94.200.162) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 May 2006 15:12:23 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 17 May 2006 15:12:00 -0000 Message-ID: From: "Calin Onofrei" To: "Andrew Lunn" Cc: X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] Error when changing 'fconfig' redboot values from a linux program X-SW-Source: 2006-05/txt/msg00139.txt.bz2 Andrew, I read/write 4096 bytes. I tried to replace the erase by writing 4096 bytes of 0x00, but is not working. I'll try to use ioctl's MEMERASE option. Calin Onofrei.=20=20=20 -----Original Message----- From: Andrew Lunn [mailto:andrew@lunn.ch]=20 Sent: Wednesday, May 17, 2006 11:03 AM To: Calin Onofrei Cc: ecos-discuss@ecos.sourceware.org Subject: Re: [ECOS] Error when changing 'fconfig' redboot values from a linux program On Wed, May 17, 2006 at 10:51:23AM -0400, Calin Onofrei wrote: > Thierry, >=20 > In my case RedBoot config is on mtd5 partition (do cat /proc/mtd to see) and I open the device: > Open("/dev/mtd5", O_RDWR | O_SYNC). With the handle returned by the open function I do read and write operations as for any other device. But is /dev/mtd5 like any other device? Or do you need to erase it using an ioctl call? I don't know, but maybe you need to find out. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss