From owner-freebsd-virtualization@freebsd.org Sat Nov 17 16:29:47 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4A4911377A5; Sat, 17 Nov 2018 16:29:47 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7096A70DDA; Sat, 17 Nov 2018 16:29:46 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: by mail-lj1-x241.google.com with SMTP id g11-v6so10244894ljk.3; Sat, 17 Nov 2018 08:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nty4VOTVeC9/EcYeC6/OrQV/GYmSzrOlezMFZzdTa2M=; b=rMMRnQSASjq9zs/kGu1dElknm2ggYg9KChQJmXt59pvfHKj2p42sIesGNpZOEX3JI6 jAFgjJoqBCkuheibnZW7j0XHVx6fEjYqoLF/SZHZH9agCe0TiCM6675x0OA7muV9DNZ5 Fwf2wQ7MlXD4hVLUMWNFVR3NN9EXjQOJUhF7YWkAv5x+/Yxx7GnebmC51E5HOSUIPK+/ gXSDHaOpzyX5gq7Wsy0ICnzxwYrAKy53rbXTeDh919ezc5dxRpPQZG8Ew7KA+KW+5Udo GzV+gr2q0dAiwXk3kE0sQNJHY7N7aHtfF9NFKGsTvSc3L6vS81Rsn/I78UKrQRC4BHMV P1Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nty4VOTVeC9/EcYeC6/OrQV/GYmSzrOlezMFZzdTa2M=; b=DdxZviNlsskUCUNOM2fqYq4MJhzXjeWMltuyGrDw5UBrT4td0Gl/nIhdg9M/9G0a1m g4lIgO78z9R1BJbeahOlZ3dNuwvPsGtNAjiTHpPIs77WB6rBp6kOGo4G4z9OsgUnLD3q Zsqon1dQc0CwguLAceYaicoQIvNGZVqZ/Lk0cXzjMv2ieCNk4DjQLm2JGYGfDjBK0b/y cEuc7hMH6KhVcR9qzBKUz+o3j3rh5Fr7omXr7ots1RlI4aJon7P6lVd/nxtx0WyascGR MA3kfzbwHvfMOvUYRdJEcFxojJdx4VvCAvzGBdezBSAcopVbcW2CnUtNC5XXnWI5p4l9 IDkg== X-Gm-Message-State: AGRZ1gJ1zxLe3g66/AgrzTTlVfpTQmMYaaRTOdJyo8dNuhS6anNQ7tT0 oPqNPSIDfbqeSMRhVNKZKN0C8GwzpFD1RiqoUMl+OicP X-Google-Smtp-Source: AJdET5fHKJzKMj7381XWJRCC9h+Ktr2a+5gZMequI2yfj8G8IRVyb3hAFtAoTud1luRsMgabVnMuTdodFGxLNUSonQs= X-Received: by 2002:a2e:851a:: with SMTP id j26-v6mr8253063lji.163.1542472185023; Sat, 17 Nov 2018 08:29:45 -0800 (PST) MIME-Version: 1.0 References: <1564776.xRuIxZukmv@photon.int.bluestop.org> In-Reply-To: From: Subbsd Date: Sat, 17 Nov 2018 19:29:34 +0300 Message-ID: Subject: Re: UEFI GOP: screen goes blank during boot after loader is finished To: imp@bsdimp.com Cc: rebecca@bluestop.org, freebsd-current Current , kevans@freebsd.org, freebsd-rwg@pdx.rh.cn85.dnsmgr.net, freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 7096A70DDA X-Spamd-Result: default: False [-2.21 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.36)[ip: (2.00), ipnet: 2a00:1450::/32(-1.89), asn: 15169(-1.81), country: US(-0.10)]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.84)[-0.840,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2018 16:29:48 -0000 On Fri, Nov 16, 2018 at 8:03 AM Warner Losh wrote: > > > > On Thu, Nov 15, 2018 at 12:10 PM Rebecca Cran wrot= e: >> >> On Wednesday, 14 November 2018 19:56:56 MST Warner Losh wrote: >> >> > What is the ConOut evifar look like? We set serial when the UEFI env s= ays >> > to do so. >> >> Booting with: >> >> sudo bhyve -A -P -c 2 -H -m 4G -s 0:0,hostbridge -s 31:0,lpc -s 2,ahci- >> cd,FreeBSD-12.0-BETA4-amd64-disc1.iso -s >> 29,fbuf,tcp=3D0.0.0.0:5900,w=3D800,h=3D600,wait -l bootrom,/usr/local/sh= are/uefi- >> firmware/BHYVE_UEFI.fd -u vm5 >> >> dh in the shell shows: >> >> 7D: ConsoleOut SimpleTextOut GraphicsOutput(GraphicsOutput) >> PCIIO DevicePath(PciRoot (0x0)/Pci(0x1D,0x0)) >> >> 84: StdErr ConsoleOut ConsoleIn SimpleTextOut SimpleTextInEx SimpleTextI= n >> DevicePath(t(115200,8,N,1)/VenVt100Plus()) >> >> 89: SimpleTextOut SimpleTextInEx SimpleTextIn DevicePath(Uart(115200,8,N= ,1)/ >> VenPcAnsi()) > > > If I read that right, then the ConOut variable first has the video device= listed, then the serial port (this wasn't the form I expected to see it in= , so I'm not sure thats the case). In either event, we should get console o= utput on both the serial and the video at least until the /etc/rc script st= arts... > > Warner Perhaps this is not a special case of FreeBSD guest, since the latest versions of FreeBSD are loaded normally in other UEFI systems (e.g Virtualbox, KVM). For example someone from CBSD Telegram chat reported a similar problem for OpenIndiana 2018 ( which uses FreeBSD loader however) in bhyve. Thus, perhaps the root of this problem should be sought in uefi-edk2-bhyve the package. Latest CBSD release (12.0.1) fixed this problem by disabling serial console. However, CBSD uses an alternative boot method for bhyve ( uefi-edk2-bhyve + reFIND )