From: Richard Purdie <rpurdie@rpsys.net>
To: Paul Sokolovsky <pmiscml@gmail.com>
Cc: openembedded-devel@openembedded.org
Subject: Re: [RFC] Setting default IMAGE_FSTYPES to tar.gz in bitbake.conf
Date: Sat, 09 Feb 2008 18:55:33 +0000 [thread overview]
Message-ID: <1202583333.7981.17.camel@dax.rpnet.com> (raw)
In-Reply-To: <20080209134850.13fe8d93@widy.localdomain>
Hi Paul,
On Sat, 2008-02-09 at 13:48 +0200, Paul Sokolovsky wrote:
> > On Tue, 2008-01-29 at 01:41 +0200, Paul Sokolovsky wrote:
> > This has been discussed before and I'd like to see that changed. The
> > complication is that "bitbake image" is meant to give a sane default
> > image for a given machine without any tweaking by the user and a load
> > of machines depend on the jffs2 default.
>
> Unfortunately, this is not achievable and not sustainable goal. It's
> not achievable because there's no single criteria for "sane", it
> depends first of all on user's needs. So, trying to make adhoc choices
> instead of user would mean that for some group of users they will be
> unpredictable and thus insane. So, it would make more sense to use "not
> insane" criteria instead and use some neutral, well-known format, which
> is why this RFC is being made.
Often there is an obvious format which makes sense for a given machine.
For qemu, its ext2, at least in Poky where the scripts to run the images
expect that. For my c7x0 its jffs2 for spitz its a tgz etc.
I agree that not everyone is going to want these formats in every case,
thats why its a "soft" ?= setting and not a hard set one.
> And those above is why it's not sustainable - now it comes that to
> achieve that goal it takes to be a machine expert, etc. etc. Of course,
> noone is expert in all machines, some people are not experts in the
> machine they add/hack on, all people can not know something, make
> mistakes and wrong choices, etc. In the end and overall, presence of
> jffs2 in specific machine's config turns out to be rather random
> matter.
No, its not random. jffs2 is the default image format that makes sense
on say a c7x0 or akita since thats what its reflash utils accept and
what the Angstrom install notes assume is used on that device.
> We may want to rethink that to be based on more firm grounds.
> One possible way:
>
> 1. IMAGE_FSTYPES is not a machine config variable.
No, I want it to have a sane value for machines where it makes sense. It
doesn't make sense in all cases but where it does, it hurts nothing to
set it.
> 2. IMAGE_FSTYPES is a top-level parameter specified by user. User needs
> specific format, user requests it. There's a default though offering
> least surprise as integrated over user base - i.e. neutral, well-known
> format.
This "neutral" offering being a tgz? Thats useless to boot my c7x0. I
want OE to produce something usable, I don't want to have to change my
IMAGE_FSTYPES every time I change machine.
> 3. Alternatively, a *distro* may constrain a way in which images are
> used, and thus force a particular image format. So, for a dumb headless
> router machine, one distro will try to follow vendor's way and generate
> images in an adhoc format. Yet another for the same machine will assume
> that bootloader was replaced with some generic one and will use generic
> flash image format like jffs2. And yet another will be intended for the
> people who soldered few wires at the appropriate place and use bit-bang
> to boot from SD.
The DISTRO can override the machine if it wishes now with no change to
OE, that is up to the distros concerned. That doesn't stop machines from
having sane defaults.
> Well, as usual, thoughts aloud. I'm going to add
> IMAGE_FSTYPES ?= "jffs2" to the machines from your 1st list to get
> matter going.
ok.
Cheers,
Richard
next prev parent reply other threads:[~2008-02-09 18:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 23:41 [RFC] Setting default IMAGE_FSTYPES to tar.gz in bitbake.conf Paul Sokolovsky
2008-01-29 0:07 ` Richard Purdie
2008-02-06 16:40 ` [ann] Utils for converting rootfs images to other formats Paul Sokolovsky
2008-02-09 11:48 ` [RFC] Setting default IMAGE_FSTYPES to tar.gz in bitbake.conf Paul Sokolovsky
2008-02-09 18:55 ` Richard Purdie [this message]
2008-02-10 18:29 ` Paul Sokolovsky
2008-02-10 18:43 ` Mike (mwester)
2008-02-10 19:54 ` Paul Sokolovsky
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=1202583333.7981.17.camel@dax.rpnet.com \
--to=rpurdie@rpsys.net \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.org \
--cc=pmiscml@gmail.com \
/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 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.