linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The end of embedded Linux?
@ 2002-10-05 19:36 Gigi Duru
  2002-10-05 19:46 ` Francois Romieu
                   ` (8 more replies)
  0 siblings, 9 replies; 115+ messages in thread
From: Gigi Duru @ 2002-10-05 19:36 UTC (permalink / raw)
  To: linux-kernel

Trivial experiment: configure out _ALL_ the options on
2.5.38 and build bzImage. My result? A totally useless
270KB kernel (compressed). 

Now try to put in some useful stuff and the
_compressed_ image will cheerfully approach 1MB. Where
are the days when a 200KB kernel would be fully
equipped?

I know you guys are struggling to bring "world class
VM & IO" to Linux, going for SMPs and other big toys,
but you are about to lose what you already have: the
embedded market.

As an embedded developer, I can't stand bloat. I think
an OS designer should feel the same, and develop in a
fully modular and configurable manner, going for both
speed and size. For a long time I've felt that Linux
has got it right, but lately I'm not that sure
anymore. 

Gigi Duru

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

^ permalink raw reply	[flat|nested] 115+ messages in thread
[parent not found: <Pine.LNX.4.33.0210061854190.24860-100000@coffee.psychology.mcmaster.ca>]
* RE: The end of embedded Linux?
@ 2002-10-07 20:04 Hell.Surfers
  2002-10-07 23:01 ` David S. Miller
  0 siblings, 1 reply; 115+ messages in thread
From: Hell.Surfers @ 2002-10-07 20:04 UTC (permalink / raw)
  To: rmk, george, nico, mark, davem, simon, alan, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

Then shouldn't the thing thats different from the norm be programmed into a header file which contains how certain functions should be handled differently, which can be dynamically switched by a config option?

Cheers, Dean.

On 	Mon, 7 Oct 2002 20:11:11 +0100 	Russell King <rmk@arm.linux.org.uk> wrote:

[-- Attachment #2: Type: message/rfc822, Size: 4668 bytes --]

From: Russell King <rmk@arm.linux.org.uk>
To: george anzinger <george@mvista.com>
Cc: Nicolas Pitre <nico@cam.org>, Mark Mielke <mark@mark.mielke.cc>, "David S. Miller" <davem@redhat.com>, simon@baydel.com, alan@lxorguk.ukuu.org.uk, lkml <linux-kernel@vger.kernel.org>
Subject: Re: The end of embedded Linux?
Date: Mon, 7 Oct 2002 20:11:11 +0100
Message-ID: <20021007201111.C5381@flint.arm.linux.org.uk>

On Mon, Oct 07, 2002 at 11:54:54AM -0700, george anzinger wrote:
> Nicolas Pitre wrote:
> > #ifdef CONFIG_ASSABET_NEPONSET
> > 
> > /*
> >  * These functions allow us to handle IO addressing as we wish - this
> >  * ethernet controller can be connected to a variety of busses.  Some
> >  * busses do not support 16 bit or 32 bit transfers.  --rmk
> >  */
> > static inline u8 smc_inb(u_int base, u_int reg)
> > {
> >         u_int port = base + reg * 4;
> > 
> >         return readb(port);
> > }
> > 
> > static inline u16 smc_inw(u_int base, u_int reg)
> > {
> >         u_int port = base + reg * 4;
> > 
> >         return readb(port) | readb(port + 4) << 8;
> > }
> > 
> > static inline void smc_outb(u8 val, u_int base, u_int reg)
> > {
> >         u_int port = base + reg * 4;
> > 
> >         writeb(val, port);
> > }
> > 
> > static inline void smc_outw(u16 val, u_int base, u_int reg)
> > {
> >         u_int port = base + reg * 4;
> > 
> >         writeb(val, port);
> >         writeb(val >> 8, port + 4);
> > }
> > 
> > #endif
> > 
> > As you can see such code duplicated multiple times for all bus arrangements
> > in existence out there is just not pretty and was refused by Alan.  We lack
> > a global lightweight IO abstraction to nicely override the default IO macros
> > for individual drivers at compile time to fix that problem optimally and
> > keep the driver proper clean.
> 
> Uh, what about stuff like this (from tulip.h):
>  
> #ifndef USE_IO_OPS
> #undef inb
> #undef inw
> #undef inl
> #undef outb
> #undef outw
> #undef outl
> #define inb(addr) readb((void*)(addr))
> #define inw(addr) readw((void*)(addr))
> #define inl(addr) readl((void*)(addr))
> #define outb(val,addr) writeb((val), (void*)(addr))
> #define outw(val,addr) writew((val), (void*)(addr))
> #define outl(val,addr) writel((val), (void*)(addr))
> #endif /* !USE_IO_OPS */

No, you don't quite get it.  The above code Nico pasted supports _one_
ARM machine type only (the one I have here, hence why its in my tree)
where the SMC chip is configured to be in 8-bit mode.

We also have the same device connected in 16-bit mode on other machines,
with different ways to set it up:

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=734/1

Now imagine the case when you have 100 different machine types, all
different, using this device where each hardware designer has decided to
connect the chip up differently.

Is putting this crud into drivers going to be maintainable?  No.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 115+ messages in thread
* Re: The end of embedded Linux?
@ 2002-10-08  9:36 Hell.Surfers
  0 siblings, 0 replies; 115+ messages in thread
From: Hell.Surfers @ 2002-10-08  9:36 UTC (permalink / raw)
  To: landley, porter, davem, giduru, andre, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

Integral support for TinyX would be nice(www.handhelds.org).

Cheers, Dean.

On 	Mon, 7 Oct 2002 15:50:43 -0400 	Rob Landley <landley@trommello.org> wrote:

[-- Attachment #2: Type: message/rfc822, Size: 2797 bytes --]

From: Rob Landley <landley@trommello.org>
To: Matt Porter <porter@cox.net>
Cc: "David S. Miller" <davem@redhat.com>, giduru@yahoo.com, andre@linux-ide.org, linux-kernel@vger.kernel.org
Subject: Re: The end of embedded Linux?
Date: Mon, 7 Oct 2002 15:50:43 -0400
Message-ID: <20021008005030.C0DDF630@merlin.webofficenow.com>

On Monday 07 October 2002 07:20 pm, Matt Porter wrote:
>
> > Or they could play in the source code if their needs are sufficiently
> > unusual, which more or less by definition they will be in this case.  No
> > matter how thorough you are here, there will be things they want to tweak
> > (or would if they knew about them) that there is no config option for. 
> > "make menuconfig" is not a complete replacement for knowing C in all
> > cases.
>
> True, but there are a number of people out there who want to do say
> a kernel port to XYZ custom board.  They learn some basic kernel
> knowledge, but we can't expect them to be a guru of everything to
> get some work done.

Another very real option here is Documentation/tinykernel.txt.  (Possibly 
even going so far as a brief mention of uclibc and busybox/tinylogin, but 
mostly just about choping down the kernel for embedding in nosehair trimmers 
and electric toothbrushes and such.)

Rob "waiting for the linux i-button" Landley.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 115+ messages in thread
* RE:Re: The end of embedded Linux?
@ 2002-10-08  9:51 Hell.Surfers
  2002-10-08 20:00 ` David S. Miller
  0 siblings, 1 reply; 115+ messages in thread
From: Hell.Surfers @ 2002-10-08  9:51 UTC (permalink / raw)
  To: jw, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 108 bytes --]

limitation of mailer.

Cheers, Dean.

On 	Mon, 7 Oct 2002 17:10:50 -0700 	jw schultz <jw@pegasys.ws> wrote:

[-- Attachment #2: Type: message/rfc822, Size: 2804 bytes --]

From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: The end of embedded Linux?
Date: Mon, 7 Oct 2002 17:10:50 -0700
Message-ID: <20021008001050.GB6537@pegasys.ws>

On Mon, Oct 07, 2002 at 04:01:46PM -0700, David S. Miller wrote:
>    From: <Hell.Surfers@cwctv.net>
>    Date: Mon, 7 Oct 2002 21:04:29 +0100
> 
>    Then shouldn't the thing thats different from the norm be programmed into a header file which contains how certain functions should be handled differently, which can be dynamically switched by a config option?
>    
> If I gave you a dollar, would you go out and buy some newlines
> to use in future emails?

Maybe he could exchange the mime headers for newlines if he
put his comments at the end where they belong.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 115+ messages in thread
* RE: The end of embedded Linux?
@ 2002-10-08 12:05 Hicks, Jamey
  0 siblings, 0 replies; 115+ messages in thread
From: Hicks, Jamey @ 2002-10-08 12:05 UTC (permalink / raw)
  To: Hell.Surfers, landley, porter, davem, giduru, andre, linux-kernel

> -----Original Message-----
> From: Hell.Surfers@cwctv.net [mailto:Hell.Surfers@cwctv.net]
> Sent: Tuesday, October 08, 2002 5:36 AM
> To: landley@trommello.org; porter@cox.net; davem@redhat.com;
> giduru@yahoo.com; andre@linux-ide.org; linux-kernel@vger.kernel.org
> Subject: Re: The end of embedded Linux?
> 
> 
> Integral support for TinyX would be nice(www.handhelds.org).

The tiny xserver is maintained on www.xfree86.org.  It does not require any particular kernel support.

-Jamey 

^ permalink raw reply	[flat|nested] 115+ messages in thread
* Re: The end of embedded Linux?
@ 2002-10-12 20:45 Hell.Surfers
  0 siblings, 0 replies; 115+ messages in thread
From: Hell.Surfers @ 2002-10-12 20:45 UTC (permalink / raw)
  To: jw, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

such projects already exist, RULE for instance.

Cheers, Dean.

On 	Wed, 9 Oct 2002 16:49:21 -0700 	jw schultz <jw@pegasys.ws> wrote:

[-- Attachment #2: Type: message/rfc822, Size: 3756 bytes --]

From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: The end of embedded Linux?
Date: Wed, 9 Oct 2002 16:49:21 -0700
Message-ID: <20021009234921.GC14644@pegasys.ws>

On Wed, Oct 09, 2002 at 08:17:45PM +0100, jbradford@dial.pipex.com wrote:
> > 
> > On 9 Oct 2002, Alan Cox wrote:
> > 
> > > On Wed, 2002-10-09 at 08:37, Alexander Kellett wrote: 
> > > > This talk of adeos reminds me of something that i'd
> > > > "dreamed" of a while back. Whats the feasability of
> > > > having a 70kb kernel that barely even provides support 
> > > > for user space apps and is basically just an hardware 
> > > > abstraction layer for "applications" that can be 
> > > > written as kernel modules?
> > > 
> > > Its called FreeDOS,
> > > 
> > 
> > -emm. Maybe he needs just a bit more.
> 
> Minix, maybe?

Now, be realistic.  What he asks here isn't that
farfeteched.  Tell me one other OS that has drivers of the
same quality.  I'll be the first to say (oops, Alan beat me
to it) that a Linux stripped down that much wouldn't be
Linux.

However, it wouldn't be an unreasonable project to create
sort of fork that strips Linux down to the bare minimum
while still keeping the driver API.  I don't say that it can
be done just that it might make a reasonable public project
if enough embedded people wanted such a beast^Winsect.  The
dificulty would be excising/replacing core code without
breaking it, side-porting driver patches, and the periodic
resyncing with Linux so new drivers and driver patches would
still apply.  Painful indeed.

Of course it wouldn't be Linux.  Maybe call it Minux or Minlin.
And give it its own mailing list instead of linux-kernel.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2002-10-14 19:27 UTC | newest]

Thread overview: 115+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-05 19:36 The end of embedded Linux? Gigi Duru
2002-10-05 19:46 ` Francois Romieu
2002-10-05 19:49 ` Ben Greear
2002-10-05 19:53 ` Andre Hedrick
2002-10-05 20:52   ` Gigi Duru
2002-10-05 20:58     ` Mark Mielke
2002-10-06  1:54       ` Andre Hedrick
2002-10-07 23:28       ` Gigi Duru
2002-10-06  0:46     ` Rik van Riel
2002-10-06  1:52     ` Andre Hedrick
2002-10-06 20:20       ` Gigi Duru
2002-10-07  2:01         ` Andre Hedrick
2002-10-06  4:28     ` David S. Miller
2002-10-06 16:53       ` Alan Cox
2002-10-06 18:50         ` george anzinger
2002-10-07 10:06         ` simon
2002-10-07 10:36           ` David S. Miller
2002-10-07 11:57             ` Russell King
2002-10-07 12:10               ` Abraham vd Merwe
2002-10-07 14:12                 ` Alan Cox
2002-10-07 16:05               ` Nicolas Pitre
2002-10-07 16:02                 ` David S. Miller
2002-10-07 16:20                   ` Benjamin LaHaise
2002-10-07 16:38                   ` Nicolas Pitre
2002-10-07 16:53                   ` Mark Mielke
2002-10-07 17:45                     ` Nicolas Pitre
2002-10-07 18:11                       ` Richard B. Johnson
2002-10-07 18:54                       ` george anzinger
2002-10-07 19:11                         ` Russell King
2002-10-07 20:05                           ` Ben Greear
2002-10-12 10:08                       ` Richard Zidlicky
2002-10-14 12:26                       ` Richard Zidlicky
2002-10-07 17:15             ` simon
2002-10-07 17:24               ` David S. Miller
2002-10-07 20:22               ` Alan Cox
2002-10-07 22:22                 ` Christer Weinigel
2002-10-07 22:52                   ` Alan Cox
2002-10-07 22:56                     ` Arnaldo Carvalho de Melo
2002-10-09 11:19                     ` Jamie Lokier
2002-10-08 10:11                 ` simon
2002-10-08 11:11                   ` jbradford
2002-10-08 11:53                     ` Richard B. Johnson
2002-10-08 12:09                       ` jbradford
2002-10-08 11:25                   ` Vojtech Pavlik
2002-10-08 11:25                   ` Alan Cox
2002-10-08 20:04                     ` David S. Miller
2002-10-08 22:53                       ` Alan Cox
2002-10-08 22:38                         ` David S. Miller
2002-10-08 11:27                   ` jw schultz
2002-10-09  7:37                     ` Alexander Kellett
2002-10-09 11:49                       ` Alan Cox
2002-10-09 11:53                         ` Richard B. Johnson
2002-10-09 19:17                           ` jbradford
2002-10-09 23:49                             ` jw schultz
2002-10-13 16:30                         ` Eric W. Biederman
2002-10-09 12:42                       ` Ian Molton
2002-10-10  4:47                       ` Shane Nay
2002-10-08 15:52                   ` David Lang
2002-10-09 10:53                     ` David Woodhouse
2002-10-07 10:55           ` Xavier Bestel
2002-10-07 17:20             ` simon
2002-10-07 22:59               ` Arnaldo Carvalho de Melo
2002-10-07 23:18                 ` Alan Cox
2002-10-07 16:15         ` Matt Porter
2002-10-07 16:22       ` Matt Porter
2002-10-07 16:41         ` Rob Landley
2002-10-07 21:56           ` Gigi Duru
2002-10-07 19:44             ` Rob Landley
2002-10-08 13:22               ` Thomas Molina
2002-10-08 16:34                 ` Rob Landley
2002-10-07 23:20           ` Matt Porter
2002-10-07 19:50             ` Rob Landley
2002-10-08 15:04               ` Matt Porter
2002-10-08 16:52                 ` Rob Landley
2002-10-09 11:38                   ` Adrian Bunk
2002-10-09 12:15                     ` [patch] show Fusion MPT dialog only when CONFIG_BLK_DEV_SD is set Adrian Bunk
2002-10-09 19:55                       ` Rob Landley
2002-10-09 19:54                     ` [PATCH]: Move Fusion MPT config menu into scsi driver support (was Re: The end of embedded Linux?) Rob Landley
2002-10-07 23:01         ` The end of embedded Linux? Arnaldo Carvalho de Melo
2002-10-07 23:23           ` Alan Cox
2002-10-07 23:47             ` Arnaldo Carvalho de Melo
2002-10-08  0:06               ` Arnaldo Carvalho de Melo
2002-10-08  1:23             ` Xcytame@yahoo.es
2002-10-06 13:02     ` Ian Molton
2002-10-05 19:53 ` jbradford
2002-10-05 22:23 ` Oliver Xymoron
2002-10-05 23:28   ` Arnaldo Carvalho de Melo
2002-10-06  1:57     ` Andre Hedrick
2002-10-12  4:01   ` Daniel Phillips
2002-10-12  4:09     ` William Lee Irwin III
2002-10-06  0:36 ` Rik van Riel
2002-10-06  0:41 ` Zwane Mwaikambo
2002-10-06  0:50   ` William Lee Irwin III
2002-10-06  1:00     ` Zwane Mwaikambo
2002-10-06  0:44 ` William Lee Irwin III
2002-10-06 22:24   ` Aaron Lehmann
2002-10-06 22:54     ` William Lee Irwin III
2002-10-07  1:33     ` Andre Hedrick
2002-10-07 22:25     ` Andre Hedrick
2002-10-07  9:10 ` Jan-Benedict Glaw
     [not found] <Pine.LNX.4.33.0210061854190.24860-100000@coffee.psychology.mcmaster.ca>
2002-10-07  5:38 ` Gigi Duru
2002-10-07  5:42   ` Rik van Riel
2002-10-07  6:06     ` Arnaldo Carvalho de Melo
2002-10-07 12:04   ` Richard B. Johnson
2002-10-07 12:00     ` David S. Miller
2002-10-07 12:32       ` Richard B. Johnson
2002-10-07 12:29         ` David S. Miller
2002-10-07 13:06   ` Dana Lacoste
2002-10-07 20:04 Hell.Surfers
2002-10-07 23:01 ` David S. Miller
2002-10-08  0:10   ` jw schultz
2002-10-08  9:36 Hell.Surfers
2002-10-08  9:51 Hell.Surfers
2002-10-08 20:00 ` David S. Miller
2002-10-08 12:05 Hicks, Jamey
2002-10-12 20:45 Hell.Surfers

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).