[Yaffs] U-boot Yaffs2 usage question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: E Robertson
Date:  
To: yaffs
Subject: [Yaffs] U-boot Yaffs2 usage question
Hi all,
I've posted this question on the U-boot list since I thought that
would be the place, but it doesn't seem so.
I've never used yaffs2 before and wanted to try it out.
I've patched my kernel (2.6.28) and created a jaffs2 partition on my
nand flash device. I have two partitions on this 256MB chip as seen
via mtd in u-boot. I also populated the filesystem with a few test
files and some empty directories.
>From u-boot I cannot mount the filesystem I have created. I get the

following errors but not sure what the error could be. I have 128MB of
ram so memory can't be the problem.
Does anyone have any clues?

yls
yaffs_StartUp
Version 2:
> 2.6.17

NAME: <NULL> (NAND 256MiB 3,3V 8-bit), Yffs2? 1 , blocks 2048
yaffs_initialise
yaffs: Mounting /flash
yaffsfs_FindDevice
yaffs: Could not allocate Tnodes
Error mounting /flash, return value: -12
yaffsfs_FindDevice
opendir failed


ymount /
yaffs_StartUp
Version 2:
> 2.6.17

NAME: <NULL>, Yffs2? 1 , blocks 2048
yaffs_initialise
yaffs: Mounting /
yaffsfs_FindDevice
Error mounting /, return value: -19


mtdparts

---mtdparts_init---
last_ids : nand0=nand0
env_ids : nand0=nand0
last_parts: mtdparts=nand0:81920k@0(NK),-(DATA)
env_parts : mtdparts=nand0:81920k@0(NK),-(DATA)

last_partition : nand0,0
env_partition : nand0,0

---list_partitions---

device nand0 <nand0>, # parts = 2
 #: name                        size            offset          mask_flags
 0: NK                  0x05000000      0x00000000      0
 1: DATA                0x0b000000      0x05000000      0


--- mtd_part_info: partition number 0 for device nand0 (nand0)

active partition: nand0,0 - (NK) 0x05000000 @ 0x00000000

defaults:
mtdids : nand0=nand0
mtdparts: mtdparts=nand0:81920k@0(NK),-(DATA)