From: Richard Purdie <rpurdie@rpsys.net>
To: Paul Sokolovsky <pmiscml@gmail.com>
Cc: openembedded-devel@openembedded.org, angstrom-distro-devel@linuxtogo.org
Subject: Re: [Angstrom-devel] [RFC] Get rid of adhoc machine-specific messing with kernel packages
Date: Fri, 29 Dec 2006 11:34:04 +0000 [thread overview]
Message-ID: <1167392044.5616.16.camel@localhost.localdomain> (raw)
In-Reply-To: <1065634639.20061229040545@gmail.com>
On Fri, 2006-12-29 at 04:05 +0200, Paul Sokolovsky wrote:
> Richard, is this response to Koen or to me? If to Koen, that's ok,
> but my original mail (
> http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2006-December/000058.html )
> started with observation that there're few things wrong withe exactly
> this approach.
Its to both of you. Your original mail seems to be to basically say you
don't like the idea as its "unclear" and "weird". These are more
documentation issues.
> And PocketPC have exactly the same problem of having sucky
> bootloaders. But I wouldn't like to accept that as the eternal state of
> affairs, but tackle it to get some generic and reusable solution. The
> path I see here is:
>
> 1) Stop issuing broken kernel-image packages which don't actually
> have kernel image; instead, offer other means to achieve the
> result of not having zImage in rootfs, for the cases when it is
> needed.
Ok, so you remove the kernel-image package. What do modules then focus
on to make sure they're all in sync? The kernel-image file serves two
purposes - the first to add a kernel image file if needed, the second to
ensure the modules all have a common versioned dependency package.
Please don't suggest we need another empty package for this.
> 2) Argue to Angstrom maintainers to stop killing zImage from rootfs at
> all - consistently for all machines.
So we start to waste 1.2MB disk space on at least 50% of the machines
Angstrom supports? Thats a lot of space on a machine with a 32MB root
partition.
Also, it creates a user support problem. "I upgraded the zImage file on
my rootfs but my device still uses my old kernel?".
> 3) Move towards adopting 3-level bootloading with a tool like LAB (Linux as
> Bootloader) with the following stages:
> a) 1st level bootloader bootstraps 2nd level bootloader out of NAND
> and such - in most cases supplied by device vendor.
> b) 2nd level bootloader boots LAB out of flash (what we have now is
> that 2nd level bootloader boots actual production kernel). 2nd level
> bootloader is vendor's stuff, or small bootloader like u-boot or
> HH.org bootldr.
> c) LAB, 3rd stage bootloader, boots actual kernel out of real
> rootfs, like it is usually done on standard desktop systems.
Its a nice idea but its complex. Nobody has ever looked at LAB on the
Zaurus for example and there are nasty issues to do with the proprietary
flash translation layer which means we can't easily read from flash
partitions under boot loader control (e.g. where the kernel is flashed).
Also, on the Zaurus it means wasting a couple of megabytes of flash for
the extra copies of kernels you'll need.
> > Arguably, the machine files should perhaps set this...
>
> Well, in my initial days I was told many times what should be
> within machine's discretion, and what's not, and I think I got idea
> ;-). So, I'd argue that distro config should set it for machines it
> supports. This is based on the ideas outlined above - suckiness of
> a bootloader is not unalienable property of machine, you can easily add
> a 1Mb level to abstract away that suckiness. And in this regard, it is a
> distro policy, if it wants to abstract away at some expense, or deal
> with dirty details striving to save some space.
Machine config files set information that is specific to the machine.
Whether of not a given machine has a sucky bootloader is a property of
the machine. Whether the DISTRO wants to allow zImage removal from the
images is a distro policy. It can't enforce that policy without knowing
which machines need to do what though so you need some machine specific
information.
> > The only other solution probably involves a nasty anonymous function
> > acting on a setting of EXTERNAL_KERNEL_IMAGE = "1" in kernel.bbclass.
>
> The solution I propose,
>
> ROOTFS_POSTPROCESS_COMMAND += "remove_zimages; "
>
> is not nastier than what we already have and use.
Yes, it is. Try upgrading kernel-image and you have a user support
nightmare.
Basically, the Zauruii at least are going to be stuck with the kernel
flashed outside the rootfs. Even if we write a better reflashing util,
we'll probably stick to using that flash space for the kernel. The
Zaurus machines are therefore going to need support for external kernels
from OE. If things are unclear, we need to document them better.
Richard
next prev parent reply other threads:[~2006-12-29 11:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <53610736.20061228191750@gmail.com>
2006-12-28 17:50 ` [Angstrom-devel] [RFC] Get rid of adhoc machine-specific messing with kernel packages Koen Kooi
2006-12-28 20:32 ` Richard Purdie
2006-12-29 2:05 ` Paul Sokolovsky
2006-12-29 11:34 ` Richard Purdie [this message]
2007-01-04 19:03 ` [Angstrom-devel] [RFC] Get rid of adhoc machine-specific messing with [linux-handhelds-2.6] " Paul Sokolovsky
2007-01-04 20:55 ` Richard Purdie
2007-01-04 21:22 ` Koen Kooi
2007-01-04 21:33 ` Richard Purdie
2007-01-04 21:38 ` Paul Sokolovsky
2007-01-05 8:41 ` Marcin Juszkiewicz
2007-01-05 9:15 ` Koen Kooi
2007-01-05 10:15 ` pHilipp Zabel
2007-01-06 10:26 ` Paul Sokolovsky
2006-12-29 1:30 ` [Angstrom-devel] [RFC] Get rid of adhoc machine-specific messing with " 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=1167392044.5616.16.camel@localhost.localdomain \
--to=rpurdie@rpsys.net \
--cc=angstrom-distro-devel@linuxtogo.org \
--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.