my server system is low on disk. To install a new kernel I think i shall do the following:
1. compile the kernel on another system.
2. copy bzImage along with config, System.map and of course the laodable module in /lib/modules and transfer them to the server.
3. Now, I can remove the server's old kernel to free up the space and put the the files in /boot as well as copying loadable modules to
no,... this is not the way, this way I need to make the drivers the image as well. There's another way, in ubuntu I can make .deb files of the headers and the linux, if I transfer only those two files to the server, I think i can install the new kernel using dpkg. what do you think?
We use netboot to boot our RedHat Linux kernels. We usually use mknbi tool to create netboot image from Red Hat Linux kernel. However, I can't get this to work with the new Red Hat EL6 kernel.
One online document I found seems to say mknbi should not be used for Linux 2.6 or newer kernels any... (1 Reply)
Hi gurus
Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value
Is it /dev/kmem file or something... (1 Reply)
Hello friends,
I have compiled the kernel .
But now i am facing the problem as to how we can create the initrd.img for the specific kernel.
I was compiling the 2.6.29 kernel.
to create initrd.img for 2.6.29
what i did is :
cd /boot
mkinitramfs-kpkg -o initrd.img-2.6.29 2.6.29... (2 Replies)
Hi All,
Please help me with this.
My plan is to create an ISO image of my current solaris 8 OS.Because we use a stripped out version of solaris 8 which is different than the standard one in CD. Will dd command will do ?
My idea is to create a VMware image from iso file and play it in... (6 Replies)
This is the error that I am getting while retrieving image from image server using system imager....
Listening on LPF/lo/<null>
sending on Socket/fallback/fallback-net
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval5... (1 Reply)
KERNEL-PACKAGE(5) Debian GNU/Linux manual KERNEL-PACKAGE(5)NAME
kernel-package - system for creating kernel related packages
DESCRIPTION
The kernel-package package grew out of desire to automate the routine steps required to compile and install a custom kernel. If you are
looking for instructions on how to use kernel-package, please have a look at the manual make-kpkg(1). Configuring instructions are to be
found in kernel-pkg.conf(5).
Advantages of using kernel-package
i) Convenience.
I used to compile kernels manually, and it involved a series of steps to be taken in order; kernel-package was written to
take all the required steps (it has grown beyond that now, but essentially, that is what it does). This is especially impor-
tant to novices: make-kpkg takes all the steps required to compile a kernel, and installation of kernels is a snap.
ii) Multiple images support
It allows you to keep multiple version of kernel images on your machine with no fuss.
iii) Multiple Flavors of the same kernel version
It has a facility for you to keep multiple flavors of the same kernel version on your machine (you could have a stable 2.0.36
version, and a 2.0.36 version patched with the latest drivers, and not worry about contaminating the modules in /lib/mod-
ules).
iv) Built in defaults
It knows that some architectures do not have vmlinuz (using vmlinux instead), and other use zImage rather than bzImage, and
calls the appropriate target, and takes care of moving the correct file into place.
v) Module hooks
Several other kernel module packages are hooked into kernel-package, so one can seamlessly compile, say, pcmcia modules at
the same time as one compiles a kernel, and be assured that the modules so compiled are compatible.
vi) dpkg support
It enables you to use the package management system to keep track of the kernels created. Using make-kpkg creates a .deb
file, and dpkg can track it for you. This facilitates the task of other packages that depend on the kernel packages.
vii) Configuration tracking
It keeps track of the configuration file for each kernel image in /boot, which is part of the image package, and hence is the
kernel image and the configuration file are always together.
viii) Multiple config files
It allows you to specify a directory with config files, with separate config files for each sub-architecture (even allows for
different config files for i386, i486, etc). It is really neat for people who need to compile kernels for a variety of sub
architectures.
ix) Auxiliary kernel .deb packages
It allows to create a package with the headers, or the sources, also as a deb file, and enables the package management system
to keep track of those (and there are packages that depend on the package management system being aware of these packages).
x) Maintainer script services
Since the kernel image package is a full fledged Debian package, it comes with maintainer scripts, which allow the user to
add hook scripts to run when the package status changes.
xi) Sub architecture support
There is support for the multitudinous sub architectures that have blossomed under the umbrella of the m68k and power-PC
architectures.
xii) Portable kernel images
Allows one to compile a kernel for another computer, for example using a fast machine to compile the kernel for installation
on a slower machine. This is really nice since the modules are all included in the .deb; and one does not have to deal with
modules manually.
xiii) runtime hooks
The preinst, postinst, prerm and the postrm scripts allow the local admin on the installation machine to add a script into
runtime hooks; this can allow, amongst other things, grub users to add and remove kernel image stanzas from the grub menu
(example scripts to do this are in the package). There are directories under /etc/kernel where related packages may drop off
scripts that will be run by the maintainer scripts of the packages created by kernel package. Before running these scripts,
the environment variable KERNEL_PACKAGE_VERSION shall be set to the version of the kernel-package that created the package.
xiv) Append descriptive bits to the kernel version
One can append to the kernel version on the command line, or by setting an environment variable. So if your kernel is called
kernel-image-2.4.1John.Home; it is unlikely to be overridden by the official 2.4.1 kernel, since they are not the same ver-
sion.
Disadvantages of using make-kpkg
i) Automation.
This is a cookie cutter approach to compiling kernels, and there are people who like being close to the bare metal.
ii) Non traditional
This is not how it is done in the non-Debian world. This flouts tradition. (It has been pointed out, though, that this is fast
becoming Debian tradition).
iii) Needs superuser
It forces you to use fakeroot or sudo or super or be root to create a kernel image .deb file (this is not as bad as it used to be
before fakeroot).
FILES
/etc/kernel-pkg.conf
/etc/kernel-img.conf
SEE ALSO make(1), make-kpkg(1), The GNU Make manual
BUGS
There are no bugs. Any resemblance thereof is delirium. Really.
AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>, for the Debian GNU/Linux system.
Debian May 25 1999 KERNEL-PACKAGE(5)