On Thu, Sep 13, 2001 at 05:39:30PM +0200, Oliver Ob wrote:
now that I have set up the second half of my network including NFS, I have to compile modularized kernels for 3 different machines. One of them for instance is a simple 386.dx40 with 200 MB harddisk only, so you understand that I shall not go and install the gcc and all sources on there, will you... :)
How can I get this organized? 3 different machines with different hardware, and I simply want to transfer the new kernels with the nfs which is running since the other day. Also do I wonder how I mark the modules (copy them all for every machine?). Also I am sure that I need to copy system.map as well.
something like ... goes through my mind ... = /usr/kernel/1 to 3 with .config, modules. (running cloneconfig)
Now, that I am doing this the first time, how can I get this done?
OK then. Here is what you need to do (in /usr/src/linux): make distclean # this will clear just about everything out make xconfig # or whatever you use to configure the kernel - configure # it for a particular machine of yours make dep make bzImage # this will make the kernel image and leave it in # /usr/src/linux/arch/i386/boot/bzImage # the System.map will be in /usr/src/linux/System.map make modules # this will make any modules you need Now you need to get the modules. If you've already compiled this kernel version before (e.g. if the system you're compiling on is running it) then you'll need to temporarily rename the directory in /lib/modules for that kernel version (so that those modules don't get overwritten). When you've done that, you can do a 'make modules_install'. Now you need to move the new kernel over to the machine it's meant for. You'll need to stick the System.map and bzImage in /boot on the new machine (you can rename bzImage to vmlinuz-<whatever> if you want). You'll also want to copy over the appropriate modules directory from /lib/modules. Then you can go ahead and edit /etc/lilo.conf on the new machine, run mk_initrd and lilo, and so on. When you you've done that, you can repeat the process for the next machine. When you've done this for all the machines, if you moved the modules directory for the running kernel before you started, make sure you put it back. Hope that's enough detail, Chris -- http://www.tuxedo.org/~esr/faqs/smart-questions.html __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\