[U-Boot] do_jffs2_ls fails

Ricardo Martínez rmartinez at teltronic.es
Mon Oct 26 16:21:12 CET 2009


Hi Wolfgang,

Thanks.

But "get_node_mem((u32)part->offset + offset)" in function
"jffs2_1pass_build_lists(struct part_info * part)" in folder fs/jffs2, file
jffs2_1pass.c called during do_jffs2_ls is still reading node->type = 0x2005

While I've checked types defined in jffs2.h and they are
#define JFFS2_NODETYPE_DIRENT (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE
| 1) // 0xE001
#define JFFS2_NODETYPE_INODE (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE |
2)  // 0xE002
#define JFFS2_NODETYPE_CLEANMARKER (JFFS2_FEATURE_RWCOMPAT_DELETE |
JFFS2_NODE_ACCURATE | 3) //0x2003
#define JFFS2_NODETYPE_PADDING (JFFS2_FEATURE_RWCOMPAT_DELETE |
JFFS2_NODE_ACCURATE | 4)  //0x2004

Then, 0x2005 is not defined. I'm not familiar with filesystems, no idea
about what does this mean.

Any ideas?
Ricardo

-----Mensaje original-----
De: Wolfgang Denk [mailto:wd at denx.de] 
Enviado el: lunes, 26 de octubre de 2009 15:20
Para: Ricardo Martínez
CC: u-boot at lists.denx.de
Asunto: Re: [U-Boot] do_jffs2_ls fails

Dear =?iso-8859-1?Q?Ricardo_Mart=EDnez?=,

In message <A25E5D6A481444C4BF45FE1156C648BD at teltronic.es> you wrote:
>
> I'm trying to execute ls command from u-boot shell, but it fails.
...
> Taking a look at the last lines, it seems there is a problem with malloc.
...
> add_node: malloc failed
> add_node failed!
> ls: Failed to scan JFFSv2 file structure

Indeed. So why don't you increase the size of your malloc arena?

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 Ever
try. Ever fail. No matter. Try again. Fail again.  Fail  better.
                                                        -- S. Beckett



More information about the U-Boot mailing list