public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] mtdparts and JFFS2
@ 2009-05-04 15:20 Renaud barbier
  2009-05-04 16:34 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Renaud barbier @ 2009-05-04 15:20 UTC (permalink / raw)
  To: u-boot

I have used the new (to me) dynamic partitioning system with JFFS2.

I have defined one partiton as follows:
mtdids=nor0=boardnor
mtdparts=mtdparts=boardnor:4m(boot)

After using chpart (chpart nor0,0) successfully I was not able to list 
the file
embedded in my jffs2 image using the command ls.

I later noticed that jffs2_part_info is called with current_dev = NULL;

I then declared current_dev global in cmd_mtdparts.c and external in 
cmd_jffs2.c

the 'ls' command then worked:
U-boot> ls
Scanning JFFS2 FS: . done.
 -rw-r--r--  1148560 Thu Apr 30 14:13:52 2009 uImage

So:
Is that a bug?
Or did I configure U-boot incorrectly?

thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] mtdparts and JFFS2
  2009-05-04 15:20 [U-Boot] mtdparts and JFFS2 Renaud barbier
@ 2009-05-04 16:34 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2009-05-04 16:34 UTC (permalink / raw)
  To: u-boot

On Monday 04 May 2009, Renaud barbier wrote:
> I have used the new (to me) dynamic partitioning system with JFFS2.
>
> I have defined one partiton as follows:
> mtdids=nor0=boardnor
> mtdparts=mtdparts=boardnor:4m(boot)
>
> After using chpart (chpart nor0,0) successfully I was not able to list
> the file
> embedded in my jffs2 image using the command ls.
>
> I later noticed that jffs2_part_info is called with current_dev = NULL;
>
> I then declared current_dev global in cmd_mtdparts.c and external in
> cmd_jffs2.c
>
> the 'ls' command then worked:
> U-boot> ls
> Scanning JFFS2 FS: . done.
>  -rw-r--r--  1148560 Thu Apr 30 14:13:52 2009 uImage
>
> So:
> Is that a bug?
> Or did I configure U-boot incorrectly?

This is a bug introduced with the split of the JFFS2 and MTDPARTS commands. 
Thanks for spotting.

Best would be if you could provide a proper patch to fix this.

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-04 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-04 15:20 [U-Boot] mtdparts and JFFS2 Renaud barbier
2009-05-04 16:34 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox