Re: [Yaffs] Cannot allocate memory

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Blair Barnett
Date:  
To: wang dengyi
CC: yaffs
Subject: Re: [Yaffs] Cannot allocate memory
Hi,

The mtd utilities might prove to be useful here.

Unmount the questionable filesystem and try

'flash_eraseall /dev/mtdX'

where X is the partition number you'd like to erase. You'll have to
reinstall the YAFFS image, I believe. You'll have to do this with the
partition unmounted.

You could also mount the newly erased partition and start writing files
into this new partition.


-blair

On Mon, 2005-06-06 at 11:06, wang dengyi wrote:
> Hello,
>
> After "mount -t yaffs /dev/mtdblock/2 /mnt/f", I
> cannot create any file on the flash. I always get the
> error message: "... Cannot allocate memory". Afte I
> use "df /mnt/f", it shows 100% for use%. But I already
> deleted everything in that directory except the
> "lost+found" which I cannot delete. Could anyone give
> me some hint on it? Someone already asked this kind of
> quesiton. But I didn't find the answer.
>
> The solution I can think, is to erase the flash. But
> how. Yaffs does not provide the util to do that.
>