Re: keyboard break to debugger broken?

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Sat, 5 Jul 2014 15:31:08 +0300
On Jul 5, 2014, at 1:33 PM, John-Mark Gurney <jmg_at_funkthat.com> wrote:

> Peter Jeremy wrote this message on Fri, Jul 04, 2014 at 21:27 +1000:
>> On 2014-Jul-04 02:28:48 -0700, John-Mark Gurney <jmg_at_funkthat.com> wrote:
>>> So, I recently tried to break into the debugger w/ the various key
>>> sequences that I know about, and none of them worked... I've tried
>>> CTRL-ESC, ALT-ESC, CTRL-ALT-ESC, CTRL-PRTSCR, ALT-PRTSCR and
>>> CTRL-ALT-PRTSCR, and many other different ones...   I've verified that
>>> I can sysctl debug.kdb.enter=1 to enter the debugger, and the
>>> CTRL-ALT-PAUSE works to suspend the machine, and CTRL-ALT-DEL works
>>> to reboot...
>>> 
>>> Does anyone know if this works?
>> 
>> It works for me on 10.0.  Do you have debug.kdb.break_to_debugger=1
>> and hw.syscons.kbd_debug=1 (if you're using syscons)?
> 
> Turns out I didn't... and you didn't need to...  emaste helped me
> the other night discover this..  Apparently rwatson changed this and
> the docs never got updated...  I saw BREAK_TO_DEBUGGER, bug it was
> documented as being *serial* only, not syscons...
> 
> I've updated NOTES and added an entry for defaults/loader.conf, but
> more docs need to be updated that BREAK_TO_DEBUGGER or the tunable
> or sysctl needs to be set before if works..
> 

I don’t know about 10/11 but 9.3 (and probably late 9.2) introduced console_port
which silently overrides the hint.uart.n.flags=0x10 to set which serial port is
the ‘console’, in my case I have several platforms (mainly sunfire’s from sun) that only
have uart1 available.
somehow, i have the feeling that getting the serial console (needed to run serial-over-lab) to
work is getting more in the region of magic than technology.
please, some of us really need the serial console to work so that we can rescue servers when
all else fails.

thanks,
	danny


> -- 
>  John-Mark Gurney				Voice: +1 415 225 5579
> 
>     "All that I will do, has been done, All that I have, has not."
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Sat Jul 05 2014 - 10:40:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC