diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:24 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:24 -0400 |
commit | ada64e4c98eb5f04a9ca223c5ff9e7ac22ce6404 (patch) | |
tree | 48e284cf69157cf54302dcceb01ad7a07b889206 /Documentation | |
parent | a0de055cf61338549b13079a5677ef2e1b6472ef (diff) |
kgdboc,keyboard: Keyboard driver for kdb with kgdb
This patch adds in the kdb PS/2 keyboard driver. This was mostly a
direct port from the original kdb where I cleaned up the code against
checkpatch.pl and added the glue to stitch it into kgdb.
This patch also enables early kdb debug via kgdbwait and the keyboard.
All the access to configure kdb using either a serial console or the
keyboard is done via kgdboc.
If you want to use only the keyboard and want to break in early you
would add to your kernel command arguments:
kgdboc=kbd kgdbwait
If you wanted serial and or the keyboard access you could use:
kgdboc=kbd,ttyS0
You can also configure kgdboc as a kernel module or at run time with
the sysfs where you can activate and deactivate kgdb.
Turn it on:
echo kbd,ttyS0 > /sys/module/kgdboc/parameters/kgdboc
Turn it off:
echo "" > /sys/module/kgdboc/parameters/kgdboc
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index b12bacd252fc..3845e3a84a52 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -1121,9 +1121,11 @@ and is between 256 and 4096 characters. It is defined in the file | |||
1121 | zone if it does not. | 1121 | zone if it does not. |
1122 | 1122 | ||
1123 | kgdboc= [HW] kgdb over consoles. | 1123 | kgdboc= [HW] kgdb over consoles. |
1124 | Requires a tty driver that supports console polling. | 1124 | Requires a tty driver that supports console polling, |
1125 | (only serial supported for now) | 1125 | or a supported polling keyboard driver (non-usb). |
1126 | Format: <serial_device>[,baud] | 1126 | Serial only format: <serial_device>[,baud] |
1127 | keyboard only format: kbd | ||
1128 | keyboard and serial format: kbd,<serial_device>[,baud] | ||
1127 | 1129 | ||
1128 | kmac= [MIPS] korina ethernet MAC address. | 1130 | kmac= [MIPS] korina ethernet MAC address. |
1129 | Configure the RouterBoard 532 series on-chip | 1131 | Configure the RouterBoard 532 series on-chip |