[U-Boot] do_jffs2_ls fails

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


Me again :)

Anyway, I've made malloc size huge (2MB), then scanning whole JFFS2
filesystem succeeds and, although I still have those horrible "Unknown node
type" messages, I can load uImage from Filesystem.

I bet it is because I'm scanning from an offset where flash has NOT jffs2
format. Silly question and my fault.

Thank you very much for your help 

-----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