[U-Boot] Fw:How can I use yaffs2 in uboot

Thank you for your help
NOW with absolute path can write and read (small files)
but When I write large files,such as 50M (Nand flash size is 256M)
Display
yaffs: Could not allocate Tnodes yaffs: Could not allocate Tnodes yaffs: Could not allocate Tnodes ... (Many)
and then restart
my2440 # yls /fash
yaffs: Mounting /flash
yaffs: Could not allocate Tnodes
Error mounting /flash, return value: -12
opendir failed

On Tue, Jun 8, 2010 at 03:49, jackfriend jackfriend@163.com wrote:
Thank you for your help NOW with absolute path can write and read (small files)
Good.
but When I write large files,such as 50M (Nand flash size is 256M) ... yaffs: Mounting /flash yaffs: Could not allocate Tnodes Error mounting /flash, return value: -12
opendir failed
I cannot recall having seen that error, but I don't think I have ever tried
with files larger than 20MB. Besides our out of tree port have started to slightly move away from upstream U-boot.
I suggest you try to debug your problem. "yaffs_traceMask" in fs/yaffs/yaffscfg.c is probably your friend.
Best regards William Juul
_______________________________________________
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Dear jackfriend,
In message 14a6f7f.148ed.129153fef17.Coremail.jackfriend@163.com you wrote:
Thank you for your help
NOW with absolute path can write and read (small files)
but When I write large files,such as 50M (Nand flash size is 256M)
Display
yaffs: Could not allocate Tnodes yaffs: Could not allocate Tnodes yaffs: Could not allocate Tnodes ...
Sounds like a pretty clear error message - doesn't it?
Increase CONFIG_SYS_MALLOC_LEN in your bard config file.
[It might make sense to improve the error message in fs/yaffs2/yaffs_guts.c to include information how many bytes were to be allocated, so you get an idea on how uch to increase the malloc arena size.]
Best regards,
Wolfgang Denk
participants (3)
-
jackfriend
-
William Juul
-
Wolfgang Denk