[PATCH RFC] module-setup.sh: install usb serial driver for ttyUSB0
by Dave Young
In case one want to use usb serial console, we need to pack the usb serial
driver into kdump initramfs so that one can see the console output on the usb
console.
I only handled ttyUSB0, this is like a hard code, but it should be enough for
most cases. Also only install the driver for the ttyUSB0 device.
Tested with adding "console=ttyUSB0" in 2nd kernel commandline.
Tested latest F22 kernel, there's CONFIG_USB_SERIAL_CONSOLE=y, kdump work ok.
Signed-off-by: Dave Young <dyoung(a)redhat.com>
---
dracut-module-setup.sh | 8 ++++++++
1 file changed, 8 insertions(+)
--- kexec-tools.orig/dracut-module-setup.sh
+++ kexec-tools/dracut-module-setup.sh
@@ -626,4 +626,12 @@ installkernel() {
[ "$wdt" = "iTCO_wdt" ] && instmods lpc_ich
instmods $wdt
fi
+
+ if [ -c /dev/ttyUSB0 ]; then
+ _majmin=$(get_maj_min /dev/ttyUSB0)
+
+ _driver=$(readlink /sys/dev/char/$_majmin/device/driver)
+ _driver=$(basename $_driver)
+ instmods $_driver
+ fi
}
7 years, 9 months
kdump daemon not starting
by Ronit Halder
I am installed kdump in fedora 23 in efi (workstation edition).
But it isn't starting and systemctl status kdump.service showing (in
log.txt)
My /boot/grub2/grub.cfg attached below.
7 years, 11 months
Re: Detecting kdump-lib-initramfs.sh errors
by Dave Young
Hi, Joe
On 02/26/16 at 04:09pm, Joe Lawrence wrote:
> Hi Dave,
>
> Stratus has a question about monitoring various error scenarios out of
> kdump-lib-initramfs.sh.
>
> This file looks to be Red Hat specific (at least it's not in my upstream
> kexec-tools git tree), so I wasn't sure where to direct the question.
> Feel free to point us in the direction of an appropriate mailing list,
> bugzilla, etc.
We are using Fedora kexec mailing list as the upstream of kdump scripts.
see below page:
https://lists.fedoraproject.org/admin/lists/kexec.lists.fedoraproject.org/
>
> Basically we're interested in reporting kdump progress over IPMI,
> including the mounting / creation of kdump directories, vmcore-dmesg and
> vmcore files.
>
> We could obviously modify kdump-lib-initramfs.sh directly to accomplish
> this [1], but we were wondering if there was a cleaner approach -- for
> example, functions in kdump-lib-initramfs.sh could return status or log
> errors somewhere that we could read later.
>
> We would gladly prototype and test examples if this is something that
> could be reasonably supported.
>
> [1] https://paste.fedoraproject.org/330114/
The better way is to send patches to kexec(a)lists.fedoraproject.org
so that we can review and discuss it.
The latest code stays in Fedora kexec git tree, you can clone the tree by:
fedpkg clone -a kexec-tools
Thanks
Dave
8 years
[PATCH 0/2] Load wdt module in kdump kernel if it was active
by Pratyush Anand
These patches add support to load module in kdump kernel for active
watchdog in primary kernel. Patches have been tested with mei_me and iTCO
watchdog.
Pratyush Anand (2):
Watchdog: Load module for only active watchdog in kdump kernel
kdumpctl: force rebuild in case of dynamic system modification
dracut-module-setup.sh | 19 +++++++++++++------
kdump-lib.sh | 39 +++++++++++++++++++++++++++++++++++++++
kdumpctl | 23 +++++++++++++++++++++++
3 files changed, 75 insertions(+), 6 deletions(-)
--
2.5.0
8 years