This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Error when changing 'fconfig' redboot values from a linux program


Now is working, I can read/write Redboot configuration from a linux
program. Before writing I use the ioctl MEMERASE and erase the whole
RedBoot config block.
Thanks Andrew for your suggestion.

Calin Onofrei. 

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
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,
> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]