From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fK1fC-0001T1-PX for mharc-grub-devel@gnu.org; Sat, 19 May 2018 09:12:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fK1fB-0001Sq-1K for grub-devel@gnu.org; Sat, 19 May 2018 09:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fK1f9-0005gf-Sn for grub-devel@gnu.org; Sat, 19 May 2018 09:12:45 -0400 Received: from mail-vk0-x231.google.com ([2607:f8b0:400c:c05::231]:39934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fK1f9-0005gV-Nd for grub-devel@gnu.org; Sat, 19 May 2018 09:12:43 -0400 Received: by mail-vk0-x231.google.com with SMTP id g83-v6so6443236vkc.6 for ; Sat, 19 May 2018 06:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3mTxVWGdhOXAK61Ze1LnSJgVmin2xSfyVWpbx4DIKlE=; b=FGrG6OstAir4nq8bd5+ncLp/b7ECMXrL+UNwp7IQQN2jDID535hjltj88pIGyrqSpT jlS4bRwuHuUkeGCgJF+oLLEfUTrS5w+wkplo5woC1B7MjYn5kcSA6p8PWCBBJ/pbjOqp jdhUrk1vDM8B7/bVm1ZreMVbcw5e5dqWlP36mbkl8IJs5LQxQOTXB6+TLbrpwt+jD/BE rktOIQWcVz3ynHyXMEYAMqh9RmPfkEOCw5QlFY1sESggBpCyHPyvoAW41PcsEqWfs4Q5 21oj3MQqr6zSs1R6Gz0fvci940j33bqvIF6JFyGKC9OVH3nWeyjqisSZnxUOiIJT8A9j X2Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3mTxVWGdhOXAK61Ze1LnSJgVmin2xSfyVWpbx4DIKlE=; b=tYU00rzp6/L8YnbPeIBFuX7NnIYuyPRWFjofWCKJ285PH1bG95f+6UPXMXWHf629SD CtVRbK+otRIW3tO0DCDcusC1trAtPXCedy9r3OLY72YCZcfkEg7uTPlO612jr3TW0ztl Ys9clCq1Oma1TB7GOsIK294Fdk9Pf6ZWdGclrkzp2ILaUd33g2f5eNG7FgxTyfY8gIXT lW1r8wHpv17nkZcvqP6kQCttOF3ZpCO5Jew7YXVaisri2SyfIyisMkotdDYJrkWzYPAz 4hA4WBqJui8kr8KZCjZSVOdxRsMQ4UIge7LXLCcMB6ujQulnktCB1hj6nfisve+Enpuy +2OQ== X-Gm-Message-State: ALKqPwdxAHbTmMtXFBJCFeww6mVk9wnhHzuA5ay4tvG6NclmHfnmCNyz llenU3xgUfeqTl0IWOZ5pU9FVw+G7YZSmcNHG5kS+qZh X-Google-Smtp-Source: AB8JxZozq3mLo8SYZcGVQwJ7wMrMuY8EPT9KoGffVk0sTXzyM0bE8n49+qpLis7oiZdC6fesxuBO6s9wjivtyYXnLyI= X-Received: by 2002:a1f:b254:: with SMTP id b81-v6mr9384804vkf.20.1526735562721; Sat, 19 May 2018 06:12:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9f:28c4:0:0:0:0:0 with HTTP; Sat, 19 May 2018 06:12:42 -0700 (PDT) In-Reply-To: <20180518.163239.1042395263713665873.petter@gustad.com> References: <20180516093219.GB24959@router-fw-old.local.net-space.pl> <20180518.130141.1533867061088587689.petter@gustad.com> <20180518115555.GB13069@router-fw-old.local.net-space.pl> <20180518.163239.1042395263713665873.petter@gustad.com> From: Andrew Worsley Date: Sat, 19 May 2018 23:12:42 +1000 Message-ID: Subject: Re: FTDI serial console support? To: The development of GNU GRUB Cc: dkiper@net-space.pl Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c05::231 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: Sat, 19 May 2018 13:12:46 -0000 On 19 May 2018 at 00:32, Petter Gustad wrote: > From: Daniel Kiper > Subject: Re: FTDI serial console support? > Date: Fri, 18 May 2018 13:55:55 +0200 > >> On Fri, May 18, 2018 at 01:01:41PM +0200, Petter Gustad wrote: >>> From: Daniel Kiper >>> Subject: Re: FTDI serial console support? >>> Date: Wed, 16 May 2018 11:32:19 +0200 >>> >>> > On Wed, May 16, 2018 at 06:21:17AM +0200, Petter Gustad wrote: >>> >> 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: >>> >> >> .... >> Could you just do "insmod usbserial_ftdi"? There is a chance that it >> will pull in all needed dependencies without breaking disk access. > > Thanks. Only "insmod usbserial_ftdi" does work in the sense that it > will not break disk access. I also managed to load grub using PXE/tftp > where I was not dependend upon disk access. > > But in both cases it does not work like in the coreboot URL above. > After do insmod on usbserial_ftdi and usbserial_usbdebug the > terminal_output command will only return console as its active output > terminal. It will list serial_* as available output terminals, but I > can't select usb0, usb1, etc as argument to the serial command. I think GRUB relies on the BIOS/UEIF to provide drivers and typically USB was only used to emulated old hardware like keyboard/mouse and CD-ROMs. Coreboot - is a BIOS/UEIF replacement and so it can do anything they care to implement - but then it has to be customised for each individual hardware case where as GRUB can rely on the standardised routines. But perhaps things have moved on - it would be great if UEIF provided some standard USB drivers for serial. Andrew