From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A896CC433EF for ; Sun, 21 Nov 2021 20:49:43 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1motm7-0003yh-2h; Sun, 21 Nov 2021 15:49:23 -0500 Received: from shakotay.alphanet.ch ([46.140.72.222]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1motm5-0003yR-0B for kernelnewbies@kernelnewbies.org; Sun, 21 Nov 2021 15:49:21 -0500 Received: by shakotay.alphanet.ch (Postfix, from userid 1000) id 32640124EBE9; Sun, 21 Nov 2021 21:49:16 +0100 (CET) Date: Sun, 21 Nov 2021 21:49:16 +0100 From: Marc SCHAEFER To: kernelnewbies@kernelnewbies.org Subject: Re: Does sysrq work over USB? Message-ID: <20211121204915.GA14247@alphanet.ch> References: <20211116140456.GA10235@alphanet.ch> <20211121154757.GA5318@alphanet.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org 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