From nobody Tue May 24 16:07:35 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 A117C1AEF0AE for ; Tue, 24 May 2022 16:07:53 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) (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 4L6zcm6YP8z3D42 for ; Tue, 24 May 2022 16:07:52 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe35.google.com with SMTP id 67so3543326vsh.2 for ; Tue, 24 May 2022 09:07:52 -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=8jlPpY0KQ1UmSm4hEGE2Pgn9FfH4GubHmM4sfY1XE8w=; b=DmWlBNlJtuj94OISdjdRhTTn/Jk2FybYeoJN+NDlWzX1Jg1alZDd9KHuyeUZ0PsQw7 txaraskLIP7+JUziDb3oazStHne7dNGVbg5mUi8Ucm33ZtDlgQAKWvpVS5uS8NeOfrxd aijK+cazrf8sLJbiMX4AxoYbZjjxtt9hg0s4HBhovNjCbDcKlaX0C51nH4RM7fNHihGB pzDR+MI33sfO4gjJZ/tXurA2S5ey6zy+IzW7hxK6V0nhhOSUuy4G8C96/gbdk9Ya2xal KOYfIw7PK2JVj2FY4fVEwkTcD8MYPgriHNu6J/QB3Mi8S7E2r4BUqzF6+yrWCzHv2k8B CoTA== 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=8jlPpY0KQ1UmSm4hEGE2Pgn9FfH4GubHmM4sfY1XE8w=; b=c6SgDKz8rk2MSJ4e+pmhbfC0pOYbVRqCfxc59BHeo5k98TiVmHFDpHjlWVyKfog7/3 YfdHeLXZu8fZ/97oy3njQxoA3xyf2/32A59bgbBvg831RPhsY3dGuNCoYtSNMyCYlKPm DzXjKkY8dQ0jfXAWkw7CmiHx7kDjxCMBrlJY9rmmgEz4mmV+FS37nIjLM5JkpXThXf16 jmSpmWfE5pwW7TRWkv/ZwCdpv9tvJez+Z4W8afecViVgMXYgX5Ic/rmh9xY0cSK5JQqq XYDT3Ubsp3iir+UQBsC1+Mk0+r1NELN+kpv9IUBWbsS7l062fU4KvHA/OUvGPa5iRQtn pNlg== X-Gm-Message-State: AOAM533xeV7q5b8x6YC2oZbh51sbaigFe+PRGoS4R2aKhD5W52cjIh1J mMlj35RnZrruiopNjUs2EugLU73B2zN4DW3n7LE/rccco/8= X-Google-Smtp-Source: ABdhPJyFUFalKiIaba78Z8ep3CNnUBdVZsZqrrW/HMdEt1fyoRmNnXqjEp6xhvp01JGZqKMXYSgGx0ZX6f51gU1t7Po= X-Received: by 2002:a67:a24e:0:b0:337:b2bb:8187 with SMTP id t14-20020a67a24e000000b00337b2bb8187mr4472776vsh.50.1653408467563; Tue, 24 May 2022 09:07:47 -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 10:07:35 -0600 Message-ID: Subject: Re: [EXTERNAL] Re: unable to get virtual serial console for EFI To: Souradeep Chakrabarti Cc: "freebsd-arm@freebsd.org" , Wei Hu Content-Type: multipart/alternative; boundary="000000000000627e6305dfc42800" X-Rspamd-Queue-Id: 4L6zcm6YP8z3D42 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=DmWlBNlJ; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::e35) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[]; TO_DN_ALL(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::e35:from]; 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:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000627e6305dfc42800 Content-Type: text/plain; charset="UTF-8" On Tue, May 24, 2022, 9:53 AM Souradeep Chakrabarti < schakrabarti@microsoft.com> wrote: > Hi Warner, > > > > The ConOut is : > > > > global NV,BS,RS ConOut = > AcpiEx(VMBus,,)/VenHw(9B17E5A2-0891-42DD-B653-80B5C22809BA,02780ADA77E3AC4A8E770558EB1073F8C7E020566280CE4DAEB7520C7EF76171) > And what does dmesg say? Warner Regards, > > Souradeep > > > > *From:* Warner Losh > *Sent:* Tuesday, May 24, 2022 8:23 PM > *To:* Souradeep Chakrabarti > *Cc:* arm@freebsd.org; Wei Hu > *Subject:* [EXTERNAL] Re: unable to get virtual serial console for EFI > > > > You don't often get email from imp@bsdimp.com. Learn why this is important > > > 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 > > > > --000000000000627e6305dfc42800 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, May 24, 2022, 9:53 AM Souradeep Chakr= abarti <schakrabarti@micro= soft.com> wrote:

Hi Warner,

=C2=A0

The ConOut is :

=C2=A0

global NV,BS,RS ConOut =3D AcpiEx(VMBus,,)/Ven= Hw(9B17E5A2-0891-42DD-B653-80B5C22809BA,02780ADA77E3AC4A8E770558EB1073F8C7E= 020566280CE4DAEB7520C7EF76171)

And what does dmesg say?

Warner=C2=A0


Regards,

Souradeep

=C2=A0

From: Warner Losh <imp@bsdimp.com>
Sent: Tuesday, May 24, 2022 8:23 PM
To: Souradeep Chakrabarti <schakrabarti@microsoft.com= >
Cc: arm@freebsd.org; Wei Hu <weh@microsoft.com>
Subject: [EXTERNAL] Re: unable to get virtual serial console for EFI=

=C2=A0

You don't often get email from imp@= bsdimp.com. Learn why this is important

What does the ComOut variable say?

=C2=A0

Warner

=C2=A0

=C2=A0

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"efi" is not helping to have the virtual serial= console access using putty for ARM64. It is before any kernel module loade= d.

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

= =C2=A0

= Though I can see VM is getting connected to Hyper-V virtual COM1 console. B= ut no output is coming to putty.

= =C2=A0

= I have following question :

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

= =C2=A0

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

= =C2=A0

= With set console=3D"efi" or set console=3D"comconsole,efi&qu= ot;=C2=A0 or set console=3D"efi" , nothing in getting redirected = in putty in arm64.

= But in X86 that is not the problem.

= =C2=A0

= Without this debugging the bring up of FreeBSD on arm64 Hyper-V is quite di= fficult. Any help or pointers are really appreciated.

= =C2=A0

= Regards,

= Souradeep

=C2=A0

--000000000000627e6305dfc42800--