public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Helge Hafting <helgehaf@idb.hist.no>
To: "McHarry, John" <john.mcharry@gemplex.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to compile on one machine and install on another?
Date: Wed, 20 Jun 2001 09:58:54 +0200	[thread overview]
Message-ID: <3B3057BE.4374D4B2@idb.hist.no> (raw)
In-Reply-To: <A5F553757C933442ADE9B31AF50A273B028DB4@corp-p1.gemplex.com>

"McHarry, John" wrote:
> 
> I am trying to compile the 2.2.19 kernel one one machine for  installation
> on another.  I believe I need to do more than just copy over  bzImage and
> modify lilo.conf, but I don't know what.  Is there documentation somewhere
> on how to do this?  Thanks.

This is enough if you don't use modules.  If you use modules you
need to copy them too, which is trickier.  Several good methods
have been demonstrated, here is another if you can't use the nfs
approach:

1. If you are running the same kernel revision on the compile machine,
   temporarily rename /lib/modules/<version> to something else.
   Yes - this could be dangerous but tend to work well on a "home
machine"
2. Do the "make modules_install" on the compile machine.
3. Rename the /lib/modules/<version> to something else, and
   rename your proper module directory back to what it should be.
4. Transfer the installed module tree to the target machine along with
   the bzImage.

The "dangerous part" happens if the kernel on the compile machine
tries to load a module between step 1 and step 3.
This can be avoided in a number of ways, such as:

* Make sure the target and compile machines run different kernel
revisions.
  If you're upgrading both, compile for the target machine first.
  Or edit the makefile, append something like "target" to the
"extraversion",
  you will then get the modules installed in
/lib/modules/<version>target
  which is different from what your compile machine uses.

* Use "chroot" so make modules_install will install somewhere else.
  info|man chroot for details.
 
Helge Hafting

  parent reply	other threads:[~2001-06-20  8:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-19 20:32 How to compile on one machine and install on another? McHarry, John
2001-06-19 20:35 ` Alan Cox
2001-06-19 20:55   ` Tom Diehl
2001-06-19 21:04     ` Steven Walter
2001-06-19 21:11     ` Raphael Manfredi
2001-06-19 21:50     ` John R Lenton
2001-06-23  4:53       ` Anuradha Ratnaweera
2001-06-20 20:11     ` Maciek Nowacki
2001-06-21  3:10       ` Keith Owens
2001-06-19 21:32 ` Gabriel Rocha
2001-06-19 21:45   ` Eli Carter
2001-06-19 21:53     ` Gabriel Rocha
2001-06-19 22:42     ` Mike Castle
2001-06-20  0:24   ` Kelledin Tane
2001-06-20  0:42     ` Gabriel Rocha
2001-06-20  7:58 ` Helge Hafting [this message]
2001-06-21  2:42   ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2001-06-19 21:04 McHarry, John
     [not found] <fa.o4pbsqv.26md2n@ifi.uio.no>
     [not found] ` <fa.go24tnv.1v60h9a@ifi.uio.no>
2001-06-20  2:23   ` John Weber
2001-06-20  2:50     ` Mike Castle
2001-06-20  2:58     ` Keith Owens

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=3B3057BE.4374D4B2@idb.hist.no \
    --to=helgehaf@idb.hist.no \
    --cc=john.mcharry@gemplex.com \
    --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