public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Installing kernel 2.4
@ 2000-11-07 23:24 davej
  2000-11-07 23:37 ` Jeff V. Merkey
  0 siblings, 1 reply; 65+ messages in thread
From: davej @ 2000-11-07 23:24 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: jmerkey


> There are tests for all this in the feature flags for intel and
> non-intel CPUs like AMD -- including MTRR settings.  All of this could
> be dynamic.  Here's some code that does this, and it's similiar to
> NetWare.  It detexts CPU type, feature flags, special instructions,
> etc.  All of this on x86 could be dynamically detected.

Detecting the CPU isn't the issue (we already do all this), it's what to
do when you've figured out what the CPU is. Show me code that can
dynamically adjust the alignment of the routines/variables/structs
dependant upon cacheline size.

regards,

Davej.

-- 
| Dave Jones <davej@suse.de>  http://www.suse.de/~davej
| SuSE Labs

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

^ permalink raw reply	[flat|nested] 65+ messages in thread
* Re: Installing kernel 2.4
@ 2000-11-08 19:19 David Feuer
  0 siblings, 0 replies; 65+ messages in thread
From: David Feuer @ 2000-11-08 19:19 UTC (permalink / raw)
  To: linux-kernel

It might be convenient to have a completely unoptimized 386 kernel.  While 
this would obviously be non-optimal in all cases, it would be compatible 
with everything and probably faster on non-386 than a 386-optimized 
kernel.  Of course, the gains are probably not worth the time it would take 
to write one, as I would hope that most linux users are willing to compile 
their own kernels...

--
This message has been brought to you by the letter alpha and the number pi.
David Feuer
David_Feuer@brown.edu

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

^ permalink raw reply	[flat|nested] 65+ messages in thread
* Re: Installing kernel 2.4
@ 2000-11-08 13:49 Bruce_Holzrichter
  2000-11-08 15:10 ` davej
  2000-11-08 19:16 ` Jeff V. Merkey
  0 siblings, 2 replies; 65+ messages in thread
From: Bruce_Holzrichter @ 2000-11-08 13:49 UTC (permalink / raw)
  To: Jesse Pollard; +Cc: davej, jmerkey, linux-kernel, linux-kernel-owner


>
> On Wed, Nov 08, 2000 at 03:25:56AM +0000, davej@suse.de wrote:
> > On Tue, 7 Nov 2000, Jeff V. Merkey wrote:
> >
> > > If the compiler always aligned all functions and data on 16 byte
> > > boundries (NetWare)  for all i386 code, it would run a lot faster.
> >
> > Except on architectures where 16 byte alignment isn't optimal.
> >
> > > Cache line alignment could be an option in the loader .... after all,
> > > it's hte loader that locates data in memory.  If Linux were PE based,
> > > relocation logic would be a snap with this model (like NT).
> >
> > Are you suggesting multiple files of differing alignments packed into
> > a single kernel image, and have the loader select the correct one at
> > runtime ? I really hope I've misinterpreted your intention.
>
> Or more practically, a smart loader than could select a kernel image
> based on arch and auto-detect to load the correct image. I don't really
> think it matters much what mechanism is used.
>
> What makes more sense is to pack multiple segments for different
> processor architecures into a single executable package, and have the
> loader pick the right one (the NT model).  It could be used for
> SMP and non-SMP images, though, as well as i386, i586, i686, etc.


And this would fit on my 1.4bm floppy so I can boot my hard driveless
firewalling system, correct?

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

^ permalink raw reply	[flat|nested] 65+ messages in thread
* Re: Installing kernel 2.4
@ 2000-11-08 13:43 Jesse Pollard
  2000-11-08 18:52 ` Jeff V. Merkey
  0 siblings, 1 reply; 65+ messages in thread
From: Jesse Pollard @ 2000-11-08 13:43 UTC (permalink / raw)
  To: jmerkey, davej; +Cc: linux-kernel

---------  Received message begins Here  ---------

> 
> On Wed, Nov 08, 2000 at 03:25:56AM +0000, davej@suse.de wrote:
> > On Tue, 7 Nov 2000, Jeff V. Merkey wrote:
> > 
> > > If the compiler always aligned all functions and data on 16 byte
> > > boundries (NetWare)  for all i386 code, it would run a lot faster.
> > 
> > Except on architectures where 16 byte alignment isn't optimal.
> > 
> > > Cache line alignment could be an option in the loader .... after all,
> > > it's hte loader that locates data in memory.  If Linux were PE based,
> > > relocation logic would be a snap with this model (like NT).
> > 
> > Are you suggesting multiple files of differing alignments packed into
> > a single kernel image, and have the loader select the correct one at
> > runtime ? I really hope I've misinterpreted your intention.
> 
> Or more practically, a smart loader than could select a kernel image
> based on arch and auto-detect to load the correct image. I don't really
> think it matters much what mechanism is used.   
> 
> What makes more sense is to pack multiple segments for different 
> processor architecures into a single executable package, and have the 
> loader pick the right one (the NT model).  It could be used for 
> SMP and non-SMP images, though, as well as i386, i586, i686, etc.  

Sure.. and it will also be able to boot on Alpha/Sparc/PPC....:)

The best is to have the installer (person) to select the primary
archecture from a CD. There will NOT be a single boot loader that will
work for all systems. At best, there will have to be one per CPU family,
but more likely, one per BIOS structure. This is the only thing that can
determine the primary boot.

The primary boot can then determine which CPU type (starting with the
smallest common CPU), and set flags for a kernel (minimal kernel) load.
During the startup of THAT kernel then the selection of target RPM can
be made that would install a kernel for the specific architetcure. After
a (minimal?) system install, a reboot would be necessary.

It actually seems like it would be simpler to use the minimal kernel
to rebuild the kernel for the local architecture. MUCH less work.
This still requires a CPU family selection by the person doing the install.
Nothing will get around that.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 65+ messages in thread
* RE: Installing kernel 2.4
@ 2000-11-08  2:25 Marty Fouts
  2000-11-08  3:43 ` davej
  0 siblings, 1 reply; 65+ messages in thread
From: Marty Fouts @ 2000-11-08  2:25 UTC (permalink / raw)
  To: 'davej@suse.de', Linux Kernel Mailing List; +Cc: jmerkey

There's been a bunch of related work done at the Oregon Graduate Institute
by Calton Pu and others.  See
http://www.cse.ogi.edu/DISC/projects/synthetix/publications.html for a list
of papers.



> -----Original Message-----
> From: davej@suse.de [mailto:davej@suse.de]
> Sent: Tuesday, November 07, 2000 3:25 PM
> To: Linux Kernel Mailing List
> Cc: jmerkey@timpanogas.org
> Subject: Re: Installing kernel 2.4
> 
> 
> 
> > There are tests for all this in the feature flags for intel and
> > non-intel CPUs like AMD -- including MTRR settings.  All of 
> this could
> > be dynamic.  Here's some code that does this, and it's similiar to
> > NetWare.  It detexts CPU type, feature flags, special instructions,
> > etc.  All of this on x86 could be dynamically detected.
> 
> Detecting the CPU isn't the issue (we already do all this), 
> it's what to
> do when you've figured out what the CPU is. Show me code that can
> dynamically adjust the alignment of the routines/variables/structs
> dependant upon cacheline size.
> 
> regards,
> 
> Davej.
> 
> -- 
> | Dave Jones <davej@suse.de>  http://www.suse.de/~davej
> | SuSE Labs
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 65+ messages in thread
* RE: Installing kernel 2.4
@ 2000-11-08  2:19 Marty Fouts
  0 siblings, 0 replies; 65+ messages in thread
From: Marty Fouts @ 2000-11-08  2:19 UTC (permalink / raw)
  To: 'David Lang', Jeff V. Merkey
  Cc: kernel, Martin Josefsson, Tigran Aivazian, Anil kumar,
	linux-kernel

There is a variation of #2 that is often good enough, based on some research
work done at (among other places) the Oregon Graduate Center.  I don't have
the references handy, but you might want to look for papers on "sandboxing"
authored there.

The basic idea is similar to the one used by many 'recompile on the fly'
systems, and involves marking the code in such a way that even inline pieces
can be replaced on the fly.  Very useful for things like system specific
memcpy implementations.

Marty


> -----Original Message-----
> From: David Lang [mailto:david.lang@digitalinsight.com]
> Sent: Tuesday, November 07, 2000 4:11 PM
> To: Jeff V. Merkey
> Cc: kernel@kvack.org; Martin Josefsson; Tigran Aivazian; Anil kumar;
> linux-kernel@vger.kernel.org
> Subject: Re: Installing kernel 2.4
> 
> 
> Jeff, the problem is not detecting the CPU type at runtime, 
> the problem is
> trying to re-compile the code to take advantage of that CPU 
> at runtime.
> 
> depending on what CPU you have the kernel (and compiler) can 
> use different
> commands/opmizations/etc, if you want to do this on boot you have two
> options.
> 
> 1. re-compile the kernel
> 
> 2. change all the CPU specific places from inline code to 
> function calls
> into a table that get changed at boot to point at the correct calls.
> 
> doing #2 will cost you so much performance that you would be 
> better off
> just compiling for a 386 and not going through the autodetect 
> hassle in
> the first place.
> 
> David Lang
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 65+ messages in thread
* Re: Installing kernel 2.4
@ 2000-11-07 22:49 Bruce_Holzrichter
  0 siblings, 0 replies; 65+ messages in thread
From: Bruce_Holzrichter @ 2000-11-07 22:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: jmerkey

I don't know about you, but I like having the option to cut out code from
my kernel that will never get used for a particular cpu arch.....;o)

Or was that just a troll ;o)
----- Forwarded by Bruce Holzrichter/US/Infinium Software on 11/07/2000
05:46 PM -----
                                                                                                 
                    "Jeff V. Merkey"                                                             
                    <jmerkey@timpanogas.org>        To:     Martin Josefsson                     
                    Sent by:                        <gandalf@wlug.westbo.se>                     
                    linux-kernel-owner@vger.        cc:     Tigran Aivazian                      
                    kernel.org                      <tigran@veritas.com>, Anil kumar             
                                                    <anils_r@yahoo.com>,                         
                                                    linux-kernel@vger.kernel.org                 
                    11/07/2000 05:32 PM             Subject:     Re: Installing kernel 2.4       
                                                                                                 
                                                                                                 





So how come NetWare and NT can detect this at run time, and we have to
use a .config option to specifiy it?  Come on guys.....

Jeff

Martin Josefsson wrote:
>
> On Tue, 7 Nov 2000, Tigran Aivazian wrote:
>
> > On Tue, 7 Nov 2000, Anil kumar wrote:
> > >   The system hangs after messages:
> > >   loading linux......
> > >   uncompressing linux, booting linux kernel OK.
> > >
> > >   The System hangs here.
> > >
> > >   Please let me know where I am wrong
> >
> > Hi Anil,
> >
> > The only serious mistake you did was using test9 kernel when
test11-pre1
> > (or at least test10) was available. So, redo everything you have done
with
> > test11-pre1 and if you still cannot boot then send a message to this
list
> > with details like your CPUs, motherboard etc. etc.
>
> Have you chosen the right cpu type in the configuration?
>
> /Martin
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/


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

^ permalink raw reply	[flat|nested] 65+ messages in thread
* Installing kernel 2.4
@ 2000-11-07 20:52 Anil kumar
  2000-11-07 20:59 ` Jeff V. Merkey
  2000-11-07 21:39 ` Tigran Aivazian
  0 siblings, 2 replies; 65+ messages in thread
From: Anil kumar @ 2000-11-07 20:52 UTC (permalink / raw)
  To: linux-kernel

Hi ,
  I installed Red Hat 7.0, I am able to find the
  linux-2.2.16 in /usr/src

  These are the following steps I did to install
kernel 2.4:

  cd /usr/src
  #rm -r linux
   # rm -rf linux-2.2.16
   #tar -xvf  linux-2.4.0-test9.tar

  #cd /usr/src
#ls
 linux 
 redhat
 #mv  linux linux-2.4.0-test9
 #ln -s linux-2.4.0-test9 linux

  #ls
   linux->linux-2.4.0-test9
   linux-2.4.0-test9
   redhat
  
  #cd /usr/src/linux
  #make xconfig
  I just save & exit without changing the
configuration.
  #make dep
  #make clean
  #make bzImage
  #make modules
  #make modules_install

  I find that System.map is mapped to 2.4.0, ie.. new
  System-2.4.0-test9.map is created

  #cd /boot
  #ls
  #vmlinuz->vmlinuz-2.4.0-test9
  #cd /usr/src/linux/arch/i386/boot
  #cp bzImage /boot/vmlinuz
  
  #vi /etc/lilo.conf
  changed image from image = /boot/vmlinuz-2.2.16-22
to
  image = /boot/vmlinuz-2.4.0-test9

  #lilo
   linux
    dos

  when I boot linux

  The system hangs after messages:
  loading linux......
  uncompressing linux, booting linux kernel OK.

  The System hangs here.

  Please let me know where I am wrong

  with regards,
  Anil


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-11-09 18:28 UTC | newest]

Thread overview: 65+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-07 23:24 Installing kernel 2.4 davej
2000-11-07 23:37 ` Jeff V. Merkey
2000-11-07 23:47   ` Jeff V. Merkey
2000-11-07 23:59     ` Jeff V. Merkey
2000-11-08  0:51     ` David Lang
2000-11-08  0:10       ` Jeff V. Merkey
2000-11-08  3:39         ` davej
2000-11-08  4:41           ` Jeff V. Merkey
2000-11-08  3:57             ` davej
2000-11-08 12:05             ` Horst von Brand
2000-11-08 15:29               ` Eric W. Biederman
2000-11-08 16:51               ` James A. Sutherland
2000-11-08 17:36                 ` George Anzinger
2000-11-08 19:43                   ` James A. Sutherland
2000-11-08 20:32                     ` George Anzinger
2000-11-08 22:01                       ` James A. Sutherland
2000-11-09 13:25                       ` David Woodhouse
2000-11-09 18:24                         ` James A. Sutherland
2000-11-08  3:30     ` davej
2000-11-08  0:03   ` Jeff Garzik
2000-11-08  0:06     ` Jeff V. Merkey
2000-11-08  3:25   ` davej
2000-11-08  4:36     ` Jeff V. Merkey
2000-11-08  3:50       ` davej
  -- strict thread matches above, loose matches on Subject: below --
2000-11-08 19:19 David Feuer
2000-11-08 13:49 Bruce_Holzrichter
2000-11-08 15:10 ` davej
2000-11-08 19:16 ` Jeff V. Merkey
2000-11-08 13:43 Jesse Pollard
2000-11-08 18:52 ` Jeff V. Merkey
2000-11-08  2:25 Marty Fouts
2000-11-08  3:43 ` davej
2000-11-08  2:19 Marty Fouts
2000-11-07 22:49 Bruce_Holzrichter
2000-11-07 20:52 Anil kumar
2000-11-07 20:59 ` Jeff V. Merkey
2000-11-07 21:39 ` Tigran Aivazian
2000-11-07 22:28   ` Martin Josefsson
2000-11-07 22:32     ` Jeff V. Merkey
2000-11-07 22:51       ` kernel
2000-11-07 23:10         ` Jeff V. Merkey
2000-11-07 23:57           ` Jeff Garzik
2000-11-08  0:01             ` Jeff V. Merkey
2000-11-08  0:10               ` Jeff Garzik
2000-11-08  0:12                 ` Jeff V. Merkey
2000-12-10  8:22                   ` Mark W. McClelland
2000-11-09 13:40                     ` Alan Cox
2000-11-08  2:18                 ` H. Peter Anvin
2000-11-08  7:35                   ` Jeff V. Merkey
2000-11-08  0:54               ` Alan Cox
2000-11-08  3:31               ` Matthew Kirkwood
2000-11-08  0:11           ` David Lang
2000-11-07 23:39             ` Jeff V. Merkey
2000-11-07 23:51             ` Sven Koch
2000-11-07 23:59               ` Jeff Garzik
2000-11-08  0:18               ` David Relson
2000-11-08  0:23                 ` Jeff V. Merkey
2000-11-08  0:50                   ` Jeff Garzik
2000-11-08  0:52                     ` Jeff V. Merkey
2000-11-08  0:49           ` Alan Cox
2000-11-08  0:47             ` Jeff V. Merkey
2000-11-08  0:57               ` Alan Cox
2000-11-08  0:54                 ` Jeff V. Merkey
2000-11-07 22:52       ` J . A . Magallon
2000-11-07 22:54       ` J Sloan

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