** Also affects: linux-raspi (Ubuntu Oracular)
Importance: Undecided
Status: New
** Also affects: kdump-tools (Ubuntu Oracular)
Importance: Undecided
Status: New
** Changed in: linux-raspi (Ubuntu Oracular)
Status: New => Fix Committed
** No longer affects: kdump-tools (Ubuntu Oracular)
** Changed in: kdump-tools (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-raspi in Ubuntu.
Matching subscriptions: Maintainer
https://bugs.launchpad.net/bugs/2081746
Title:
Ubuntu 24.10 Beta, Raspberry Pi 4: kdump-tools service not started,
with errors
Status in kdump-tools package in Ubuntu:
Invalid
Status in linux-raspi package in Ubuntu:
Confirmed
Status in linux-raspi source package in Oracular:
Fix Committed
Bug description:
[Impact]
kdump is not working on Pi (due to missing kernel configs).
[Test Case]
1) Install and configure kdump-tools
2) Reboot and verify the system is ready to kdump
3) Trigger a crash and verify a valid crash dump is generated
[Where Problems Could Occur]
This enables additional core kernel code that could result in boot
failures and/or splats. Additionally, if kdump is enabled and a crash
occurs, the system could fail to boot into the kdump kernel and/or
fail to create a valid crashdump and/or fail to boot back into the
regular kernel.
[Original Description]
As I understand this kdump-tools service is installed by default in
Ubuntu 24.10 Beta. In my tests it seems to work as expected under
x86_64 architecture booting with grub. But, with the Raspberry Pi 4,
aarch64 architecture, it doesn't work.
SYSTEM INFO:
------------
Model: Raspberry Pi 4 Model B Rev 1.4
Fresh install using this preinstalled image:
https://cdimage.ubuntu.com/ubuntu/releases/24.10/beta/ubuntu-24.10-beta-preinstalled-desktop-arm64+raspi.img.xz
# lsb_release -rd
Description: Ubuntu Oracular Oriole (development branch)
Release: 24.10
# uname -a
Linux fpgrpitest 6.8.0-1004-raspi #4-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20
02:29:55 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
# lsb_release -rd
Description: Ubuntu Oracular Oriole (development branch)
Release: 24.10
root@fpgrpitest:~# apt-cache policy kdump-tools
kdump-tools:
Installed: 1:1.10.3ubuntu3
Candidate: 1:1.10.3ubuntu3
Version table:
*** 1:1.10.3ubuntu3 500
500 http://ports.ubuntu.com/ubuntu-ports oracular/main arm64 Packages
100 /var/lib/dpkg/status
1ST. PROBLEM SUMMARY:
---------------------
kdump-tools service is enabled by default but it doesn't start because there
is "no crashkernel= parameter in the kernel cmdline":
Sep 22 07:09:09 fpgrpitest systemd[1]: Starting kdump-tools.service - Kernel
crash dump capture service...
Sep 22 07:09:09 fpgrpitest kdump-tools[1031]: Starting kdump-tools:
Sep 22 07:09:09 fpgrpitest kdump-tools[1138]: * no crashkernel= parameter in
the kernel cmdline
Sep 22 07:09:09 fpgrpitest systemd[1]: Finished kdump-tools.service - Kernel
crash dump capture service.
I suspect that it's because for the Raspberry Pi 4 the kernel boot parameters
are stored in this file:
/boot/firmware/cmdline.txt
Notice that it doesn't use grub that is where kernel boot parameters
are stored for X86_64 architecture. So I think it's needed to update
the /boot/firmware/cmdline.txt file with the crashkernel parameter.
2ND. PROBLEM SUMMARY:
---------------------
So, trying to fix the 1st problem I added the same crashkernel parameter used
in X86_64 architecture to file /boot/firmware/cmdline.txt.
So I added
"crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M"
but it doesn't work showing this error in the journalctl:
Sep 23 16:17:43 fpgrpitest systemd[1]: Starting kdump-tools.service - Kernel
crash dump capture service...
Sep 23 16:17:43 fpgrpitest kdump-tools[919]: Starting kdump-tools:
Sep 23 16:17:43 fpgrpitest kdump-tools[1004]: * Creating symlink
/var/lib/kdump/vmlinuz
Sep 23 16:17:43 fpgrpitest kdump-tools[1086]: kdump-tools: Generating
/var/lib/kdump/initrd.img-6.8.0-1004-raspi
Sep 23 16:17:43 fpgrpitest kdump-tools[1004]: * Creating symlink
/var/lib/kdump/initrd.img
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: kexec_load failed: Function not
implemented
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: entry = 0x1d9c03680 flags
= 0xb70001
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: nr_segments = 5
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[0].buf =
0xffff9c600010
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[0].bufsz = 0x1c84008
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[0].mem = 0x1d6e00000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[0].memsz = 0x1d60000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[1].buf =
0xffff9f200010
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[1].bufsz = 0x10940c2
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[1].mem = 0x1d8b60000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[1].memsz = 0x1095000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[2].buf =
0xaaaac88d9590
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[2].bufsz = 0xdda1
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[2].mem = 0x1d9bf5000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[2].memsz = 0xe000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[3].buf =
0xaaaac88e7960
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[3].bufsz = 0x3538
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[3].mem = 0x1d9c03000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[3].memsz = 0x4000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[4].buf =
0xaaaac88a1740
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[4].bufsz = 0x400
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[4].mem = 0x1f6dff000
Sep 23 16:17:45 fpgrpitest kdump-tools[5226]: segment[4].memsz = 0x1000
Sep 23 16:17:45 fpgrpitest kdump-tools[1004]: * failed to load kdump kernel
Sep 23 16:17:45 fpgrpitest kdump-tools[5227]: failed to load kdump kernel
Sep 23 16:17:45 fpgrpitest systemd[1]: Finished kdump-tools.service - Kernel
crash dump capture service.
Seems that the current kernel is not ready/enabled for this tool.
Notice that this kernel used in Ubuntu 24.10 Beta for the Raspberry Pi is a
very old version 6.8... AFAIK the kernel for Ubuntu 24.10 should be version
6.11... Don't know why.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kdump-tools/+bug/2081746/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp