nanogui: about make
Subject:
RE: [nanogui] about make
From:
Simon Wood ####@####.####
Date:
6 Jun 2001 10:06:47 -0000
Message-Id: <44632C76B97BD211AF6B00805FADCAB208790688@exchange.saltaire.pace.co.uk>
> -----Original Message-----
> From: daniel ####@####.####
> Sent: Wednesday, June 06, 2001 10:45 AM
> To: ####@####.####
> Subject: [nanogui] about make
>
> I have use make menuconfig to rebuilt kernel,
> after modify config, i run make dep then reboot,
> does it enough?
>
[Simon Wood]
The 'make menuconfig' and 'make dep' prepare the kernel for
building, They do not actually build it.
> In some posts , i found people use make clean , make zImage
> after make dep.
[Simon Wood]
'make clean' cleans the kernel sources of any previously
built bits, this is not always necessary but is a good idea
if you're just getting started or have made significant changes
to the configuration.
'make zImage' is the bit that build the kernel, although some
people use 'make bzImage' the difference between these is the
way the kernel is compressed (bz allows more features to be
included within the size limit).
Once you have build the kernel (and modules) they have to be
position in an appropriate place in the filesystem. Most
distributions have a /boot directory, copy zImage to a suitable
name (something like vmlinuz_2.2.19_test).
The kernel modules can be 'installed' (copied to the right place)
with 'make modules_install'. Be careful if you are building the
same version kernel that you are currently running, installing
broken modules in this way could stop you existing system working.
Once things have be placed in the correct location, you have to
instruct the system which kernel you wish to boot. Most systems
use Lilo or Grub.
For Lilo you can either edit the /etc/lilo.conf file directly or
through you distribution's system config application (YaST on SuSE).
Lilo MUST be run to read (and register) in the changes to this file.
IMPORTANT - ALWAYS LEAVE A METHOD FOR BOOTING A WORKING (i.e. existing)
KERNEL.
You will probably make a few mistakes the first few times you build
a kernel. Make sure that you have an option to go back to a working
version....
Reboot and select the new kernel, hopefully it will work for you.
If non of the above make any sense, try some of the Linux web sites for
further guidance....
Simon W.