public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, felix-dietlibc@fefe.de,
	andersen@codepoet.org
Subject: [RFC] klibc requirements, round 2
Date: Thu, 10 Jan 2002 15:18:49 -0800	[thread overview]
Message-ID: <20020110231849.GA28945@kroah.com> (raw)

Hi,

Ok, now that we have a general idea that people are going to want to
stick lots of different types of programs into the initramfs, does this
change any of the initial requirement list for klibc that I sent out?

To summarize, here's a partial list of the programs people want to run:
	- mount
	- hotplug
	- busybox
	- dhcpcd
	- image viewer
	- mkreiserfs
	- partition discovery (currently in the kernel)
	- lots of other, existing in kernel code.

So on to the requirements:
  1) portable
     This is still true.
     
     dietlibc and uClibc currently do not cover the
     range of platforms that this code must run on.  For either of them
     to be used, they must be worked on.

  2) tiny
     Still true.
     
     For some people, glibc will be acceptable.  For the rest of us, we
     want something a bit smaller :) Both uClibc and dietlibc fit this
     requirement.

  3) dynamic version available
     Probably not true anymore.
     In talking with lots of people, and playing with the dynamic
     linking capabilities of different libraries, I don't think this is
     worth having as a requirement for this kind of library.

  4) not suck
     Still true :)


So, what's the available options to try to meet these requirements?

Here's some proposed solutions:
  - dietlibc / uClibc
    Nice options.  Both of these libraries are already fairly complete.
    One drawback is they are not portable to all platforms.  With some
    work, this can probably be solved.

  - klibc
    Portability can be achieved through using the kernel unistd.h file
    for the syscall logic, and having a very small _start function
    written.  For an example of this kind of code, see the initramfs
    patches from Al Viro on his ftp site:
	    ftp://ftp.math.psu.edu/pub/viro/
    This would involve writing/porting a lot of the basic library
    functions.  They could be copied from the existing libc
    implementations, but this would be a separate project, requiring
    maintenance over time, and people willing to do the work.

Is this all a good summary?  Any other comments from people?

How about responses from the dietlibc and uClibc people on the odds of
them being able to port to the remaining platforms?

In the meantime, I'll go off and play with klibc, and see if I can get
some portability based off of Al's example code.  If anyone is
interested, the code can be found at:
	http://linuxusb.bkbits.net:8088/klibc

thanks,

greg k-h

             reply	other threads:[~2002-01-10 23:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10 23:18 Greg KH [this message]
2002-01-10 22:29 ` [RFC] klibc requirements, round 2 Bjorn Wesen
2002-01-11  0:04   ` Greg KH
2002-01-11  0:44 ` Tom Rini
2002-01-11 13:31 ` Felix von Leitner
2002-01-12 12:21   ` Erik Andersen
2002-01-13  1:43     ` Alexander Viro
2002-01-13  2:10       ` Felix von Leitner
2002-01-11 21:46 ` David Lang
2002-01-12 20:16 ` Juan Quintela
2002-01-13  1:38   ` Alexander Viro
2002-01-14 17:54   ` Theodore Tso
2002-01-14 21:57     ` Oliver Xymoron
2002-01-14 23:58       ` Andreas Dilger
2002-01-15  1:26         ` Oliver Xymoron
2002-01-15  3:48           ` Andreas Dilger
2002-01-15  4:05             ` Oliver Xymoron
2002-01-15 17:28               ` Rob Landley
2002-01-16  4:01                 ` Alexander Viro
2002-01-16 17:54                   ` Oliver Xymoron
2002-01-15  0:33     ` H. Peter Anvin
2002-01-16 18:40     ` Erik Andersen
2002-01-13  3:58 ` Alexander Viro
  -- strict thread matches above, loose matches on Subject: below --
2002-01-11  1:50 Torrey Hoffman
2002-01-11  3:32 ` Tom Rini
2002-01-11  6:53 ` H. Peter Anvin

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=20020110231849.GA28945@kroah.com \
    --to=greg@kroah.com \
    --cc=andersen@codepoet.org \
    --cc=felix-dietlibc@fefe.de \
    --cc=linux-kernel@vger.kernel.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