Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2022 10:07:35 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Souradeep Chakrabarti <schakrabarti@microsoft.com>
Cc:        "freebsd-arm@freebsd.org" <arm@freebsd.org>, Wei Hu <weh@microsoft.com>
Subject:   Re: [EXTERNAL] Re: unable to get virtual serial console for EFI
Message-ID:  <CANCZdfqp-TJmraK4-0MU%2BfScYVO-1NZYHxNPv9DhgkggS16t-Q@mail.gmail.com>
In-Reply-To: <PSAP153MB05361BD405D44B0AE7CF39DACCD79@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
References:  <PSAP153MB0536FC1FA3DA80BC228AEC6ECCD49@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <CANCZdfotM2CPtq43aSf_GRAO%2BnWFhXn_54A3H9EoNYQr=z6gsQ@mail.gmail.com> <PSAP153MB05361BD405D44B0AE7CF39DACCD79@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <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
>
>
>
> You don't often get email from imp@bsdimp.com. Learn why this is important
> <https://aka.ms/LearnAboutSenderIdentification>;
>
> 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

<div dir=3D"auto"><br><br><div class=3D"gmail_quote" dir=3D"auto"><div dir=
=3D"ltr" class=3D"gmail_attr">On Tue, May 24, 2022, 9:53 AM Souradeep Chakr=
abarti &lt;<a href=3D"mailto:schakrabarti@microsoft.com">schakrabarti@micro=
soft.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang=3D"EN-IN" link=3D"blue" vlink=3D"purple" style=3D"word-wrap:break=
-word">
<div class=3D"m_-2192630164818505130WordSection1">
<p class=3D"MsoNormal"><span>Hi Warner,<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span>The ConOut is :<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span>global NV,BS,RS ConOut =3D AcpiEx(VMBus,,)/Ven=
Hw(9B17E5A2-0891-42DD-B653-80B5C22809BA,02780ADA77E3AC4A8E770558EB1073F8C7E=
020566280CE4DAEB7520C7EF76171)</span></p></div></div></blockquote></div><di=
v dir=3D"auto">And what does dmesg say?</div><div dir=3D"auto"><br></div><d=
iv dir=3D"auto">Warner=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"a=
uto"><br></div><div class=3D"gmail_quote" dir=3D"auto"><blockquote class=3D=
"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding=
-left:1ex"><div lang=3D"EN-IN" link=3D"blue" vlink=3D"purple" style=3D"word=
-wrap:break-word"><div class=3D"m_-2192630164818505130WordSection1">
<p class=3D"MsoNormal"><span>Regards,<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span>Souradeep<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span><u></u>=C2=A0<u></u></span></p>
<div>
<div style=3D"border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"EN-US">From:</span></b><span lang=
=3D"EN-US"> Warner Losh &lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"_bl=
ank" rel=3D"noreferrer">imp@bsdimp.com</a>&gt;
<br>
<b>Sent:</b> Tuesday, May 24, 2022 8:23 PM<br>
<b>To:</b> Souradeep Chakrabarti &lt;<a href=3D"mailto:schakrabarti@microso=
ft.com" target=3D"_blank" rel=3D"noreferrer">schakrabarti@microsoft.com</a>=
&gt;<br>
<b>Cc:</b> <a href=3D"mailto:arm@freebsd.org" target=3D"_blank" rel=3D"nore=
ferrer">arm@freebsd.org</a>; Wei Hu &lt;<a href=3D"mailto:weh@microsoft.com=
" target=3D"_blank" rel=3D"noreferrer">weh@microsoft.com</a>&gt;<br>
<b>Subject:</b> [EXTERNAL] Re: unable to get virtual serial console for EFI=
<u></u><u></u></span></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" align=3D"left" widt=
h=3D"100%" style=3D"width:100.0%">
<tbody>
<tr>
<td style=3D"background:#a6a6a6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width=3D"100%" style=3D"width:100.0%;background:#eaeaea;padding:5.25pt =
3.75pt 5.25pt 11.25pt">
<div>
<p class=3D"MsoNormal">
<span style=3D"font-size:9.0pt;font-family:&quot;Segoe UI&quot;,sans-serif;=
color:#212121">You don&#39;t often get email from
<a href=3D"mailto:imp@bsdimp.com" target=3D"_blank" rel=3D"noreferrer">imp@=
bsdimp.com</a>. <a href=3D"https://aka.ms/LearnAboutSenderIdentification" t=
arget=3D"_blank" rel=3D"noreferrer">
Learn why this is important</a><u></u><u></u></span></p>
</div>
</td>
<td width=3D"75" style=3D"width:56.25pt;background:#eaeaea;padding:5.25pt 3=
.75pt 5.25pt 3.75pt">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class=3D"MsoNormal">What does the ComOut variable say? <u></u><u></u></p=
>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<p class=3D"MsoNormal">Warner<u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">On Mon, May 23, 2022 at 3:57 AM Souradeep Chakrabart=
i &lt;<a href=3D"mailto:schakrabarti@microsoft.com" target=3D"_blank" rel=
=3D"noreferrer">schakrabarti@microsoft.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0c=
m 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class=3D"MsoNormal">Hi,<u></u><u></u></p>
<p class=3D"MsoNormal">I am trying to get the virtual serial console to acc=
ess via putty while booting FreeBSD 13 arm64 bootonly on Hyper-V.<u></u><u>=
</u></p>
<p class=3D"MsoNormal">=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
Setting console=3D&quot;efi&quot; is not helping to have the virtual serial=
 console access using putty for ARM64. It is before any kernel module loade=
d.
<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
I can get the loader output in vmconnect.exe but not in the putty.
<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
Though I can see VM is getting connected to Hyper-V virtual COM1 console. B=
ut no output is coming to putty.<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
I have following question :<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
Any specific support from EFI firmware, is required for virtual serial to w=
ork in EFI loader in this phase of loading?<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
I can see FreeBSD EFI loader is able to read the ConInDev and ConOutDev var=
iables.<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
With set console=3D&quot;efi&quot; or set console=3D&quot;comconsole,efi&qu=
ot;=C2=A0 or set console=3D&quot;efi&quot; , nothing in getting redirected =
in putty in arm64.<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
But in X86 that is not the problem.<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
Without this debugging the bring up of FreeBSD on arm64 Hyper-V is quite di=
fficult. Any help or pointers are really appreciated.<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
=C2=A0<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
Regards,<u></u><u></u></p>
<p class=3D"m_-2192630164818505130gmail-m-1602174453955658924msoplaintext">=
Souradeep<u></u><u></u></p>
<p class=3D"MsoNormal">=C2=A0<u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>

</blockquote></div></div>

--000000000000627e6305dfc42800--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqp-TJmraK4-0MU%2BfScYVO-1NZYHxNPv9DhgkggS16t-Q>