Zhang,
You could try defining YAFFS_IGNORE_TAGS_ECC in fs/yaffs2/yaffs_ecc.h
and give it a shot. If this works it would mean, h/w ECC uses up the OOB
spare area leaving no space
for YAFFS2 to mark bad blocks hence showing 100% usage.
Regards,
Philby
On Wed, 2009-03-18 at 12:55 -0500, Narnakaje, Snehaprabha wrote:
> Zhang,
>
>
>
> Which software codebase/release are you using here on DM6446 EVM?
>
>
>
> The default NAND configuration for DM6446 EVM is to use a small block
> NAND flash (with page size = 512bytes) and 1-bit HW ECC. If the driver
> configuration does not match with what the NAND device expects, all
> blocks of the NAND device can come back as bad blocks. In which case,
> the corresponding partition will have 100% space used.
>
>
>
> Thanks
>
> Sneha
>
>
>
>
> ______________________________________________________________________
> From:[email protected]
> [mailto:[email protected]] On
> Behalf Of shaofeng zhang
> Sent: Tuesday, March 17, 2009 11:22 PM
> To: [email protected]
> Subject: Problem with YAFFS2 on LargePage NAND
>
>
>
>
> Hi, All,
>
>
>
>
>
> I am using a 128MB LargePage Nand Flash on my DVEVM board (DM6446),
> and when I mount the /dev/mtdblock4 throught YAFFS2 fs type, I found
> that the use% of my nand is 100% as the following:
>
>
>
> Filesystem Size Used Avail Use% Mounted on
> rootfs 38G 28G 8.0G 78% /
> /dev/root 38G 28G 8.0G 78% /
> none 10M 2.5M 7.6M 25% /dev
> tmpfs 59M 0 59M 0% /tmp
> none 10M 2.5M 7.6M 25% /dev
> tmpfs 59M 0 59M 0% /dev/shm
> /dev/mtdblock4 120M 120M 0 100% /mnt/nand
>
>
>
>
>
> But I first use flash_eraseall to erase the /dev/mtd4 before mounting
> the /dev/mtdblock4 with YAFFS2
>
>
>
>
>
> Could anyone tell me some info about the message?
>
>
> Thank you!
>
>
>
>
>
> Best Wishes,
>
>
> Zhang
>
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source