From: Michael Tokarev <mjt@tls.msk.ru>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>, linux-kernel@vger.kernel.org
Subject: Re: klibc - another libc?
Date: Sat, 10 Jun 2006 20:24:06 +0400 [thread overview]
Message-ID: <448AF226.7060003@tls.msk.ru> (raw)
In-Reply-To: <Pine.LNX.4.64.0606100316400.17704@scrub.home>
Roman Zippel wrote:
> Hi,
>
> On Fri, 9 Jun 2006, Michael Tokarev wrote:
>
>> But I see a reason for kinit *now*, in its current form - it's
>> compatibility. Later on, maybe the whole stuff can be removed entirely,
>> to rely on external tools for booting.
>
> The compatibility code is already in the kernel, just don't call it if
Isn't kinit/klibc intended to *replace* that whole code in the kernel?
> e.g. there's a /kinit in initramfs. We can add the hooks to the kernel to
> pull whatever you want into the initramfs and with time we can remove
> the old code.
> Why create new (temporary?) compatibility code, if the current code is
> working just fine?
That was partly my question (or something I had in mind but didn't ask).
Well. It's interesting.
Embedded folks are using uclibc or dietlibc - i see no reason for another
"more small" libc for booting, regular tools (linked against uc or diet)
can be used just fine.
Big systems will usually require some "advanced" stuff like that same
mdadm or lvm - and again, I don't see why regular glibc can't be used
(wich has an advandage - no need to have two versions of the toolset,
linked with klibc and glibc).
The only real reason I see in klibc is to be able to remove all that
'kinit' code from kernel but still be compatible - so that I will
be able to download linux-2.7, make oldconfig all install, and it
Will Just Work (in case I had no initrd/initramfs) - new userspace
kinit will take care of everything removed from kernel code.
In the other words, i see the whole klibc thing as a temporary
compatibility solution.
Did I miss something?
And yes, it's a PITA to have two sets of all the system utilities -
I'd not go this route. Also, since klibc will have compatibility
problems with kernel API changes, such a 'parallel toolset' needs
to be recompiled on a regular basis, which means not two toolsets,
but many of them (one 'main', and several 'small for boot', for
different kernel versions, linked against different klibc-XXX.so).
The only problem I see with using glibc in initramfs is -- systems
with small amount of memory, where full-blown glibc with all the
required tools will just not fit into ramfs/tmpfs. Not "embedded"
systems (like boxed routers for example - they're already using
something much more compact than glibc). Are there such systems
out there still?
/mjt
next prev parent reply other threads:[~2006-06-10 16:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 8:51 klibc - another libc? Michael Tokarev
2006-06-07 21:17 ` H. Peter Anvin
2006-06-07 22:42 ` Roman Zippel
2006-06-08 15:32 ` H. Peter Anvin
2006-06-09 14:13 ` Roman Zippel
2006-06-09 19:02 ` H. Peter Anvin
2006-06-09 19:13 ` Michael Tokarev
2006-06-09 19:29 ` H. Peter Anvin
2006-06-10 1:28 ` Roman Zippel
2006-06-10 16:24 ` Michael Tokarev [this message]
2006-06-10 17:28 ` Sam Ravnborg
2006-06-11 0:21 ` Roman Zippel
2006-06-10 1:15 ` Roman Zippel
2006-06-10 6:13 ` Sam Ravnborg
2006-06-10 23:37 ` Roman Zippel
2006-06-13 2:31 ` Paul Dickson
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=448AF226.7060003@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zippel@linux-m68k.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