All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding sumtool to a JFFS2 build to speed up first boot
@ 2011-10-29 16:27 Ulf Samuelsson
  2011-10-29 17:14 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2011-10-29 16:27 UTC (permalink / raw)
  To: openembedded-devel

Trying to solve another problem I came up with
changing IMAGE_CMD_jffs2 defined in conf/bitbake.conf
by redefining it in conf/local.conf.

During that process I noticed the "sumtool" utility
which works on the jffs2 image, doing some
bookkeeping which then does not have to be
done on the target.

I unserstand, this can speed up loading significantly.
Any reason not using this in OE?

-- 
Best Regards
Ulf Samuelsson




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

* Re: Adding sumtool to a JFFS2 build to speed up first boot
  2011-10-29 16:27 Adding sumtool to a JFFS2 build to speed up first boot Ulf Samuelsson
@ 2011-10-29 17:14 ` Tom Rini
  2011-10-29 21:27   ` Andrea Adami
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2011-10-29 17:14 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Oct 29, 2011 at 9:27 AM, Ulf Samuelsson
<ulf_samuelsson@telia.com> wrote:
> Trying to solve another problem I came up with
> changing IMAGE_CMD_jffs2 defined in conf/bitbake.conf
> by redefining it in conf/local.conf.
>
> During that process I noticed the "sumtool" utility
> which works on the jffs2 image, doing some
> bookkeeping which then does not have to be
> done on the target.
>
> I unserstand, this can speed up loading significantly.
> Any reason not using this in OE?

Last time I looked at this, the reason was that you had to re-jigger
the IMAGE_CMD a bit and you also have to take care as not all of the
options are the same between mkfs.jffs2 and sumtool.  At least the
first part might be easier with oe-core and the reworked image class.
The latter part is just annoying.

-- 
Tom



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

* Re: Adding sumtool to a JFFS2 build to speed up first boot
  2011-10-29 17:14 ` Tom Rini
@ 2011-10-29 21:27   ` Andrea Adami
  2011-10-29 21:41     ` Tom Rini
  2011-11-23 20:40     ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Andrea Adami @ 2011-10-29 21:27 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Oct 29, 2011 at 7:14 PM, Tom Rini <tom.rini@gmail.com> wrote:

> On Sat, Oct 29, 2011 at 9:27 AM, Ulf Samuelsson
> <ulf_samuelsson@telia.com> wrote:
> > Trying to solve another problem I came up with
> > changing IMAGE_CMD_jffs2 defined in conf/bitbake.conf
> > by redefining it in conf/local.conf.
> >
> > During that process I noticed the "sumtool" utility
> > which works on the jffs2 image, doing some
> > bookkeeping which then does not have to be
> > done on the target.
> >
> > I unserstand, this can speed up loading significantly.
> > Any reason not using this in OE?
>
> Last time I looked at this, the reason was that you had to re-jigger
> the IMAGE_CMD a bit and you also have to take care as not all of the
> options are the same between mkfs.jffs2 and sumtool.  At least the
> first part might be easier with oe-core and the reworked image class.
> The latter part is just annoying.
>
> --
> Tom
>
> FWIW we are defining our jffs2-summary in
http://cgit.openembedded.org/meta-handheld/tree/conf/machine/include/zaurus.inc

This works beautifully in oe-dev but not using oe-core for it sets
IMAGE_CMD_jffs2 = and this can  not be overriden
We would just need a weak assignment in image_types.bbclass or maybe a new
image type like IMAGE_CMD_jffs2-summary and related commands.

Regards

Andrea


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

* Re: Adding sumtool to a JFFS2 build to speed up first boot
  2011-10-29 21:27   ` Andrea Adami
@ 2011-10-29 21:41     ` Tom Rini
  2011-11-23 20:40     ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Tom Rini @ 2011-10-29 21:41 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Oct 29, 2011 at 2:27 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
> On Sat, Oct 29, 2011 at 7:14 PM, Tom Rini <tom.rini@gmail.com> wrote:
>
>> On Sat, Oct 29, 2011 at 9:27 AM, Ulf Samuelsson
>> <ulf_samuelsson@telia.com> wrote:
>> > Trying to solve another problem I came up with
>> > changing IMAGE_CMD_jffs2 defined in conf/bitbake.conf
>> > by redefining it in conf/local.conf.
>> >
>> > During that process I noticed the "sumtool" utility
>> > which works on the jffs2 image, doing some
>> > bookkeeping which then does not have to be
>> > done on the target.
>> >
>> > I unserstand, this can speed up loading significantly.
>> > Any reason not using this in OE?
>>
>> Last time I looked at this, the reason was that you had to re-jigger
>> the IMAGE_CMD a bit and you also have to take care as not all of the
>> options are the same between mkfs.jffs2 and sumtool.  At least the
>> first part might be easier with oe-core and the reworked image class.
>> The latter part is just annoying.
>>
>> --
>> Tom
>>
>> FWIW we are defining our jffs2-summary in
> http://cgit.openembedded.org/meta-handheld/tree/conf/machine/include/zaurus.inc
>
> This works beautifully in oe-dev but not using oe-core for it sets
> IMAGE_CMD_jffs2 = and this can  not be overriden
> We would just need a weak assignment in image_types.bbclass or maybe a new
> image type like IMAGE_CMD_jffs2-summary and related commands.

It's been a while since I peeked at this, but there's never a reason
not to sumtool as at worst case the first kernel mount will decide it
needs to do this work again anyhow if something was somehow wrong.

-- 
Tom



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

* Re: Adding sumtool to a JFFS2 build to speed up first boot
  2011-10-29 21:27   ` Andrea Adami
  2011-10-29 21:41     ` Tom Rini
@ 2011-11-23 20:40     ` Khem Raj
  2011-12-07 22:04       ` Andrea Adami
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2011-11-23 20:40 UTC (permalink / raw)
  To: openembedded-devel

On Sat, Oct 29, 2011 at 2:27 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
> On Sat, Oct 29, 2011 at 7:14 PM, Tom Rini <tom.rini@gmail.com> wrote:
>
>> On Sat, Oct 29, 2011 at 9:27 AM, Ulf Samuelsson
>> <ulf_samuelsson@telia.com> wrote:
>> > Trying to solve another problem I came up with
>> > changing IMAGE_CMD_jffs2 defined in conf/bitbake.conf
>> > by redefining it in conf/local.conf.
>> >
>> > During that process I noticed the "sumtool" utility
>> > which works on the jffs2 image, doing some
>> > bookkeeping which then does not have to be
>> > done on the target.
>> >
>> > I unserstand, this can speed up loading significantly.
>> > Any reason not using this in OE?
>>
>> Last time I looked at this, the reason was that you had to re-jigger
>> the IMAGE_CMD a bit and you also have to take care as not all of the
>> options are the same between mkfs.jffs2 and sumtool.  At least the
>> first part might be easier with oe-core and the reworked image class.
>> The latter part is just annoying.
>>
>> --
>> Tom
>>
>> FWIW we are defining our jffs2-summary in
> http://cgit.openembedded.org/meta-handheld/tree/conf/machine/include/zaurus.inc
>
> This works beautifully in oe-dev but not using oe-core for it sets
> IMAGE_CMD_jffs2 = and this can  not be overriden
> We would just need a weak assignment in image_types.bbclass or maybe a new
> image type like IMAGE_CMD_jffs2-summary and related commands.
>

I would say port patches to oe-core for it.

> Regards
>
> Andrea
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



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

* Re: Adding sumtool to a JFFS2 build to speed up first boot
  2011-11-23 20:40     ` Khem Raj
@ 2011-12-07 22:04       ` Andrea Adami
  0 siblings, 0 replies; 6+ messages in thread
From: Andrea Adami @ 2011-12-07 22:04 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Nov 23, 2011 at 9:40 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Sat, Oct 29, 2011 at 2:27 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
>> On Sat, Oct 29, 2011 at 7:14 PM, Tom Rini <tom.rini@gmail.com> wrote:
>>
>>> On Sat, Oct 29, 2011 at 9:27 AM, Ulf Samuelsson
>>> <ulf_samuelsson@telia.com> wrote:
>>> > Trying to solve another problem I came up with
>>> > changing IMAGE_CMD_jffs2 defined in conf/bitbake.conf
>>> > by redefining it in conf/local.conf.
>>> >
>>> > During that process I noticed the "sumtool" utility
>>> > which works on the jffs2 image, doing some
>>> > bookkeeping which then does not have to be
>>> > done on the target.
>>> >
>>> > I unserstand, this can speed up loading significantly.
>>> > Any reason not using this in OE?
>>>
>>> Last time I looked at this, the reason was that you had to re-jigger
>>> the IMAGE_CMD a bit and you also have to take care as not all of the
>>> options are the same between mkfs.jffs2 and sumtool.  At least the
>>> first part might be easier with oe-core and the reworked image class.
>>> The latter part is just annoying.
>>>
>>> --
>>> Tom
>>>
>>> FWIW we are defining our jffs2-summary in
>> http://cgit.openembedded.org/meta-handheld/tree/conf/machine/include/zaurus.inc
>>
>> This works beautifully in oe-dev but not using oe-core for it sets
>> IMAGE_CMD_jffs2 = and this can  not be overriden
>> We would just need a weak assignment in image_types.bbclass or maybe a new
>> image type like IMAGE_CMD_jffs2-summary and related commands.
>>
>
> I would say port patches to oe-core for it.

Done, patch sent to oe-core

Regards
Andrea

>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



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

end of thread, other threads:[~2011-12-07 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-29 16:27 Adding sumtool to a JFFS2 build to speed up first boot Ulf Samuelsson
2011-10-29 17:14 ` Tom Rini
2011-10-29 21:27   ` Andrea Adami
2011-10-29 21:41     ` Tom Rini
2011-11-23 20:40     ` Khem Raj
2011-12-07 22:04       ` Andrea Adami

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.