From: Martin Jansa <martin.jansa@gmail.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/2] image_types.bbclass: implement jffs2 summary images (sum.jffs2)
Date: Thu, 8 Dec 2011 16:10:26 +0100 [thread overview]
Message-ID: <20111208151026.GC3761@jama.jama.net> (raw)
In-Reply-To: <CA+M6bXmdt7UE+-HkLva9snnv=AJhhh0sxKSKCJhQOb58bNKGJQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3283 bytes --]
On Thu, Dec 08, 2011 at 07:57:52AM -0700, Tom Rini wrote:
> On Tue, Dec 6, 2011 at 4:23 PM, Andrea Adami <andrea.adami@gmail.com> wrote:
> > * Building the jffs2 filesystem to include summary information speeds up
> > * the mount process considerably at the cost of increased size.
> > * The rate of speedup is generally higher on NAND chips and on the chips
> > * where the erase block size is large.
> >
> > Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
I'll repeat my comment from yesterday, but IMHO it would be easier to
see the difference between those 2 images if the IMAGE_CMD_jffs2 output is
renamed to .jffs2.nosummary and IMAGE_CMD_sum.jffs2 (or renamed IMAGE_CMD_jffs2.summary)
produces .jffs2.summary (or even just .jffs2 if we can agree that .summary is
what enduser wants by default)
But other than that it looks fine and will make my IMAGE_DEPENDS_jffs2 a
bit shorter.
Regards,
>
> Acked-by: Tom Rini <tom.rini@gmail.com>
>
> > ---
> > meta/classes/image_types.bbclass | 5 ++++-
> > 1 files changed, 4 insertions(+), 1 deletions(-)
> >
> > diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
> > index 29b6380..bd4b7bc 100644
> > --- a/meta/classes/image_types.bbclass
> > +++ b/meta/classes/image_types.bbclass
> > @@ -35,6 +35,8 @@ XZ_COMPRESSION_LEVEL ?= "-e -9"
> > XZ_INTEGRITY_CHECK ?= "crc32"
> >
> > IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${EXTRA_IMAGECMD}"
> > +IMAGE_CMD_sum.jffs2 = "${IMAGE_CMD_jffs2} && sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
> > + -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sum.jffs2 ${EXTRA_IMAGECMD}"
> >
> > IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
> >
> > @@ -138,6 +140,7 @@ EXTRA_IMAGECMD_btrfs ?= ""
> >
> > IMAGE_DEPENDS = ""
> > IMAGE_DEPENDS_jffs2 = "mtd-utils-native"
> > +IMAGE_DEPENDS_sum.jffs2 = "mtd-utils-native"
> > IMAGE_DEPENDS_cramfs = "cramfs-native"
> > IMAGE_DEPENDS_ext2 = "genext2fs-native"
> > IMAGE_DEPENDS_ext2.gz = "genext2fs-native"
> > @@ -157,4 +160,4 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native"
> > IMAGE_DEPENDS_ubifs = "mtd-utils-native"
> >
> > # This variable is available to request which values are suitable for IMAGE_FSTYPES
> > -IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"
> > +IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma"
> > --
> > 1.7.3.4
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
> --
> Tom
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2011-12-08 15:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-06 23:23 [PATCH 0/2] rework jffs2 images creation, add jffs2 summary Andrea Adami
2011-12-06 23:23 ` [PATCH 1/2] image_types.bbclass: implement jffs2 summary images (sum.jffs2) Andrea Adami
2011-12-08 14:57 ` Tom Rini
2011-12-08 15:10 ` Martin Jansa [this message]
2011-12-08 21:30 ` Andrea Adami
2011-12-08 22:43 ` Ulf Samuelsson
2011-12-08 22:48 ` Andrea Adami
2011-12-08 22:56 ` Richard Purdie
2011-12-11 10:03 ` Martin Jansa
2011-12-11 22:20 ` Andrea Adami
2011-12-11 22:57 ` Martin Jansa
2011-12-06 23:23 ` [PATCH 2/2] image_types.bbclass: disable cleanmarkers for jffs2 images Andrea Adami
2011-12-08 14:59 ` Tom Rini
2011-12-08 18:22 ` [PATCH 0/2] rework jffs2 images creation, add jffs2 summary Saul Wold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111208151026.GC3761@jama.jama.net \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox