Package: kernel-package
Version: 11.015
Severity: normal
I am trying to compile a custom Xen enabled kernel using the Debian
kernel sources (linux-source-2.6.26) and the Debian patches
(linux-patch-debian-2.6.26). The patches are applied using the command
/usr/src/kernel-patches/all/2.6.26/apply/debian -a i386 -f xen. After
that the kernel is configured for Xen (i.e. CONFIG_X86_XEN=y). Trying to
build the kernel_image target with make-kpkg does not work, apparently
make-kpkg tries to use the bzImage target for the kernel which does not
work for Xen.
I modified the i386.mk makefile a bit:
--- ruleset/arches/i386.mk.orig 2008-10-09 21:20:00.000000000 +0200
+++ ruleset/arches/i386.mk 2008-12-11 17:33:09.000000000 +0100
@@ -64,10 +64,14 @@
kelfimagesrc = vmlinux
kelfimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(KERNELRELEASE)
else
+ target = vmlinux
+ kimagesrc = vmlinux
kelfimagesrc = vmlinux
ifeq ($(strip $(CONFIG_XEN_PRIVILEGED_GUEST)),)
+ kimagedest = $(INT_IMAGE_DESTDIR)/xenu-linux-$(KERNELRELEASE)
kelfimagedest = $(INT_IMAGE_DESTDIR)/xenu-linux-$(KERNELRELEASE)
else
+ kimagedest = $(INT_IMAGE_DESTDIR)/xen0-linux-$(KERNELRELEASE)
kelfimagedest = $(INT_IMAGE_DESTDIR)/xen0-linux-$(KERNELRELEASE)
endif
int_install_vmlinux:=YES
(This is probably not the most elegant solution, I did not look into any other
files, so maybe this is horribly wrong and breaks something else. Also, I set
the kimagedest variable to the same as kelfimagedest, without I ended up with
two kernel images in the package. However, setting the target to vmlinux is
required.)
With these changes xenu and xen0 kernel packages are built successfully, as
well as unpatched kernels (even unpatched kernels with Xen domU support). Note,
however, that I have not been able to actually run the kernels, the packages do
look ok though. Also, I did not check if it works with other kernel sources
(e.g. upstream ones).
Regards,
Stefan Goebel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-lenny.2.6.26-vmware.minimal.0 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages kernel-package depends on:
ii bcc [c-compiler] 0.16.17-3 16-bit x86 C compiler
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii debianutils 2.30 Miscellaneous utilities specific t
ii dpkg 1.14.23 Debian package management system
ii dpkg-dev 1.14.23 Debian package development tools
ii file 4.26-1 Determines file type using "magic"
ii gcc [c-compiler] 4:4.3.2-2 The GNU C compiler
ii gcc-4.3 [c-compiler 4.3.2-1 The GNU C compiler
ii gettext 0.17-4 GNU Internationalization utilities
ii make 3.81-5 The GNU version of the "make" util
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii perl 5.10.0-18 Larry Wall's Practical Extraction
ii po-debconf 1.0.15 manage translated Debconf template
ii util-linux 2.13.1.1-1 Miscellaneous system utilities
Versions of packages kernel-package recommends:
ii bzip2 1.0.5-1 high-quality block-sorting file co
ii libc6-dev [libc-dev] 2.7-16 GNU C Library: Development Librari
Versions of packages kernel-package suggests:
pn docbook-utils <none> (no description available)
ii e2fsprogs 1.41.3-1 ext2/ext3/ext4 file system utiliti
pn libdb3-dev <none> (no description available)
ii libncurses5-dev [libncurs 5.6+20080830-2 developer's libraries and docs for
pn linux-initramfs-tool <none> (no description available)
ii linux-source-2.6.26 [linu 2.6.26-11 Linux kernel source for version 2.
pn xmlto <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]