[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#344649: debian-installer-manual: compile kernel for SPARC



Package: debian-installer-manual
Version: sarge / SPARC
Severity: normal

Compiled the kernel source for 9Sarge1 for the Sparc port according to:
http://www.debian.org/releases/stable/sparc/ch08s04.html.en
But found two missing items in section 8.4.1:
1) "Now, compile the kernel: fakeroot make-kpkg --revision=custom.1.0 
kernel_image. The version..."

This caused my machine to halt with a kernel panic after booting with
this kernel. I found out the correct command to compile the kernel has
to be (at least for Sparc):
fakeroot make-kpkg --revision=custom.1.0 --initrd kernel_image

2) After compiling this way, I found the kernel did not match the original
kernel. This is because the Sparc team does actually use a different 
method of compiling the source. Best way to start compiling the kernel 
like the package builders did, is by using the spource information in the
actual kernel binary. This can be done using the APT. See the APT HOWTO
for more information. To compile to get the same kernel image as for 
instance the kernel-image-2.4.27-2-sparc64 is by issuing following
commands:
# apt-get source kernel-image-2.4.27-2-sparc64
To get the source package.
# apt-get build-dep kernel-image-2.4.27-2-sparc64
To get the dependencies to build this kernel.
# cd kernel-image kernel-image-2.4.27-sparc-2.4.27
# fakeroot debian/rules flavours=sparc64
This will start building the package. The latter option (flavours=...)
can be omitted. It will then build the complete package for all Sparc
architectures, but can take a long while to finish. 
This will produce the .deb package, which can be unpacked usign the 
dpkg -i command. The kernel is identical, apart from a couple of bytes
due to the time stamp and stuff like this. 



Reply to: