Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2022 09:31:29 +0000
From:      Souradeep Chakrabarti <schakrabarti@microsoft.com>
To:        "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>, "tsoome@FreeBSD.org" <tsoome@FreeBSD.org>
Cc:        Wei Hu <weh@microsoft.com>
Subject:   serial console and comconsole in FreeBSD arm64
Message-ID:  <PSAP153MB05368451926D7372E9B44EC3CCDD9@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
In-Reply-To: <PSAP153MB05367C6802D76EC6BA352431CCDD9@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
References:  <PSAP153MB05367C6802D76EC6BA352431CCDD9@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
--_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I am trying to access virtual serial console via Putty and in 13.0 it is no=
t working
for both x86 and arm64.



It is very easy to reproduce:

1) In Windows Hyper-V set a  FreeBSD 13.0 VM

2) Use Powershell in Admin privileged mode and run following:

                Set-VMComPort -VMName <vm_name> -number 1 -path \\.\pipe\Te=
stpipe<file://./pipe/Testpipe>

2) In another Powershell with Admin privilege run following:

                Set-VMFirmware -VMName <VM name>  --ConsoleMode COM1

3) start the VM and open putty to connect the \\.\pipe\Testpipe<file://./pi=
pe/Testpipe> in serial mode.

No output will be seen on putty.



But the same works in FreeBSD 12.3 and Putty gets the output from EFI loade=
r for both x86 and arm64.

But during kernel booting the console output does not come in Putty, it onl=
y comes in vmconnect.exe.

Like below :



Loading kernel...

/boot/kernel/kernel text=3D0x931f24 data=3D0x187450 data=3D0x0+0x2d095e sym=
s=3D[0x8+0x138120+0x8+0x124824]

Loading configured modules...

can't find '/boot/entropy'

can't find '/etc/hostid'

No valid device tree blob found!

WARNING! Trying to fire up the kernel, but no device tree blob found!

EFI framebuffer information:

addr, size     0xe0000000, 0x800000

dimensions     1024 x 768

stride         1024

masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 <<<<



After this log is not coming in Putty in 12.3 for both x86 and arm64.





Regards,

Souradeep


--_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri",sans-serif;}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-IN" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I am trying to access virtual serial console via Put=
ty and in 13.0 it is not working
<o:p></o:p></p>
<p class=3D"MsoNormal">for both x86 and arm64.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">It is very easy to reproduce:<o:p></o:p></p>
<p class=3D"MsoPlainText">1) In Windows Hyper-V set a&nbsp; FreeBSD 13.0 VM=
<o:p></o:p></p>
<p class=3D"MsoPlainText">2) Use Powershell in Admin privileged mode and ru=
n following:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-VMComPort -VMName &lt;vm_name=
&gt; -number 1 -path
<a href=3D"file://./pipe/Testpipe">\\.\pipe\Testpipe</a><o:p></o:p></p>
<p class=3D"MsoPlainText">2) In another Powershell with Admin privilege run=
 following:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-VMFirmware -VMName &lt;VM nam=
e&gt;&nbsp; --ConsoleMode COM1<o:p></o:p></p>
<p class=3D"MsoPlainText">3) start the VM and open putty to connect the <a =
href=3D"file://./pipe/Testpipe">
\\.\pipe\Testpipe</a> in serial mode.<o:p></o:p></p>
<p class=3D"MsoPlainText">No output will be seen on putty.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">But the same works in FreeBSD 12.3 and Putty gets=
 the output from EFI loader for both x86 and arm64.<o:p></o:p></p>
<p class=3D"MsoPlainText">But during kernel booting the console output does=
 not come in Putty, it only comes in vmconnect.exe.
<o:p></o:p></p>
<p class=3D"MsoPlainText">Like below :<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Loading kernel...<o:p></o:p></p>
<p class=3D"MsoPlainText">/boot/kernel/kernel text=3D0x931f24 data=3D0x1874=
50 data=3D0x0+0x2d095e syms=3D[0x8+0x138120+0x8+0x124824]<o:p></o:p></p>
<p class=3D"MsoPlainText">Loading configured modules...<o:p></o:p></p>
<p class=3D"MsoPlainText">can't find '/boot/entropy'<o:p></o:p></p>
<p class=3D"MsoPlainText">can't find '/etc/hostid'<o:p></o:p></p>
<p class=3D"MsoPlainText">No valid device tree blob found!<o:p></o:p></p>
<p class=3D"MsoPlainText">WARNING! Trying to fire up the kernel, but no dev=
ice tree blob found!<o:p></o:p></p>
<p class=3D"MsoPlainText">EFI framebuffer information:<o:p></o:p></p>
<p class=3D"MsoPlainText">addr, size&nbsp;&nbsp;&nbsp;&nbsp; 0xe0000000, 0x=
800000<o:p></o:p></p>
<p class=3D"MsoPlainText">dimensions&nbsp;&nbsp;&nbsp;&nbsp; 1024 x 768<o:p=
></o:p></p>
<p class=3D"MsoPlainText">stride&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; 1024<o:p></o:p></p>
<p class=3D"MsoPlainText">masks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 &lt;&lt;&lt;&lt;<=
o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">After this log is not coming in Putty in 12.3 for=
 both x86 and arm64.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Regards,<o:p></o:p></p>
<p class=3D"MsoPlainText">Souradeep<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAP153MB05368451926D7372E9B44EC3CCDD9>