This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How can I write some data to FIS directoy in linux system?
- From: Hamish Moffatt <hamish at cloud dot net dot au>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 4 Jul 2007 23:47:48 +1000
- Subject: Re: [ECOS] How can I write some data to FIS directoy in linux system?
- References: <468B90C7.7060903@gmail.com>
On Wed, Jul 04, 2007 at 08:21:27PM +0800, guzhiqiang wrote:
> so,compliing and burning to the flash ,now execute my program can write
> 4 bytes to "/dev/mtdblock/4" file.
> But give the error infomation is "end_request: I/O error, dev 1f:04
> (mtdblock), sector 2".
> after while,i cat /dev/mtdblock/4 > /mnt/4
> Use the hexedit open the "/mnt/4 " file, is same to before,in fact ,
> the file "/dev/mtdblock/4" not changed.why not write to the file?
> how can i write the file?
Did you unlock the partition? RedBoot likes to lock its partitions after
it changes them. Use flash_unlock to do it.
I have seen fconfig/fis updates fail from linux due to the locked
partition, although I don't recall seeing the particular error you
reported.
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss