Date: Mon, 30 May 2022 09:30:43 +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: <PSAP153MB05367C6802D76EC6BA352431CCDD9@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
--_000_PSAP153MB05367C6802D76EC6BA352431CCDD9PSAP153MB0536APCP_ 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. --_000_PSAP153MB05367C6802D76EC6BA352431CCDD9PSAP153MB0536APCP_ 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.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;} span.PlainTextChar {mso-style-name:"Plain Text Char"; mso-style-priority:99; mso-style-link:"Plain Text"; font-family:"Calibri",sans-serif;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} @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> </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> </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 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; Set-VMComPort -VMName <vm_name= > -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; Set-VMFirmware -VMName <VM nam= e> --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> </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> </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 0xe0000000, 0x= 800000<o:p></o:p></p> <p class=3D"MsoPlainText">dimensions 1024 x 768<o:p= ></o:p></p> <p class=3D"MsoPlainText">stride &= nbsp; 1024<o:p></o:p></p> <p class=3D"MsoPlainText">masks &n= bsp; 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 <<<<<= o:p></o:p></p> <p class=3D"MsoPlainText"><o:p> </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> </o:p></p> <p class=3D"MsoPlainText"><o:p> </o:p></p> <p class=3D"MsoPlainText"><o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> </body> </html> --_000_PSAP153MB05367C6802D76EC6BA352431CCDD9PSAP153MB0536APCP_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAP153MB05367C6802D76EC6BA352431CCDD9>