I'm compiling a debug kernel by following the info here:
https://wiki.archlinux.org/index.php/Kdump
https://wiki.archlinux.org/index.php/Ke ... ild_System
I've modified the instructions above according to some of the info here:
viewtopic.php?f=23&t=6565
I created a $BUILD directory called "crashk", pulled the kernel source from github (PKGBUILDs for ALArm), copied the core/linux-raspberrypi to core/linux-rpi-kdump, edited config with the appropriate debug options, and changed the PKGBUILD file to use "pkgbase=linux-rpi-kdump". I also renamed linux-raspberrypi.install to linux-rpi-kdump.install to match.
Running updpkgsums and makepkg -s yielded the expected results (two packages called "linux-rpi-kdump-4.14.52-1-armv7h.pkg.tar.xz" and "linux-rpi-kdump-headers-4.14.52-1-armv7h.pkg.tar.xz"), but when I install them, it replaces the existing kernel and headers.
The Kernel/Arch_Build_System link above says:
$this->bbcode_second_pass_quote('', 'I')f you renamed your kernel in the PKGBUILD pkgbase you may have to rename the initramfs.img in your $build/pkg/kernel/etc before installing with pacman. That way, you can have both the stock kernel and the custom one to choose from
.