Re: keyboard break to debugger broken?

2014-07-05 Thread Daniel Braniss

On Jul 5, 2014, at 1:33 PM, John-Mark Gurney  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  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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: keyboard break to debugger broken?

2014-07-05 Thread John-Mark Gurney
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  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..

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 "All that I will do, has been done, All that I have, has not."
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: keyboard break to debugger broken?

2014-07-04 Thread Peter Jeremy
On 2014-Jul-04 02:28:48 -0700, John-Mark Gurney  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)?

-- 
Peter Jeremy


pgpRWEUgfMxEM.pgp
Description: PGP signature


Re: keyboard break to debugger broken?

2014-07-04 Thread Trond Endrestøl
On Fri, 4 Jul 2014 02:28-0700, John-Mark Gurney 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?
> 
> Thanks for the pointers...
> 
> btw, I'm having trouble on 9stable too.

You might need to modify and load a keymap, specifying debug as the 
action for the appropriate combination of keys. Have a look at the 
files in /usr/share/syscons/keymaps/.

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


keyboard break to debugger broken?

2014-07-04 Thread John-Mark Gurney
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?

Thanks for the pointers...

btw, I'm having trouble on 9stable too.

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 "All that I will do, has been done, All that I have, has not."
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"