Skip to contentSkip to conversation

How can I use yaffs2 in uboot

U-Boot jackfriend 3 participants 3 messages Jun 7, 2010

lore
Share & tools
lore

jackfriend

author
#0 lore raw

How can I use yaffs2 in uboot

I add CONFIG_YAFFS2 in /include/configs/smdk2410.h

my2440 # nand write 0x30008000 80000 40000

NAND write: device 0 offset 0x80000, size 0x40000

262144 bytes written: OK

my2440 #

my2440 # ymount /flash

yaffs: Mounting /flash

my2440 # ywrm a 0x30008000 40000

Error opening file: -1

I also need what parameters ?

thanks!

#1 lore raw

Dear jackfriend,

Quoted 2 lines · In message <[email protected]> you wrote:

How can I use yaffs2 in uboot

...

Quoted 3 lines

my2440 # ymount /flash

yaffs: Mounting /flash

Looks good?

Quoted 3 lines

my2440 # ywrm a 0x30008000 40000

Error opening file: -1

Maybe you try a "yls" first to check which files are present in your file system. Then test if read accesses are working. I'm not sure if write mode has been tested (or even implemented).

Also, it might make sense to enable YAFFS2_DEBUG while testing.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is better to have tried and failed than to have  failed  to  try,
but the result's the same."                           - Mike Dennison
#2 lore raw
Quoted 7 lines · Wolfgang Denk

Dear jackfriend,

In message <[email protected]> you

Quoted 2 lines · wrote:

How can I use yaffs2 in uboot

You have to use absolute path with all commands. eg "yls /flash/" This path must match your mount points as configured in fs/yaffs/yaffscfg.c

Quoted 9 lines
Quoted 3 lines

my2440 # ywrm a 0x30008000 40000

Error opening file: -1

Maybe you try a "yls" first to check which files are present in your file system. Then test if read accesses are working. I'm not sure if write mode has been tested (or even implemented).

Write mode is in use and working.

Best regards
William Juul

Quoted 17 lines

Also, it might make sense to enable YAFFS2_DEBUG while testing.

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "It is better to have tried and failed than to have failed to try,
but the result's the same." - Mike Dennison
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot