From nobody Wed Jun 01 20:41:01 2022 X-Original-To: freebsd-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 362B51B45BB5 for ; Wed, 1 Jun 2022 20:41:13 +0000 (UTC) (envelope-from irontree043111@gmail.com) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 4LD1JS1Zdzz4gCv; Wed, 1 Jun 2022 20:41:12 +0000 (UTC) (envelope-from irontree043111@gmail.com) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-30c1b401711so31897487b3.2; Wed, 01 Jun 2022 13:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0K13bUEJp5A2LsJiiWp7WqeTr2CrJccE2SojA7sSP+w=; b=RmnCDf18AmoRBHsIPzsosN4OWRo6syD35ZvnjinQdEzyvN1JBbFI5PQvo08u+GapUx jWHbSZcGFA2jSShtHbPw93iVlJjULp19LAfFmx40e64q28fi6G/4AF6Rto114BDP4IpZ x9rVPvfOVAOkxVrQeNBtNMFDN/UwISMyIR4aDc1278mGIhpqs/0s9IJ9LAhFZISCDl95 41VWD6FlEjkZ81kWHngZvAtwT+hay8n/BeCv9ZxXLxV0LjPbUV219cQZ/fbagpyHw+R0 rdQhaGcxOTphBGvgSV2L0R6FURQ54yqsnhSQ+sOiCe2yTil61tvSDhF/nLjwjFOdw1og uRUQ== 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=0K13bUEJp5A2LsJiiWp7WqeTr2CrJccE2SojA7sSP+w=; b=IZoQpHQOQLZcuDMUzQnlj+Ab2jYUrXCdxA7iSxNbjZTjeKGNa78c2gwIQsYK4ly/Dk 8YJzsWZUwtrS6DVsPp7E/s+0jUPVJnCej3bGLYQ2PwDsl4PFL9x8N/YLJjIVYOKFT2QV nzJXp8jgMffkWCVcybBcimJ2FuuI6D36gJVMWTPlHUjAEt2leeligmA7slC39GG86mH1 qd+3hjlH8AxVoXxbqVed7Uwq8TcOSwmE0kfb1COJr1ngpdsXViDNqGXKKCdB4bp8CBzq u5qYpaZlRTeY4zcW/mRx0CRHKvoU5JmPGWb2vd0TnwOdI38MtKDwosoVSrTRJ5LQAQMs ztTw== X-Gm-Message-State: AOAM530dj+7Vm2AP1yen0p1e5xGFYE2SBS66O4SkG8P1qmNR0d69Qjfs gWasIFefigTgZjiIRRb5ZZ2AbXpkgpZoeRlye32QRWQMuNjFyQ== X-Google-Smtp-Source: ABdhPJw8fh8tKpm5d8YGe0qaWtKror1efu8mQPKPiIHBM4FPPMMy9lFYoi6+uSoRFX3YtdvzQtL/XgXybWN3EMypRZI= X-Received: by 2002:a81:6ad4:0:b0:30c:45af:ae3f with SMTP id f203-20020a816ad4000000b0030c45afae3fmr1553921ywc.55.1654116071603; Wed, 01 Jun 2022 13:41:11 -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: Robert Montano Date: Wed, 1 Jun 2022 13:41:01 -0700 Message-ID: Subject: Re: serial console and comconsole in FreeBSD arm64 To: Souradeep Chakrabarti Cc: "freebsd-arm@FreeBSD.org" , "tsoome@FreeBSD.org" , Wei Hu Content-Type: multipart/alternative; boundary="000000000000dd817c05e068e8c4" X-Rspamd-Queue-Id: 4LD1JS1Zdzz4gCv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RmnCDf18; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of irontree043111@gmail.com designates 2607:f8b0:4864:20::1134 as permitted sender) smtp.mailfrom=irontree043111@gmail.com X-Spamd-Result: default: False [-3.38 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1134:from]; NEURAL_HAM_SHORT(-0.38)[-0.380]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --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 -number 1 -path > \\.\pipe\Testpipe > > 2) In another Powershell with Admin privilege run following: > > Set-VMFirmware -VMName --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
I think I'm sunk =F0=9F=98=82

On Mon, May 30, 2022, 2:= 31 AM Souradeep Chakrabarti <schakrabarti@microsoft.com> wrote:

Hi,

=C2=A0

I am trying to access virtual serial console via Put= ty and in 13.0 it is not working

for both x86 and arm64.

=C2=A0

It is very easy to reproduc= e:

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

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

=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 \\.\pipe\Testpipe

2) In another Powershell wi= th Admin privilege run following:

=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

3) start the VM and open pu= tty to connect the \\.\pipe\Testpipe in serial mode.

No output will be seen on p= utty.

=C2=A0

But the same works in FreeB= SD 12.3 and Putty gets the output from EFI loader for both x86 and arm64.

But during kernel booting t= he console output does not come in Putty, it only comes in vmconnect.exe.

Like below :<= /p>

=C2=A0

Loading kernel...=

/boot/kernel/kernel text=3D= 0x931f24 data=3D0x187450 data=3D0x0+0x2d095e syms=3D[0x8+0x138120+0x8+0x124= 824]

Loading configured modules.= ..

can't find '/boot/e= ntropy'

can't find '/etc/ho= stid'

No valid device tree blob f= ound!

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

EFI framebuffer information= :

addr, size=C2=A0=C2=A0=C2= =A0=C2=A0 0xe0000000, 0x800000

dimensions=C2=A0=C2=A0=C2= =A0=C2=A0 1024 x 768

stride=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 1024

masks=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff0= 00000 <<<<

=C2=A0

After this log is not comin= g in Putty in 12.3 for both x86 and arm64.

=C2=A0

=C2=A0

=C2=A0

--000000000000dd817c05e068e8c4--