Fix crashdump could not generate after kernel upgrade

After kernel is updated to version 6.6.x, crashdump could not
generate. Package crash-8.0.5 and makedumpfile-1.7.4 is added
to support updated kernel to generate crashdump.

TestPlan:
PASS: downloader; build-pkgs
PASS: build-image
PASS: generate crashdump
PASS: crash <vmlinux> <dump.date>

Closes-Bug: 2086464
Change-Id: I2cf9823a21182052f8e48ed973218d880bdd92ee
Signed-off-by: Peng Zhang <Peng.Zhang2@windriver.com>
This commit is contained in:
Peng Zhang 2024-11-01 23:39:12 +08:00
parent 3476098781
commit 67b90e5a70
14 changed files with 236 additions and 0 deletions

View File

@ -150,6 +150,8 @@ ifupdown
ifupdown-extra
kdump-tools
crash
makedumpfile
# iputils
iputils-arping

View File

@ -107,3 +107,5 @@ security/shim-unsigned
security/openscap
storage-drivers/trident-installer
tools/kdump-tools
tools/crash
tools/makedumpfile

View File

@ -0,0 +1,5 @@
crash (8.0.5-1) unstable; urgency=medium
* Initial release
-- Peng Zhang2 <peng.zhang2@windriver.com> Wed, 30 Oct 2024 08:12:43 +0000

View File

@ -0,0 +1,13 @@
source: crash
Section: utils
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13), bison, libncurses5-dev, texinfo, zlib1g-dev
Standards-Version: 4.5.2
Rules-Requires-Root: no
package: crash
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: This package provides a self-contained tool that can be used to investigate either live systems, kernel core dumps created from dump creation facilities such as kdump
This package provides a self-contained tool that can be used to investigate either live systems, kernel core dumps created from dump creation facilities such as kdump

View File

@ -0,0 +1,40 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: crash
Source: https://snapshot.debian.org/archive/debian/20241005T024228Z/pool/main/c/crash/crash_8.0.5.orig.tar.gz
Files: *
Copyright: (C) 2002-2022 Red Hat, Inc.
(C) 2004, 2005, 2006, 2010 IBM Corporation
(C) 1999-2006 Hewlett-Packard Co
(C) 2005, 2006, 2011, 2012 Fujitsu Limited
(C) 2006, 2007 VA Linux Systems Japan K.K.
(C) 2005, 2011, 2020-2022 NEC Corporation
(C) 1999, 2002, 2007 Silicon Graphics, Inc.
(C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
(C) 2015, 2021 VMware, Inc.
License: GNU General Public License
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 3.
.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.
Files: gdb-10.2/*
Copyright: 2013 Free Software Foundation, Inc.
License: GPLv3+
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.

View File

@ -0,0 +1,45 @@
#!/usr/bin/make -f
#
# Copyright (c) 2023-2024 Wind River Systems, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@
export DEB_BUILD_OPTIONS=noddebs
pkg_name=crash
_bindir=/usr/bin
destdir=debian/tmp
override_dh_auto_install:
make
mkdir -p $(destdir)
make install DESTDIR=$(CURDIR)/$(destdir)
dh_installdirs -p$(pkg_name) $(_bindir)
dh_install -p$(pkg_name) $(DESTDIR)$(_bindir)/crash $(_bindir)/
override_dh_auto_clean:
echo "Do nothing"
override_dh_auto_test:
true

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,12 @@
---
debver: 8.0.5
debname: crash
dl_path:
name: crash_8.0.5.orig.tar.gz
url: https://snapshot.debian.org/archive/debian/20241005T024228Z/pool/main/c/crash/crash_8.0.5.orig.tar.gz
sha256sum: a1370be941cc518513a435c7afbd5fdd5bd0f030cd39c02cce9341ee3d0a5436
revision:
dist: $STX_DIST
GITREVCOUNT:
BASE_SRCREV: 999fcb6e5979b5d749b8cba7fb840616389ffa69
SRC_DIR: ${MY_REPO}/stx/integ/tools/crash

View File

@ -0,0 +1,5 @@
makedumpfile (1.7.4-1) unstable; urgency=medium
* Initial release
-- Peng Zhang2 <peng.zhang2@windriver.com> Wed, 30 Oct 2024 09:16:34 +0000

View File

@ -0,0 +1,13 @@
source: makedumpfile
Section: devel
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13), libelf-dev, libdw-dev, libbz2-dev
Standards-Version: 4.5.2
Rules-Requires-Root: no
package: makedumpfile
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: This package can make a Linux crash dump smaller by filtering and compressing pages
This package can make a Linux crash dump smaller by filtering and compressing pages

View File

@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: makedumpfile
Source: https://github.com/makedumpfile/makedumpfile/archive/refs/tags/1.7.4.tar.gz
Files: *
Copyright: (C) 2006, 2007, 2008, 2009, 2011 NEC Corporation
(C) Others (See individual files for more details)
License: GPL-2.0
This program is free software; you can redistribute it and/or modify
it under the terms version 2 of the GNU General Public License
as published by the Free Software Foundation.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Comment:
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

View File

@ -0,0 +1,63 @@
#!/usr/bin/make -f
#
# Copyright (c) 2023-2024 Wind River Systems, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@
export DEB_BUILD_OPTIONS=noddebs
pkg_name=makedumpfile
_bindir=/usr/bin
_sbindir=/usr/sbin
_sharedir=/usr/share
_scriptdir=makedumpfile/eppic_scripts
destdir=debian/tmp
override_dh_auto_install:
make
mkdir -p $(destdir)
make install DESTDIR=$(CURDIR)/$(destdir)
dh_installdirs -p$(pkg_name) $(_sbindir)
dh_install -p$(pkg_name) $(DESTDIR)$(_sbindir)/makedumpfile $(_bindir)/
dh_install -p$(pkg_name) $(DESTDIR)$(_sbindir)/makedumpfile-R.pl $(_bindir)/
dh_installdirs -p$(pkg_name) $(_sharedir)/man/man8
dh_install -p$(pkg_name) $(DESTDIR)$(_sharedir)/man/man8/makedumpfile.8 $(_sharedir)/man/man8/
dh_installdirs -p$(pkg_name) $(_sharedir)/man/man5
dh_install -p$(pkg_name) $(DESTDIR)$(_sharedir)/man/man5/makedumpfile.conf.5 $(_sharedir)/man/man5/
dh_installdirs -p$(pkg_name) $(_sharedir)/makedumpfile/eppic_scripts
dh_install -p$(pkg_name) $(DESTDIR)$(_sharedir)/makedumpfile/eppic_scripts/* $(_sharedir)/makedumpfile/eppic_scripts/
dh_installdirs -p$(pkg_name) $(_sharedir)/makedumpfile
dh_install -p$(pkg_name) $(DESTDIR)$(_sharedir)/makedumpfile/makedumpfile.conf.sample $(_sharedir)/makedumpfile/
override_dh_auto_clean:
echo "Do nothing"
override_dh_auto_test:
true

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,12 @@
---
debver: 1.7.4
debname: makedumpfile
dl_path:
name: 1.7.4.tar.gz
url: https://github.com/makedumpfile/makedumpfile/archive/refs/tags/1.7.4.tar.gz
sha256sum: 0554f5de516c51f5756e437dbfc353722b16b20e875241275554b474e89298db
revision:
dist: $STX_DIST
GITREVCOUNT:
BASE_SRCREV: 999fcb6e5979b5d749b8cba7fb840616389ffa69
SRC_DIR: ${MY_REPO}/stx/integ/tools/makedumpfile