From nobody Tue May 24 14:52:31 2022 X-Original-To: arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1294C1B44744 for ; Tue, 24 May 2022 14:52:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L6xy34Kpnz4jxM for ; Tue, 24 May 2022 14:52:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe34.google.com with SMTP id b7so18498974vsq.1 for ; Tue, 24 May 2022 07:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=slTQsWuMd5t45FkQuuZO9JMeQ4YZYwRTCCTvEBXKCo4=; b=zLel81eNT6mdPE382S7lm3ViyeAU8LGmCmUGJx06h8XjL+cnltm+8wrodJrsSNZqDJ 42Iso/36+k6JrQcx4GmExJH/s2RKzoA+f+0mPOJFgMhJtcIf0B+pFw2Uc7XMOeNrx0+K UBM9QbOzWQYxHZPbuju8PZEbWcQd+fHTZsHNDBmYtl17h641itAQx2sjXk1UE5DAlTtv q+JxvE+aPFGXvCRkm3pTd4eAGqmtB84XjERqFkVuQroRGfNc8ue0U90fwaaalNt1oG1t UZG9zXk5ZJlb9qH8gOQOjjBoUWtdv1k76YFAyjK8cG6Sudt2mmvlJzAVsaASz3cBHIZy oFwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=slTQsWuMd5t45FkQuuZO9JMeQ4YZYwRTCCTvEBXKCo4=; b=3N/lDw/LPLJrSO5esM0TAmwo6NY1PYhADhW0LdaFDqQN9JDGvNWpgjJu2paDJ4ugq0 rQTqZlQlA6g+hfhRH+MdWrk5yWhrUy57IPZDnf30CWRxuCeT52Z9wE6B690i8jySzJm/ +58SH2OJwqPLGfVp6tT/Mq2ta9UqhHN21E4y7pKMA5IcV+Rv/vqjJShJqaTNoaoob9Em Gb9QFNwEznVLucss3jXpaHbGdMIa7ZPY3jHMhKJmNOAcSEa9EmiaPj/G/HVrzGCCy4pK OPz9WocIFZIzCGPocWfslLrgKl74ZPVBQtRNkn4mSqs0ksFnxxGt/LexumxQpriNUNgN WN4g== X-Gm-Message-State: AOAM530/PpBUdwXf/DNXvAqEH9ryFPG3S2Z74mElYyL28qx2f9u7Kwir xqCiBdatnc4uIXW3xyB6xCyAOBXeE8qo1/h79TPC/pZUGdo= X-Google-Smtp-Source: ABdhPJwnkR2hgb/yg3USHb6wDZqLFOXkaD6M0ph61oKUqIQuJe6vb8Dkz+YBMkZjMKxWoc6P7s9xeGSFgUzRgTNLWRQ= X-Received: by 2002:a67:c988:0:b0:333:b089:61f9 with SMTP id y8-20020a67c988000000b00333b08961f9mr10766960vsk.42.1653403962808; Tue, 24 May 2022 07:52:42 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Tue, 24 May 2022 08:52:31 -0600 Message-ID: Subject: Re: unable to get virtual serial console for EFI To: Souradeep Chakrabarti Cc: "arm@freebsd.org" , Wei Hu Content-Type: multipart/alternative; boundary="000000000000dfad9205dfc31b71" X-Rspamd-Queue-Id: 4L6xy34Kpnz4jxM X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=zLel81eN; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::e34) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[arm@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e34:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[arm]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com] X-ThisMailContainsUnwantedMimeParts: N --000000000000dfad9205dfc31b71 Content-Type: text/plain; charset="UTF-8" What does the ComOut variable say? Warner On Mon, May 23, 2022 at 3:57 AM Souradeep Chakrabarti < schakrabarti@microsoft.com> wrote: > Hi, > > I am trying to get the virtual serial console to access via putty while > booting FreeBSD 13 arm64 bootonly on Hyper-V. > > > > Setting console="efi" is not helping to have the virtual serial console > access using putty for ARM64. It is before any kernel module loaded. > > I can get the loader output in vmconnect.exe but not in the putty. > > > > Though I can see VM is getting connected to Hyper-V virtual COM1 console. > But no output is coming to putty. > > > > I have following question : > > Any specific support from EFI firmware, is required for virtual serial to > work in EFI loader in this phase of loading? > > > > I can see FreeBSD EFI loader is able to read the ConInDev and ConOutDev > variables. > > > > With set console="efi" or set console="comconsole,efi" or set > console="efi" , nothing in getting redirected in putty in arm64. > > But in X86 that is not the problem. > > > > Without this debugging the bring up of FreeBSD on arm64 Hyper-V is quite > difficult. Any help or pointers are really appreciated. > > > > Regards, > > Souradeep > > > --000000000000dfad9205dfc31b71 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
What does the ComOut variable say?

Warn= er


On Mon, May 23, 2022 at 3:57 AM Souradeep Chakrabart= i <schakrabarti@microsoft.= com> wrote:

Hi,

I am trying to get the virtual serial console to acc= ess via putty while booting FreeBSD 13 arm64 bootonly on Hyper-V.=

=C2=A0

Setting console=3D&qu= ot;efi" is not helping to have the virtual serial console access using= putty for ARM64. It is before any kernel module loaded.

I can get the loader = output in vmconnect.exe but not in the putty.

=C2=A0<= /p>

Though I can see VM i= s getting connected to Hyper-V virtual COM1 console. But no output is comin= g to putty.

=C2=A0<= /p>

I have following ques= tion :

Any specific support = from EFI firmware, is required for virtual serial to work in EFI loader in = this phase of loading?

=C2=A0<= /p>

I can see FreeBSD EFI= loader is able to read the ConInDev and ConOutDev variables.=

=C2=A0<= /p>

With set console=3D&q= uot;efi" or set console=3D"comconsole,efi"=C2=A0 or set cons= ole=3D"efi" , nothing in getting redirected in putty in arm64.=

But in X86 that is no= t the problem.

=C2=A0<= /p>

Without this debuggin= g the bring up of FreeBSD on arm64 Hyper-V is quite difficult. Any help or = pointers are really appreciated.

=C2=A0<= /p>

Regards,

Souradeep

=C2=A0

--000000000000dfad9205dfc31b71--