Skip to contentSkip to conversation

change/add help message of options

PATCH In review Baoquan He 2 participants 5 messages Jun 3, 2013 – Jun 10, 2013

Subsystems (2)
lore
Share & tools
lore

Baoquan He

author
#0 lore raw

cover change/add help message of options

Currently, help message of several options are missed or not correct, change/add it in this patchset.

Options not present in help:
* --entry

Options not present in man:
* --entry
* --load-jump-back-helper
* --load-preserve-context
* --reuseinitrd

Options not correct in man:
* --debug

Baoquan He (3):
kexec man page change for debug option
add description for entry option in help and man page add missed options to man page

 kexec/kexec.8 |   19 ++++++++++++++++---
 kexec/kexec.c |    4 ++++
 2 files changed, 20 insertions(+), 3 deletions(-)

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#1 lore raw

PATCH 1/3 kexec man page change for debug option

In commit 28d4ab53, the arch-specific --debug are moved to generic place, but the relevant description was not updated accordingly in man page. Here change it.

---
 kexec/kexec.8 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
kexec/kexec.8 +3 -3
index aff674c..120af4d 100644
@@ -104,6 +104,9 @@ command:
 
 .SH OPTIONS
 .TP
+.B \-d\ (\-\-debug)
+Enable debugging messages.
+.TP
 .B \-e\ (\-\-exec)
 Run the currently loaded kernel. Note that it will reboot into the loaded kernel without calling shutdown(8).
 .TP
@@ -167,9 +170,6 @@ Pass ELF boot notes.
 .B \-\-args\-linux
 Pass Linux kernel style options.
 .TP
-.B \-d \ (\-\-debug)
-Enable debugging messages.
-.TP
 .B \-\-real\-mode
 Use the kernel's real mode entry point.
 .RE
Signature · 7 lines
1.7.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
author
#2 lore raw

PATCH 2/3 add description for entry option in help and man page

In reply to Baoquan He

"--entry" option is used to specify jump back entry address, but lack description in help message and man page. Now add it.

---
 kexec/kexec.8 |    3 +++
 kexec/kexec.c |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)
kexec/kexec.8 +3 -0
index 120af4d..2f94448 100644
@@ -159,6 +159,9 @@ to load code into.
 Specify the highest memory address
 .I addr
 to load code into.
+.TP
+.BI \-\-entry= addr
+Specify the jump back address. (0 means it's not jump back or preserve context)
 
 .SH SUPPORTED KERNEL FILE TYPES AND OPTIONS
 .B Beoboot-x86
kexec/kexec.c +4 -0
index 6a13f79..21ff0e7 100644
@@ -905,6 +905,10 @@ void usage(void)
 	       "                      context of current kernel during kexec.\n"
 	       "     --load-jump-back-helper Load a helper image to jump back\n"
 	       "                      to original kernel.\n"
+	       "     --entry=<addr>   Specify jump back address.\n"
+	       "                      (0 means it's not jump back or\n"
+	       "                      preserve context)\n"
+	       "                      to original kernel.\n"
 	       " -d, --debug           Enable debugging to help spot a failure.\n"
 	       "\n"
 	       "Supported kernel file types and options: \n");
Signature · 7 lines
1.7.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
author
#3 lore raw

PATCH 3/3 add missed options to man page

In reply to Baoquan He

several options are missed in man page, add it now. They are --reuseinitrd, --load-preserve-context, --load-jump-back-helper and --entry=<addr>.

---
 kexec/kexec.8 |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
kexec/kexec.8 +10 -0
index 2f94448..2575f9e 100644
@@ -162,6 +162,16 @@ to load code into.
 .TP
 .BI \-\-entry= addr
 Specify the jump back address. (0 means it's not jump back or preserve context)
+.TP
+.BI \-\-load\-preserve\-context
+Load the new kernel and preserve context of current kernel during kexec.
+.TP
+.BI \-\-load\-jump\-back\-helper
+Load a helper image to jump back to original kernel.
+.TP
+.BI \-\-reuseinitrd
+Reuse initrd from first boot.
+
 
 .SH SUPPORTED KERNEL FILE TYPES AND OPTIONS
 .B Beoboot-x86
Signature · 7 lines
1.7.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#4 lore raw
In reply to Baoquan He
Quoted 15 lines · Baoquan He

Currently, help message of several options are missed or not correct, change/add it in this patchset.

Options not present in help:
* --entry

Options not present in man:
* --entry
* --load-jump-back-helper
* --load-preserve-context
* --reuseinitrd

Options not correct in man:
* --debug

Quoted 8 lines

Baoquan He (3):
kexec man page change for debug option
add description for entry option in help and man page add missed options to man page

 kexec/kexec.8 |   19 ++++++++++++++++---
 kexec/kexec.c |    4 ++++
 2 files changed, 20 insertions(+), 3 deletions(-)

Thanks, all three patches applied.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec