
CHAPTER 4. LIVERAM DISKS 4.5. KEXECBOOTS
4.5 Kexecboots
4.5.1 Credits
Yuri Bushmelev, Thomas Kunze and Matthew Allum are the authors of the kexecboot.
4.5.2 Building
The OpenEmbedded (
http://www.openembedded.org
) system is used to build
kexecboot
. Please
see the “Getting Started” for this, for example at
http://wiki.openembedded.net/index.php/Getting_started
document for instructions when setting up OpenEmbedded. Please ensure that you have updated
your OpenEmbedded tree recently (do
git pull
from the openembedded / directory).
4.5.2.1 Overriding the Default Version
The default kexecboot version can be overridden by specifying a BitBake recipe file (
.bb
) when
invoking
bitbake
, or by setting the variable
PREFERRED_VERSION_linux-kexecboot
in
local.conf
,
according to [1], for example with
bitbake linux-kexecboot -b \
../openembedded/recipes/kexecboot/linux-kexecboot_2.6.32.bb
for
2.6.32
. This will build
kexecboot
with a
2.6.32
kernel. Depending on the options specified in
conf/local.conf, the kexecboot files may be written in a variety of formats.
There are other kexecboot recipe files, such as (2010):
initramfs-kexecboot-image.bb
kexecboot-cfg_0.1.bb
kexecboot_git.bb
linux-kexecboot_2.6.21-hh20.bb
linux-kexecboot_2.6.24.bb
linux-kexecboot_2.6.26.bb
linux-kexecboot_2.6.29.bb
linux-kexecboot_2.6.32+2.6.33-rc3.bb
linux-kexecboot_2.6.32.bb
More specifically, the
bitbake
process consists of downloading and building the cross-
compiler toolchain, native toolchain and kernel, and building the cpio-format initramfs image
(
linux-kexecboot-image
) for the
kexecboot
system. This image is used as a ramdisk-based root
filesystem, and its purpose is to mount one or more filesystems, locate the replacement kernel (and
root filesystem) and call the kexecboot kernel routine to replace the kernel.
Before the kernel is built, any patches are downloaded and applied, depending on the machine
type which is selected. The kernel image is compressed and written, along with the initramfs
filesystem.
15
Kommentare zu diesen Handbüchern