Skip to contentSkip to conversation

VMCORE and kdump.conf file not found LINUX 6.12 KERNEL

DISCUSSION Gokul Praveen 3 participants 4 messages Feb 5, 2025 – Feb 18, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Team,

It would be really great,if you could help me with a couple of questions regarding kexec and kdump.

I tried kdump on my SOC and it is rebooting fine . However,the VMCORE file and /etc/kdump.conf file is not found.

VERSION:
kexec-tools 2.0.30.
kernel 6.12v

STEPS FOLLOWED:

1)git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git

2)
HOST PC:

	>cd $KEXEC_TOOLS_DIR
	>./bootstrap LDFLAGS=-static ./configure --prefix=/usr/local 

--host=aarch64-linux-gnu --target=aarch64-linux-gnu
>make
>cp $KEXEC_TOOLS_DIR/build/sbin/kexec /media/$USER/rootfs/usr/sbin (To
copy the kexec binary to the rootfs filesystem of the target board)

TARGET BOARD:

	>Booted upto linux
	>cmdline="crashkernel=128M console=ttyS2,115200n8 root=/dev/mmcblk0p2 
rw rootfste=ext4 rootwait" (/dev/mmcblk0p2 refers to EMMC)
	> /kexec -p /Image --command-line="$cmdline" 

--dtb=/k3-j721e-common-proc-board.dtb
> echo c > /proc/sysrq-trigger

LOGS:

Starting Reboot and dump vmcore via kexec...

[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Listening on Weston socket.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
[  OK  ] Started Job spooling tools.

Starting Avahi mDNS/DNS-SD Stack...
[ OK ] Started Periodic Command Scheduler.
Starting Print notice about GPLv3 packages... Starting IPv6 Packet Filtering Framework... Starting IPv4 Packet Filtering Framework...
[ OK ] Started irqbalance daemon.
Starting Telephony service...
Starting Expand the rootfs partiti…to full size of the boot
device....

[    5.992254] audit: type=1334 audit(1728487094.820:10): prog-id=14 op=LOAD
[    6.003634] audit: type=1334 audit(1728487094.832:11): prog-id=15 op=LOAD
[    6.010482] audit: type=1334 audit(1728487094.832:12): prog-id=16 op=LOAD
         Starting User Login Management...
         Starting Telnet Server...
[  OK  ] Finished IPv6 Packet Filtering Framework.
[  OK  ] Finished IPv4 Packet Filtering Framework.
[  OK  ] Finished Telnet Server.
[  OK  ] Started User Login Management.
[  OK  ] Finished Expand the rootfs partition to full size of the boot device..
[  OK  ] Started Telephony service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Created slice Slice /system/systemd-fsck.
         Expecting device /dev/mmcblk0p1...
[  OK  ] Reached target Preparation for Network.
         Starting Load Kernel Module drm...
[    6.406000] audit: type=1334 audit(1728487095.236:13): prog-id=17 op=LOAD
         Starting Network Configuration...
         Starting Virtual Console Setup...
[  OK  ] Stopped target RPC Port Mapper.
[  OK  ] Stopped target Timer Units.
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped target System Time Set.

Stopping Job spooling tools...
Stopping Avahi mDNS/DNS-SD Stack...
Stopping Periodic Command Scheduler...
Stopping irqbalance daemon...
[ OK ] Stopped target Host and Network Name Lookups.
Stopping Telephony service...
[ OK ] Stopped Expand the rootfs partition to full size of the boot device..
Stopping strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf...

[  OK  ] Removed slice Slice /system/getty.
[  OK  ] Removed slice Slice /system/serial-getty.
         Stopping User Login Management...
         Stopping Load/Save OS Random Seed...
         Starting Record Runlevel Change in UTMP...
         Stopping Telnet Server...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped Reboot and dump vmcore via kexec.
#1 lore raw

Hi Team,

Just a reminder.
It would be really great if you could help me with the following.

Regards
Gokul

Quoted 91 lines · Gokul Praveen

Hi Team,

It would be really great,if you could help me with a couple of questions regarding kexec and kdump.

I tried kdump on my SOC and it is rebooting fine . However,the VMCORE file and /etc/kdump.conf file is not found.

VERSION:
kexec-tools 2.0.30.
kernel 6.12v

STEPS FOLLOWED:

1)git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git

2)
   HOST PC:
    >cd $KEXEC_TOOLS_DIR
    >./bootstrap LDFLAGS=-static ./configure --prefix=/usr/local
--host=aarch64-linux-gnu --target=aarch64-linux-gnu
    >make
    >cp $KEXEC_TOOLS_DIR/build/sbin/kexec /media/$USER/rootfs/usr/sbin
(To copy the kexec binary to the rootfs filesystem of the target board)

   TARGET BOARD:
    >Booted upto linux
    >cmdline="crashkernel=128M console=ttyS2,115200n8
root=/dev/mmcblk0p2 rw rootfste=ext4 rootwait" (/dev/mmcblk0p2 refers to EMMC)
    > /kexec -p /Image --command-line="$cmdline"
--dtb=/k3-j721e-common-proc-board.dtb
    > echo c > /proc/sysrq-trigger

LOGS:

         Starting Reboot and dump vmcore via kexec...
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Listening on Weston socket.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
[  OK  ] Started Job spooling tools.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Periodic Command Scheduler.
         Starting Print notice about GPLv3 packages...
         Starting IPv6 Packet Filtering Framework...
         Starting IPv4 Packet Filtering Framework...
[  OK  ] Started irqbalance daemon.
         Starting Telephony service...
         Starting Expand the rootfs partiti…to full size of the boot
device....
[    5.992254] audit: type=1334 audit(1728487094.820:10): prog-id=14 op=LOAD

[    6.003634] audit: type=1334 audit(1728487094.832:11): prog-id=15 op=LOAD [    6.010482] audit: type=1334 audit(1728487094.832:12): prog-id=16 op=LOAD
         Starting User Login Management...
         Starting Telnet Server...
[  OK  ] Finished IPv6 Packet Filtering Framework.
[  OK  ] Finished IPv4 Packet Filtering Framework.
[  OK  ] Finished Telnet Server.
[  OK  ] Started User Login Management.
[  OK  ] Finished Expand the rootfs partition to full size of the boot device.. [  OK  ] Started Telephony service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Created slice Slice /system/systemd-fsck.
         Expecting device /dev/mmcblk0p1...
[  OK  ] Reached target Preparation for Network.
         Starting Load Kernel Module drm...
[    6.406000] audit: type=1334 audit(1728487095.236:13): prog-id=17 op=LOAD
         Starting Network Configuration...
         Starting Virtual Console Setup...
[  OK  ] Stopped target RPC Port Mapper.
[  OK  ] Stopped target Timer Units.
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped target System Time Set.
         Stopping Job spooling tools...
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping Periodic Command Scheduler...
         Stopping irqbalance daemon...
[  OK  ] Stopped target Host and Network Name Lookups.
         Stopping Telephony service...
[  OK  ] Stopped Expand the rootfs partition to full size of the boot device..
         Stopping strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf...
[  OK  ] Removed slice Slice /system/getty.
[  OK  ] Removed slice Slice /system/serial-getty.
         Stopping User Login Management...
         Stopping Load/Save OS Random Seed...
         Starting Record Runlevel Change in UTMP...
         Stopping Telnet Server...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped Reboot and dump vmcore via kexec.

#2 lore raw
Quoted 43 lines · Gokul Praveen

Hi Team,

Just a reminder.
It would be really great if you could help me with the following.

Regards
Gokul

Quoted 33 lines · Gokul Praveen

Hi Team,

It would be really great,if you could help me with a couple of questions regarding kexec and kdump.

I tried kdump on my SOC and it is rebooting fine . However,the VMCORE file and /etc/kdump.conf file is not found.

VERSION:
kexec-tools 2.0.30.
kernel 6.12v

STEPS FOLLOWED:

1)git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git

2)

    HOST PC:
     >cd $KEXEC_TOOLS_DIR
     >./bootstrap LDFLAGS=-static ./configure --prefix=/usr/local

--host=aarch64-linux-gnu --target=aarch64-linux-gnu
>make
>cp $KEXEC_TOOLS_DIR/build/sbin/kexec /media/$USER/rootfs/usr/sbin
(To copy the kexec binary to the rootfs filesystem of the target board)

TARGET BOARD:
>Booted upto linux
>cmdline="crashkernel=128M console=ttyS2,115200n8
root=/dev/mmcblk0p2 rw rootfste=ext4 rootwait" (/dev/mmcblk0p2 refers to EMMC)

     > /kexec -p /Image --command-line="$cmdline"

--dtb=/k3-j721e-common-proc-board.dtb
> echo c > /proc/sysrq-trigger

Hi,

This looks more like a distribution related issue, I suggest you ask distribution developers to help.

Thanks
Dave

#3 lore raw

Hi,

Quoted 36 lines · On Tue, 18 Feb 2025 16:48:26 +0800 Dave Young <[email protected]> wrote:
Quoted 35 lines · Gokul Praveen

Hi Team,

Just a reminder.
It would be really great if you could help me with the following.

Regards
Gokul

Quoted 25 lines · Gokul Praveen

Hi Team,

It would be really great,if you could help me with a couple of questions regarding kexec and kdump.

I tried kdump on my SOC and it is rebooting fine . However,the VMCORE file and /etc/kdump.conf file is not found.

VERSION:
kexec-tools 2.0.30.
kernel 6.12v

STEPS FOLLOWED:

1)git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git

2)

    HOST PC:  
     >cd $KEXEC_TOOLS_DIR
     >./bootstrap LDFLAGS=-static ./configure --prefix=/usr/local  

--host=aarch64-linux-gnu --target=aarch64-linux-gnu
>make
>cp $KEXEC_TOOLS_DIR/build/sbin/kexec /media/$USER/rootfs/usr/sbin
(To copy the kexec binary to the rootfs filesystem of the target board)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

TARGET BOARD:
>Booted upto linux
>cmdline="crashkernel=128M console=ttyS2,115200n8
root=/dev/mmcblk0p2 rw rootfste=ext4 rootwait" (/dev/mmcblk0p2 refers to EMMC)

     > /kexec -p /Image --command-line="$cmdline"  

--dtb=/k3-j721e-common-proc-board.dtb

The kdump kernel only presents the dump via /proc/vmcore but doesn't write it to disk. That is done by user space contained in the initrd. So for it to work you also have to provide an initrd that mounts the target disk and writes the dump to it. But, as Dave already pointed out, the creation of initrds is highly distro specific.

Thanks
Philipp

Quoted 11 lines
Quoted 1 line
Quoted 1 line

> echo c > /proc/sysrq-trigger

Hi,

This looks more like a distribution related issue, I suggest you ask distribution developers to help.

Thanks
Dave