public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [RFC] klibc requirements, round 2
@ 2002-01-11  1:50 Torrey Hoffman
  2002-01-11  3:32 ` Tom Rini
  2002-01-11  6:53 ` H. Peter Anvin
  0 siblings, 2 replies; 26+ messages in thread
From: Torrey Hoffman @ 2002-01-11  1:50 UTC (permalink / raw)
  To: Tom Rini, Greg KH; +Cc: linux-kernel, felix-dietlibc, andersen

Tom Rini wrote:
> On Thu, Jan 10, 2002 at 03:18:49PM -0800, Greg KH wrote:
... 
> > 	- image viewer
> > 	- mkreiserfs
> 
> I think these are examples of misunderstanding what initramfs _can do_
> with what we (might) need a klibc to do.  
...
> These programs _might_ compile with a klibc, but I wouldn't 
> worry about
> it.  uClibc is what should be used for many of these custom 
> applications

Well, as the person who first mentioned mkreiserfs and the like,
I agree with you.  For the majority of systems out there which 
aren't using initrd now, a minimal klibc for an unmodified 
initramfs makes sense.

My concern is with the minority who are using initrd, and in
some cases a very customized initrd.  

The important thing, I think, is that it should be easy for
less-than-guru level hackers to add programs to the initramfs,
even if the program they want can't be linked with klibc.

This really comes down to: What will the build process be for
these initramfs images?

By the way, is initramfs intended to supercede initrd, or will 
they co-exist?  

Torrey

^ permalink raw reply	[flat|nested] 26+ messages in thread
* [RFC] klibc requirements, round 2
@ 2002-01-10 23:18 Greg KH
  2002-01-10 22:29 ` Bjorn Wesen
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Greg KH @ 2002-01-10 23:18 UTC (permalink / raw)
  To: linux-kernel, felix-dietlibc, andersen

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

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2002-01-16 18:41 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-11  1:50 [RFC] klibc requirements, round 2 Torrey Hoffman
2002-01-11  3:32 ` Tom Rini
2002-01-11  6:53 ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2002-01-10 23:18 Greg KH
2002-01-10 22:29 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox