From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17689 invoked by alias); 17 May 2006 15:05:30 -0000 Received: (qmail 17681 invoked by uid 22791); 17 May 2006 15:05:30 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 May 2006 15:05:28 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FgNXp-0001uk-00; Wed, 17 May 2006 17:02:37 +0200 Date: Wed, 17 May 2006 15:05:00 -0000 To: Calin Onofrei Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20060517150237.GK14082@lunn.ch> Mail-Followup-To: Calin Onofrei , ecos-discuss@ecos.sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 From: Andrew Lunn 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/msg00137.txt.bz2 On Wed, May 17, 2006 at 10:51:23AM -0400, Calin Onofrei wrote: > Thierry, > > 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