kdump is not supported by my kernel

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
User avatar
Abstraction Mage
Posts: 1
Joined: Sun Sep 12, 2021 7:17 pm

kdump is not supported by my kernel

Post by Abstraction Mage »

I installed kdump via apt-get in order to diagnose seemingly random system crashes on my relatively new Raspberry Pi 4, but it seems to be incompatible with the kernel the ARMv8 64-bit version of dietpi ships with (that would be 5.10.60-v8+). Entering the command sudo kdump-config status yields the following messages:

Code: Select all

kdump is not supported by this kernel ... failed!
no crashkernel= parameter in the kernel cmdline ... failed!
Invalid symlink : /var/lib/kdump/initrd.img ... failed!
Invalid symlink : /var/lib/kdump/vmlinuz ... failed!
cat: /sys/kernel/kexec_crash_loaded: No such file or directory
/usr/sbin/kdump-config: 1154: [: Illegal number: 
current state   : Not ready to kdump
kdump's inability to work properly on my system is confirmed in today's /var/log/syslog, in which an attempt to launch kdump has failed:

Code: Select all

Sep 12 13:19:48 DietPi systemd[1]: Reloading.
Sep 12 13:19:48 DietPi systemd[1]: Starting LSB: Execute the kexec -e command to reboot system...
Sep 12 13:19:48 DietPi systemd[1]: Started LSB: Execute the kexec -e command to reboot system.
Sep 12 13:19:48 DietPi systemd[1]: Reloading.
Sep 12 13:19:49 DietPi systemd[1]: Starting LSB: Load kernel image with kexec...
Sep 12 13:19:49 DietPi systemd[1]: Started LSB: Load kernel image with kexec.
Sep 12 13:19:51 DietPi systemd[1]: Reloading.
Sep 12 13:19:52 DietPi systemd[1]: Reloading.
Sep 12 13:19:52 DietPi systemd[1]: Reloading.
Sep 12 13:19:53 DietPi systemd[1]: Starting Kernel crash dump capture service...
Sep 12 13:19:53 DietPi kdump-tools[2975]: Starting kdump-tools:
Sep 12 13:19:53 DietPi kdump-tools[2979]: kdump is not supported by this kernel ...
Sep 12 13:19:53 DietPi kdump-tools[2990]:  failed!
Sep 12 13:19:53 DietPi systemd[1]: Finished Kernel crash dump capture service.

So I've got some questions on my mind now:
  • Is there any way I can get kdump working on my current installation of dietpi?
  • Is there a version of dietpi that does support kdump?
  • Is there a better way of investigating ramdom system crashes of a Raspberry Pi running dietpi?
Thanks in advance for sharing your thoughts on this topic


P.S: Weirdly enough, after the failed attempt at launching kdump my Raspberry Pi continued to run for at least another three hours before syslog stopped showing entries and pinging its ip yields but a "Destination Host Unreachable". In case any of you would like to help me investigate my issue I have attached the full syslog to this post (compressed into a zip file so that this forum stops complaining about the file being too big).
Attachments
syslog.zip
(72.79 KiB) Downloaded 4 times
When in doubt, sudo dietpi-launcher
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: kdump is not supported by my kernel

Post by Joulinar »

Hi,

to avoid any misunderstanding, DietPi is not an own OS. It's a set of bash scripts on top of a Debian Base image. In case of Raspberry Pi we are using Raspberry OS. This include the kernel we well. Means it is exactly the same kernel used. DietPi is not and will not create own kernel.

looking to your log file, seems your system get stopped /shutdown normaly. At least all services are sopped and not cancelled or aborted.

Code: Select all

Sep 12 12:28:21 DietPi systemd[1]: Stopped LSB: Execute the kexec -e command to reboot system.
Sep 12 12:28:22 DietPi systemd[1]: Reloading.
Sep 12 12:28:22 DietPi systemd[1]: Reloading.
Sep 12 12:28:23 DietPi systemd[1]: Reloading.
Sep 12 12:28:23 DietPi systemd[1]: Reloading.
Sep 12 12:35:05 DietPi systemd[1]: Reloading.
Sep 12 12:35:05 DietPi systemd[1]: Reloading.
Sep 12 12:35:06 DietPi systemd[1]: Reloading.
Sep 12 12:35:10 DietPi systemd[1]: Removed slice system-modprobe.slice.
Sep 12 12:35:10 DietPi systemd[1]: Stopped target Graphical Interface.
Sep 12 12:35:10 DietPi systemd[1]: Stopped target Multi-User System.
Sep 12 12:35:10 DietPi systemd[1]: Stopped target Login Prompts.
Sep 12 12:35:10 DietPi systemd[1]: Stopped target Timers.
Sep 12 12:35:10 DietPi systemd[1]: fstrim.timer: Succeeded.
Sep 12 12:35:10 DietPi systemd[1]: Stopped Discard unused blocks once a week.
Sep 12 12:35:10 DietPi systemd[1]: logrotate.timer: Succeeded.
Sep 12 12:35:10 DietPi systemd[1]: Stopped Daily rotation of log files.
Sep 12 12:35:10 DietPi systemd[1]: systemd-tmpfiles-clean.timer: Succeeded.
Sep 12 12:35:10 DietPi systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Sep 12 12:35:10 DietPi systemd[1]: Stopped target System Time Synchronized.
Sep 12 12:35:10 DietPi systemd[1]: Stopped target System Time Set.
Sep 12 12:35:10 DietPi systemd[1]: systemd-rfkill.socket: Succeeded.
Sep 12 12:35:10 DietPi systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Sep 12 12:35:10 DietPi systemd[1]: Stopping Regular background program processing daemon...
Sep 12 12:35:10 DietPi systemd[1]: Stopping D-Bus System Message Bus...
Sep 12 12:35:10 DietPi systemd[1]: Starting DietPi-Kill_SSH on shutdown...
Sep 12 12:35:10 DietPi systemd[1]: dietpi-postboot.service: Succeeded.
Sep 12 12:35:10 DietPi systemd[1]: Stopped DietPi-PostBoot.
Sep 12 12:35:10 DietPi systemd[1]: dietpi-postboot.service: Consumed 16.048s CPU time.
Sep 12 12:35:10 DietPi systemd[1]: Stopping Docker Application Container Engine...
Sep 12 12:35:10 DietPi systemd[1]: Stopping LSB: Lightweight SSH server...
Sep 12 12:35:10 DietPi systemd[1]: Stopping Getty on tty1...
Sep 12 12:35:10 DietPi systemd[1]: Stopping ProFTPD FTP Server...
Sep 12 12:35:10 DietPi systemd[1]: Stopping Start entropy gathering daemon (rngd)...
Sep 12 12:35:10 DietPi systemd[1]: Condition check resulted in Turns off Raspberry Pi display backlight on shutdown/reboot being skipped.
Sep 12 12:35:10 DietPi systemd[1]: rpi-eeprom-update.service: Succeeded.
last messages before this a created by kdump-tools
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply