This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Error when changing 'fconfig' redboot values from a linux program
- From: "Calin Onofrei" <conofrei at plantcml dot com>
- To: "thierry langlais" <thierry dot langlais at efixo dot com>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 17 May 2006 10:51:23 -0400
- Subject: RE: [ECOS] Error when changing 'fconfig' redboot values from a linux program
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.
Calin Onofrei.
-----Original Message-----
From: thierry langlais [mailto:thierry.langlais@efixo.com]
Sent: Wednesday, May 17, 2006 10:09 AM
To: Calin Onofrei
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Error when changing 'fconfig' redboot values from a linux program
How are you using MTD Driver ?
Could you give us more details ?
Thierry Langlais.
Le mercredi 17 mai 2006 à 09:33 -0400, Calin Onofrei a écrit :
> Hi All,
>
> I am trying to change the RedBoot config from a Linux program.
> I can read the RedBoot configuration from user space with MTD driver
> function but when I write the configuration changed for an unsigned
> long
> (4 bytes) always the 3rd byte isn't changed and keep the old value!
> Any suggestion?
>
> Thanks,
> Calin.
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss