kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Marc SCHAEFER <schaefer@alphanet.ch>
To: kernelnewbies@kernelnewbies.org
Subject: Re: Does sysrq work over USB?
Date: Sun, 21 Nov 2021 21:49:16 +0100	[thread overview]
Message-ID: <20211121204915.GA14247@alphanet.ch> (raw)
In-Reply-To: <YZqK5V2NDv8cuyMU@valentin-vidic.from.hr>

Hello,

On Sun, Nov 21, 2021 at 07:07:33PM +0100, Valentin Vidi?? wrote:
> I tried and it doesn't work for me either, but the problem is most
> likely missing CONFIG_USB_SERIAL_CONSOLE=y option in the kernel build:
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868352

Yes,

with a kernel recompiled with those options and grub configured,
I get:

CONFIG_USB=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_CONSOLE=y
CONFIG_U_SERIAL_CONSOLE=y

I get:

   root@gluster-1:~# cat /proc/consoles 
   tty0                 -WU (EC p  )    4:1
   ttyUSB0              -W- (E  p  )  188:0

and I can then do sysrq from USB:
   schaefer@acer-1:~$ cu -l ttyUSB0 -s 9600
   Connected.
   ~%break
   [ 1633.701624] sysrq: HELP : loglevel(0-9) reboot(b) crash(c)
   terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i)
   thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l)
   show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p)
   show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u)
   force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z) 
   
Thank you for your help: I have now a way to make it work.
   

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2021-11-21 20:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16 14:04 Does sysrq work over USB? Marc SCHAEFER
2021-11-16 21:29 ` Valentin Vidić
2021-11-21 15:47   ` Marc SCHAEFER
2021-11-21 17:51     ` Valentin Vidić
2021-11-21 18:07       ` Valentin Vidić
2021-11-21 20:49         ` Marc SCHAEFER [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211121204915.GA14247@alphanet.ch \
    --to=schaefer@alphanet.ch \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).