From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fInwN-00056A-7f for mharc-grub-devel@gnu.org; Wed, 16 May 2018 00:21:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fInwL-00055y-DW for grub-devel@gnu.org; Wed, 16 May 2018 00:21:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fInwG-0001f4-Ej for grub-devel@gnu.org; Wed, 16 May 2018 00:21:25 -0400 Received: from gustad.com ([94.23.222.9]:59645) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fInwG-0001eC-7L for grub-devel@gnu.org; Wed, 16 May 2018 00:21:20 -0400 Received: from filestore.home.gustad.com (unknown [81.191.150.10]) by gustad.com (Postfix) with ESMTPA id 8E5A95801E8; Wed, 16 May 2018 06:20:11 +0200 (CEST) Received: from localhost (filestore.home.gustad.com [172.30.30.252]) by filestore.home.gustad.com (Postfix) with ESMTP id 78BEE11A0003; Wed, 16 May 2018 06:21:17 +0200 (CEST) Date: Wed, 16 May 2018 06:21:17 +0200 (CEST) Message-Id: <20180516.062117.724628561441093953.petter@gustad.com> To: dkiper@net-space.pl Cc: grub-devel@gnu.org Subject: Re: FTDI serial console support? From: Petter Gustad In-Reply-To: <20180515200006.GE16845@router-fw-old.local.net-space.pl> References: <20180511.155536.850519467596734592.petter@gustad.com> <20180515200006.GE16845@router-fw-old.local.net-space.pl> X-Mailer: Mew version 6.5 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 94.23.222.9 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 04:21:26 -0000 From: Daniel Kiper Subject: Re: FTDI serial console support? Date: Tue, 15 May 2018 22:00:06 +0200 > On Fri, May 11, 2018 at 03:55:36PM +0200, Petter Gustad wrote: >> >> Is there a way to specify a FTDI based serial console using >> GRUB_TERMINAL, GRUB_SERIAL_COMMAND, or some other variable? If yes, >> what is the syntax? >> >> BTW my serial port adapter matches the vendor id and device id given >> in grub-core/bus/usb/serial/ftdi.c: >> >> Bus 001 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC > > Have you tried usbserial_ftdi, e.g. GRUB_TERMINAL=usbserial_ftdi? > Just guessing... Yes, I tried (as I found the "usbserial_ftdi" string in the source) the but grub-mkconfig does not accecpt it: grub-mkconfig -o /boot/grub/grub.cfg Invalid output terminal "usbserial_ftdi" Currently I have this: GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyUSB0,115200n8" #GRUB_TERMINAL="console serial" GRUB_TERMINAL="serial" GRUB_SERIAL_COMMAND="usbserial_ftdi --speed=115200 --unit=0 --word=8 --parity=no --stop=1" But this does not seem to work either, even though I do get console output on my USB serial after the kernel has loaded (due to GRUB_CMDLINE_LINUX being passed to the kernel), e.g. I can do "echo hello > /dev/console" and read "hello" on the USB serial output. When I do a "reboot" I observe messages about unmounting filesystems etc. I was hoping to be able to select kernels and options in grub using the USB serial line. Best regards //Petter