From: Rob Landley <rob@landley.net>
To: Adrian Bunk <bunk@kernel.org>
Cc: Tim Bird <tim.bird@am.sony.com>,
linux-tiny <Linux-tiny@selenic.com>,
linux-embedded <linux-embedded@vger.kernel.org>,
linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: mainlining min-configs...
Date: Tue, 10 Jun 2008 22:48:15 -0500 [thread overview]
Message-ID: <200806102248.16595.rob@landley.net> (raw)
In-Reply-To: <20080610083610.GC1987@cs181133002.pp.htv.fi>
On Tuesday 10 June 2008 03:36:10 Adrian Bunk wrote:
> On Mon, Jun 09, 2008 at 06:37:29PM -0700, Tim Bird wrote:
> > Rob Landley wrote:
> > > On Friday 06 June 2008 18:47:47 Tim Bird wrote:
> > >> At a minimum, it would be nice to have a few nice examples
> > >> of really, really small configs for things like qemus for different
> > >> architectures (just to give embedded developers who are working
> > >> on size a starting point).
> > >
> > > That's more or less what I'm trying to do with my Firmware Linux
> > > project: creating cross compilers and minimal native build environments
> > > for every qemu target.
> >
> > Any chance of getting your minimal configs from Firmware Linux mainlined?
>
> It could help finding compile errors in some more "exotic" configurations
> early (but I'd question whether the Rob's current configs are really
> both minimal and typical for embedded usage - e.g the i686 one having
> both ext2 and ext3 enabled but no JFFS2; and enabling all IO schedulers
> in the kernel as well as ACPI is also not a typical embedded setup).
No argument there. I just offered them as a starting point for supporting
each qemu target.
I'm emulating a native build environment, meaning I need an emulated hard
drive with gibabytes of writable space; lots of embedded devices use
initramfs and nothing else. I'm using distcc so I need a working network
card and network stack, which lots of devices won't need. Also, some of them
(mips comes to mind) need to be stripped down some more.
(The ext2 plus ext3 thing is because ext2 isn't happy about writable mounts
where the emulator gets killed out from under it and then needs fsck, but
ext3 isn't really happy with small read-only mounts ala initrd. I keep
meaning to teach ext3 to work without a #*%&# journal, at least on read only
mounts, but it's about 150 entries down on my todo list...)
I keep meaning to refactor the configs into two files, so "just enough to boot
this with a serial console" is a separate file from things like filesystems
and network stack that are common to all of 'em. (Then concatenate the two
to get a miniconfig.) I'm not _quite_ convinced the extra build complexity's
worth it...
> But if you want to discover size change with minimal configs early you
> anyway have to both:
> - constantly keep your configs in shape so that they are both minimal
> for some set of hardware support and features and
I find miniconfig helps here.
> - investigate for any size changes what caused them
> (experience has shown that putting information on a webpage doesn't
> fix problems - even for compile errors).
>
> You need both, and ideally constantly done by the same person against
> Linus' tree, -next and -mm.
Speaking from experience, this is a huge #*%&# pain. (I'm trying to track
this sort of changes for less than a dozen qemu configs. There are hundreds
of defconfigs in the tree, most of which I can't boot test...)
However, qemu can be automated and scripted. (Especially when /dev/console
attaches to qemu's stdin and stdout. That's why I need each platform to know
how to shut _down_, and exit the emulator. Currently, powerpc -M prep
doesn't do this. :P)
> Where to get your minimal configs from at the start is just a small
> thing at the beginning - don't underestimate the required manual work
> that will have to be done each week.
Eh, I'd suggest every -pre release.
And starting with tracking the size regressions in just _one_ platform is
probably best. I'd suggest either x86 (32 bit, matches arm) or x86_64
(largest userbase at this point, even Via's finally switched over).
> > Does anyone else think this would be valuable? If not in mainline, it
> > would be nice to collect them somewhere, to compare what options
> > different developers decide turn on or off.
>
> You already have this when you look at e.g. the ARM defconfigs in the
> kernel
I've got a script running to convert all the 2.6.25 defconfigs into
miniconfigs, which I find makes 'em easier to read. I'll post the results
when it finishes...
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
next prev parent reply other threads:[~2008-06-11 3:48 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-02 22:37 [PATCH] console - Add configurable support for console charset translation Tim Bird
2008-06-03 1:34 ` H. Peter Anvin
2008-06-03 7:00 ` Jamie Lokier
2008-06-03 15:46 ` Matt Mackall
2008-06-03 21:31 ` Rob Landley
2008-06-03 22:37 ` H. Peter Anvin
2008-06-04 2:56 ` Paul Mundt
2008-06-04 17:36 ` Rob Landley
2008-06-04 17:42 ` Bill Gatliff
2008-06-04 18:55 ` Rob Landley
2008-06-04 19:05 ` Bill Gatliff
2008-06-05 0:46 ` Paul Mundt
2008-06-05 23:35 ` Rob Landley
2008-06-07 3:35 ` H. Peter Anvin
2008-06-09 11:38 ` Jamie Lokier
2008-06-09 11:51 ` Geert Uytterhoeven
2008-06-04 17:34 ` Rob Landley
2008-06-03 8:36 ` David Woodhouse
2008-06-03 13:45 ` David Woodhouse
2008-06-03 14:06 ` Holger Schurig
2008-06-03 14:10 ` David Woodhouse
2008-06-04 0:01 ` Tim Bird
2008-06-04 0:16 ` David Woodhouse
2008-06-04 1:03 ` Josh Boyer
2008-06-04 1:05 ` David Woodhouse
2008-06-04 3:13 ` Josh Boyer
2008-06-04 9:16 ` David Woodhouse
2008-06-04 10:07 ` Adrian Bunk
2008-06-04 10:10 ` David Woodhouse
2008-06-04 15:35 ` Tim Bird
2008-06-04 11:55 ` Alan Cox
2008-06-04 13:55 ` David Woodhouse
2008-06-04 14:07 ` Alan Cox
2008-06-04 14:27 ` David Woodhouse
2008-06-03 21:18 ` Rob Landley
2008-06-03 21:26 ` David Woodhouse
2008-06-03 21:30 ` Matt Mackall
2008-06-04 7:02 ` Holger Schurig
2008-06-04 7:04 ` Holger Schurig
2008-06-04 7:36 ` Dave Hylands
2008-06-04 15:24 ` Randy Dunlap
2008-06-04 17:19 ` Rob Landley
2008-06-04 17:26 ` linux-embedded archives [was Re: [PATCH] console - Add configurable support for console charset translation] T Ziomek
2008-06-04 18:08 ` Rob Landley
2008-06-04 10:33 ` [PATCH] console - Add configurable support for console charset translation Adrian Bunk
2008-06-04 17:51 ` Rob Landley
2008-06-04 18:34 ` Bernhard Fischer
2008-06-04 19:01 ` Adrian Bunk
2008-06-04 19:21 ` Bernhard Fischer
2008-06-04 19:20 ` Alan Cox
2008-06-04 18:51 ` Tim Bird
2008-06-04 19:15 ` Sam Ravnborg
2008-06-04 19:23 ` Tim Bird
2008-06-04 20:23 ` Adrian Bunk
2008-06-04 20:42 ` Tim Bird
2008-06-05 6:55 ` Jörn Engel
2008-06-05 7:18 ` Uwe Klein
2008-06-04 20:24 ` Jörn Engel
2008-06-04 19:40 ` Adrian Bunk
2008-06-06 23:47 ` Tim Bird
2008-06-07 4:29 ` Rob Landley
2008-06-10 1:37 ` mainlining min-configs Tim Bird
2008-06-10 3:14 ` Ben Nizette
2008-06-10 4:16 ` Paul Mundt
2008-06-10 8:36 ` Adrian Bunk
2008-06-10 18:18 ` Tim Bird
2008-06-10 18:30 ` Adrian Bunk
2008-06-10 18:51 ` Sam Ravnborg
2008-06-10 19:05 ` Adrian Bunk
2008-06-11 5:09 ` Rob Landley
2008-06-11 6:39 ` Sam Ravnborg
2008-06-11 19:09 ` Tim Bird
2008-06-11 19:22 ` Sam Ravnborg
2008-06-11 19:36 ` Adrian Bunk
2008-06-11 19:46 ` Tim Bird
2008-06-12 1:42 ` Rob Landley
2008-06-11 19:48 ` Sam Ravnborg
2008-06-12 0:01 ` Rob Landley
2008-06-11 5:17 ` Rob Landley
2008-06-11 5:51 ` Rob Landley
2008-06-11 3:48 ` Rob Landley [this message]
2008-06-11 3:32 ` Rob Landley
2008-06-11 8:59 ` Christian MICHON
2008-06-04 19:42 ` [PATCH] console - Add configurable support for console charset translation Bernhard Fischer
2008-06-11 7:08 ` Holger Schurig
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=200806102248.16595.rob@landley.net \
--to=rob@landley.net \
--cc=Linux-tiny@selenic.com \
--cc=bunk@kernel.org \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tim.bird@am.sony.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).