Date: Wed, 1 Jun 2022 13:41:01 -0700 From: Robert Montano <irontree043111@gmail.com> To: Souradeep Chakrabarti <schakrabarti@microsoft.com> Cc: "freebsd-arm@FreeBSD.org" <freebsd-arm@freebsd.org>, "tsoome@FreeBSD.org" <tsoome@freebsd.org>, Wei Hu <weh@microsoft.com> Subject: Re: serial console and comconsole in FreeBSD arm64 Message-ID: <CABzjiveUBJMmeKKmwDo4S0z62uTHbN0ON-PzEc20Q5mwv=7-8Q@mail.gmail.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
--000000000000dd817c05e068e8c4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think I'm sunk =F0=9F=98=82 On Mon, May 30, 2022, 2:31 AM Souradeep Chakrabarti < schakrabarti@microsoft.com> wrote: > Hi, > > > > I am trying to access virtual serial console via Putty and in 13.0 it is > not 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\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 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 > loader for both x86 and arm64. > > But during kernel booting the console output does not come in Putty, it > only comes in vmconnect.exe. > > Like below : > > > > Loading kernel... > > /boot/kernel/kernel text=3D0x931f24 data=3D0x187450 data=3D0x0+0x2d095e > syms=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. > > > > > > > --000000000000dd817c05e068e8c4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I think I'm sunk =F0=9F=98=82</div><br><div class=3D"= gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, May 30, 2022, 2:= 31 AM Souradeep Chakrabarti <<a href=3D"mailto:schakrabarti@microsoft.co= m">schakrabarti@microsoft.com</a>> 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"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:b= reak-word"> <div class=3D"m_-3521915191223256035WordSection1"> <p class=3D"MsoNormal">Hi,<u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal">I am trying to access virtual serial console via Put= ty and in 13.0 it is not working <u></u><u></u></p> <p class=3D"MsoNormal">for both x86 and arm64.<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u>=C2=A0<u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">It is very easy to reproduc= e:<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">1) In Windows Hyper-V set a= =C2=A0 FreeBSD 13.0 VM<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">2) Use Powershell in Admin = privileged mode and run following:<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Set-VMComPo= rt -VMName <vm_name> -number 1 -path <a rel=3D"noreferrer">\\.\pipe\Testpipe</a><u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">2) In another Powershell wi= th Admin privilege run following:<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Set-VMFirmw= are -VMName <VM name>=C2=A0 --ConsoleMode COM1<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">3) start the VM and open pu= tty to connect the <a rel=3D"noreferrer"> \\.\pipe\Testpipe</a> in serial mode.<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">No output will be seen on p= utty.<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u>=C2=A0<u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">But the same works in FreeB= SD 12.3 and Putty gets the output from EFI loader for both x86 and arm64.<u= ></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">But during kernel booting t= he console output does not come in Putty, it only comes in vmconnect.exe. <u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">Like below :<u></u><u></u><= /p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u>=C2=A0<u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">Loading kernel...<u></u><u>= </u></p> <p class=3D"m_-3521915191223256035MsoPlainText">/boot/kernel/kernel text=3D= 0x931f24 data=3D0x187450 data=3D0x0+0x2d095e syms=3D[0x8+0x138120+0x8+0x124= 824]<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">Loading configured modules.= ..<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">can't find '/boot/e= ntropy'<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">can't find '/etc/ho= stid'<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">No valid device tree blob f= ound!<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">WARNING! Trying to fire up = the kernel, but no device tree blob found!<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">EFI framebuffer information= :<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">addr, size=C2=A0=C2=A0=C2= =A0=C2=A0 0xe0000000, 0x800000<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">dimensions=C2=A0=C2=A0=C2= =A0=C2=A0 1024 x 768<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">stride=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 1024<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">masks=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff0= 00000 <<<<<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u>=C2=A0<u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText">After this log is not comin= g in Putty in 12.3 for both x86 and arm64.<u></u><u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u>=C2=A0<u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u>=C2=A0<u></u></p> <p class=3D"m_-3521915191223256035MsoPlainText"><u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> </div> </div> </blockquote></div> --000000000000dd817c05e068e8c4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzjiveUBJMmeKKmwDo4S0z62uTHbN0ON-PzEc20Q5mwv=7-8Q>