[OpenWrt-Devel] [PATCH 0/5] Enhancement for kexec of MIPS kernel

Yousong Zhou yszhou4tech at gmail.com
Tue Feb 10 07:10:26 EST 2015


This series mainly tries to

 - Allow users to select lzma support of kexec-tools.
 - Allow lzma and gzip support of kexec-tools coexist in one build.
 - Fix the "invalid memory segment" error when trying to use kexec to load a
   kernel within QEMU Malta machine.
 - Make the kernel use the specified --command-line parameter from kexec to
   boot the crashkernel.

The first 2 patches though not strictly related to what the subject line means,
are included here because they were produced when testing the other patches
against v3.19 kernel.

Previously this series was tested on real devices including HiWiFi HC6361,
WDR4300.  However, this version was only tested on QEMU Malta machine with
against each kernel patched in this series, including 3.19.  I expect them
should still work on real devices though.

Behaviour changes compared with previous RFC version.

 - Kernel command line argument "kexec " supplied by userspace kexec tool is
   now preserved as a mark for kexec-assisted reboot.  Though it will be again
   ignored by kernel boot code of Malta machine.
 - Debug output from decompressing routines of kexec-tools are now printed with
   dbgprintf().
 - Patch 100-reduce_size.patch is now dropped mainly because the size reduction
   is considered marginal.

Yousong Zhou (5):
  generic: add a few missing symbols for generic config-3.19.
  malta: add config file for kernel 3.19.
  generic: improve kexec support of MIPS.
  kexec-tools: show up only when KERNEL_KEXEC is enabled.
  kexec-tools: bump version from v2.0.4 to v2.0.9.

 package/boot/kexec-tools/Config.in                 |    5 +
 package/boot/kexec-tools/Makefile                  |   12 +-
 .../patches/0001-Fix-zlib-lzma-decompression.patch |  171 +++++++++++
 ...c-apply-necessary-quotes-to-result-of-mac.patch |   52 ++++
 ...mpiler-warning-on-printing-64-bit-integer.patch |   35 +++
 .../patches/0004-mips-remove-unused-variable.patch |   30 ++
 .../kexec-tools/patches/0004-mips_regdefs.patch    |  103 -------
 ...ix-warning-about-implicit-type-conversion.patch |   30 ++
 .../boot/kexec-tools/patches/100-reduce_size.patch |   36 ---
 target/linux/generic/config-3.19                   |    2 +
 ...Mark-kernel-code-and-kernel-data-segments.patch |   37 +++
 ...Accept-command-line-parameters-from-users.patch |  305 +++++++++++++++++++
 ...Mark-kernel-code-and-kernel-data-segments.patch |   39 +++
 ...Accept-command-line-parameters-from-users.patch |  304 +++++++++++++++++++
 ...Mark-kernel-code-and-kernel-data-segments.patch |   39 +++
 ...Accept-command-line-parameters-from-users.patch |  308 ++++++++++++++++++++
 ...Mark-kernel-code-and-kernel-data-segments.patch |   39 +++
 ...Accept-command-line-parameters-from-users.patch |  308 ++++++++++++++++++++
 target/linux/malta/config-3.19                     |  256 ++++++++++++++++
 19 files changed, 1966 insertions(+), 145 deletions(-)
 create mode 100644 package/boot/kexec-tools/patches/0001-Fix-zlib-lzma-decompression.patch
 create mode 100644 package/boot/kexec-tools/patches/0002-configure.ac-apply-necessary-quotes-to-result-of-mac.patch
 create mode 100644 package/boot/kexec-tools/patches/0003-mips-fix-compiler-warning-on-printing-64-bit-integer.patch
 create mode 100644 package/boot/kexec-tools/patches/0004-mips-remove-unused-variable.patch
 delete mode 100644 package/boot/kexec-tools/patches/0004-mips_regdefs.patch
 create mode 100644 package/boot/kexec-tools/patches/0005-mips-fix-warning-about-implicit-type-conversion.patch
 delete mode 100644 package/boot/kexec-tools/patches/100-reduce_size.patch
 create mode 100644 target/linux/generic/patches-3.10/330-MIPS-Malta-Mark-kernel-code-and-kernel-data-segments.patch
 create mode 100644 target/linux/generic/patches-3.10/331-MIPS-kexec-Accept-command-line-parameters-from-users.patch
 create mode 100644 target/linux/generic/patches-3.14/330-MIPS-Malta-Mark-kernel-code-and-kernel-data-segments.patch
 create mode 100644 target/linux/generic/patches-3.14/331-MIPS-kexec-Accept-command-line-parameters-from-users.patch
 create mode 100644 target/linux/generic/patches-3.18/330-MIPS-Malta-Mark-kernel-code-and-kernel-data-segments.patch
 create mode 100644 target/linux/generic/patches-3.18/331-MIPS-kexec-Accept-command-line-parameters-from-users.patch
 create mode 100644 target/linux/generic/patches-3.19/330-MIPS-Malta-Mark-kernel-code-and-kernel-data-segments.patch
 create mode 100644 target/linux/generic/patches-3.19/331-MIPS-kexec-Accept-command-line-parameters-from-users.patch
 create mode 100644 target/linux/malta/config-3.19

-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list