NetBSD Problem Report #54606

From martin@aprisoft.de  Mon Oct  7 10:11:49 2019
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2C5937A242
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  7 Oct 2019 10:11:49 +0000 (UTC)
Message-Id: <20191007101139.A248B5CC804@emmas.aprisoft.de>
Date: Mon,  7 Oct 2019 12:11:39 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: bootx64.efi does not support consdev
X-Send-Pr-Version: 3.95

>Number:         54606
>Category:       port-amd64
>Synopsis:       bootx64.efi does not support consdev
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 07 10:15:00 +0000 2019
>Last-Modified:  Mon Oct 07 10:30:02 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.15
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 9.99.15 NetBSD 9.99.15 (GENERIC) #312: Wed Oct 2 09:05:05 CEST 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

The "consdev" command - as documented in boot(8) for x86, and working fine
with the bios bootloader, does not seem to work when using bootx64.efi.
Looks like it is silently ignored.

This is bad when using non server grade hardware (no IPMI or similar) for
server tasks (despite other rumours, most of those boards still have serial
port pins available that can be routed to a slot connector).

>How-To-Repeat:
see above

>Fix:
n/a

>Audit-Trail:
From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/54606: bootx64.efi does not support consdev
Date: Mon, 7 Oct 2019 11:19:42 +0100

 Following a hint from mlelstv on one of the lists: "com0" doesn't seem
 to work, but if you use com and define the ioport it does. Oh I see - in
 the man page it says "Immediately switch the console" - it doesn't switch
 immediately, but after you boot, you see the console messages on serial
 port.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/54606: bootx64.efi does not support consdev
Date: Mon, 7 Oct 2019 12:25:51 +0200

 On Mon, Oct 07, 2019 at 10:20:02AM +0000, Patrick Welche wrote:
 >  Following a hint from mlelstv on one of the lists: "com0" doesn't seem
 >  to work, but if you use com and define the ioport it does. Oh I see - in
 >  the man page it says "Immediately switch the console" - it doesn't switch
 >  immediately, but after you boot, you see the console messages on serial
 >  port.

 Ok, this needs better documentation.

 But switching only for the kernel (and not the bootloader) is totally
 useless for recovery situations, the immediate switch is essential!

 Martin

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.