All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* How to cleanup holes for successfully jffs2 booting with uboot?
@ 2009-11-18 22:24 Philippe Gagnon
  2009-11-18 22:49 ` Joakim Tjernlund
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe Gagnon @ 2009-11-18 22:24 UTC (permalink / raw
  To: linux-mtd

Hello,

I'm running uboot 1.3.4 and linux 2.6.29.2. I'm booting on a NOR flash
with a JFFS2 filesystem.

When updating the boot NOR flash files with new kernel, ramdisk and dtb
files, I have to cleanup the NOR jffs2 partition by triggering the jffs2
garbage collector (jffs2_gcd_mtd0) several times. Without cleaning the
jffs2 partition, sometimes uboot is unable to reboot.

My suspicion is that uboot doesn't support holes in the jffs2 boot
partition. I found a note in uboot that reinforces that doubt.

>From linux prompt, I would like to cleanup holes in the NOR jffs2
partition in a efficient manner. Right now, I'm triggering the jffs2
garbage collector (jffs2_gcd_mtd0) a lot of times. I'm also using
jffs2dump to inspect the JFFS2 partition. I stop to trigger the garbage
collector when the "jffs2dump -c /dev/mtd0 | grep name" gives a single
record for each file name. This process can last for several minutes
(from 2 to 20 minutes). This process duration is too long for our
application.

Any advices on how to better cleanup JFFS2 holes from linux prompt?

Anyone have similar issues with uboot and jffs2 boot partition? What is
your workaround?

Thanks in advance

Philippe Gagnon

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

* Re: How to cleanup holes for successfully jffs2 booting with uboot?
  2009-11-18 22:24 How to cleanup holes for successfully jffs2 booting with uboot? Philippe Gagnon
@ 2009-11-18 22:49 ` Joakim Tjernlund
  0 siblings, 0 replies; 2+ messages in thread
From: Joakim Tjernlund @ 2009-11-18 22:49 UTC (permalink / raw
  To: Philippe Gagnon; +Cc: linux-mtd

>
> Hello,
>
> I'm running uboot 1.3.4 and linux 2.6.29.2. I'm booting on a NOR flash
> with a JFFS2 filesystem.
>
> When updating the boot NOR flash files with new kernel, ramdisk and dtb
> files, I have to cleanup the NOR jffs2 partition by triggering the jffs2
> garbage collector (jffs2_gcd_mtd0) several times. Without cleaning the
> jffs2 partition, sometimes uboot is unable to reboot.
>
> My suspicion is that uboot doesn't support holes in the jffs2 boot
> partition. I found a note in uboot that reinforces that doubt.
>
> >From linux prompt, I would like to cleanup holes in the NOR jffs2
> partition in a efficient manner. Right now, I'm triggering the jffs2
> garbage collector (jffs2_gcd_mtd0) a lot of times. I'm also using
> jffs2dump to inspect the JFFS2 partition. I stop to trigger the garbage
> collector when the "jffs2dump -c /dev/mtd0 | grep name" gives a single
> record for each file name. This process can last for several minutes
> (from 2 to 20 minutes). This process duration is too long for our
> application.
>
> Any advices on how to better cleanup JFFS2 holes from linux prompt?

Nope, the idea to fix your problem this way isn't sane.

Fix the u-boot JFFS2 code instead. I know there are patches
floating around on the list that fixes various issues, possibly yours
too.

  Jocke

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

end of thread, other threads:[~2009-11-18 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 22:24 How to cleanup holes for successfully jffs2 booting with uboot? Philippe Gagnon
2009-11-18 22:49 ` Joakim Tjernlund

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.