10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am not a newbie to Linux, i have been using Linux as my desktop for 4 years, but i am just an end user to Linux, no advanced knowledge to it.
I knew that, i can download generic linux kernel and compile it by myself, but how about Unix? how can i get an Unix kernel and compile it ? or no this... (5 Replies)
Discussion started by: wong.sie.ung
5 Replies
2. Ubuntu
Hi
I'm compiling a real-time kernel in linux, but after I type make bzImage things end with this:
(Things going well doing CC and things)....
CC arch/x86/kernel/kgdb.o
CC arch/x86/kernel/vm86_32.o
CC arch/x86/kernel/early_printk.o
CC arch/x86/kernel/ipipe.o... (2 Replies)
Discussion started by: mdop
2 Replies
3. Linux
Hi there,
I'm currently writing a program/module which makes use of the Linux Security Modules (LSM), which provide hooks for some security .
The bad thing about it is: The function to set the hook to the LSM is not exported. That means, I can't just write a loadable kernel module, but have to... (3 Replies)
Discussion started by: disaster
3 Replies
4. Linux
Has anyone configured OFED packages for a non running kernel? In my case, I need to integrate the OFED packages to a kernel which is built but not installed. (0 Replies)
Discussion started by: diptajeet
0 Replies
5. UNIX for Dummies Questions & Answers
Debian lenny uses the 2.6.26 kernel by default. Can I compile the most recent kernel from kernel.org and use it instead ? Will the new kernel be incompatible with other installed softwares ? (1 Reply)
Discussion started by: cyler
1 Replies
6. Slackware
My goal is to make the leanest Slackware kernel possible for my machine specifically. I'm not exactly a newbie to unix, but I'm not an expert.
I tried this tutorial Chapter*18.*Building a kernel , but I would like something in more depth to really make a lean slack machine. Where should I go? (2 Replies)
Discussion started by: darkstarxor
2 Replies
7. Linux
Dear experts,
How can compile the kernel as application mode?
Thanks in advance. (2 Replies)
Discussion started by: Zaxon
2 Replies
8. Linux
Hi All,
I try to compile new kernel in FC5.
New kernel version - 2.6.20.21
Operating System - Fedora 5
I have followed these steps,
make menuconfig
make
make modules
make modules_install
make install
Then i have changed the grub.cong and reboot the system with new kernel.
The... (0 Replies)
Discussion started by: viveksnv
0 Replies
9. UNIX for Dummies Questions & Answers
Hello,
Please let me know how to compile a linux kernel on redhat. I am relatively new in this area so please be a little patient with me. Here is the file I was consulting with the following details:
Compiling the Linux Kernel on Redhat 7.1
This page describes how to install... (2 Replies)
Discussion started by: bhattbonny
2 Replies
10. UNIX for Advanced & Expert Users
Hi all,
I need some help in compiling a new kernel. I am using RHEL 5 with kernel version 2.6.18.
I have downloaded a kernel from link http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.6.tar.bz2
1. cd /usr/src
2. wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
3.... (1 Reply)
Discussion started by: vikas027
1 Replies
LEARN ABOUT DEBIAN
kernel-package
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)