From nobody Wed Jun 01 20:40:41 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 914941B45787 for ; Wed, 1 Jun 2022 20:40:53 +0000 (UTC) (envelope-from irontree043111@gmail.com) Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) (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 4LD1J44KMvz4fqV; Wed, 1 Jun 2022 20:40:52 +0000 (UTC) (envelope-from irontree043111@gmail.com) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-2f83983782fso31682427b3.6; Wed, 01 Jun 2022 13:40:52 -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=KBrff/MWTdeYkZoy9ETOOPG4n9Q6jljkrivUOFsBV3g=; b=aaKflpw3fWyANSNs/ppL3H8EU4MSzJN43xzTWFQFaEBKp7/DSgDT1YJKTS+njJTwnM AD35aXFek/avjd8p/j8JN5H7CoR1KXqpluSMQILvK2pAF+fskad3yS0Y0rMbzItyqcaR 4hmfJgNU/uIExG7nA8EibmrJGk8Hqg/SRQvFPuw/DxZCVFYDhyVRh0a6KCXemAQDcPry 7/7+QWUzN981ZGAPS/Iiijd/ZtnQ1fXvLOnJi0CaP2qYmLV3JqQfQrHm9fEclQMGfSm0 /VnaNE7hHmsKHPCNIo+LcOMjSLl4F59n3Fmp37504R5PDB+kVJufTKPCEfoL5TIQNvE9 Ib0w== 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=KBrff/MWTdeYkZoy9ETOOPG4n9Q6jljkrivUOFsBV3g=; b=immXL3dfHxf2oS2nP5K39jQR1WImikL5pQetoP9YSqpDHlSfN2d3gxwtDjdU7Mc31J Zv+8IsaECn4/ndwDd9jINWS62Xsa/x2NW25D9+9cZjaKdEwul/QdfLxyO4eqBL3efGZx FkgFJ7yLsWERhd1w34Ki2p9JXsXLsnTOKLSWi5jWLcrNCHM6EKLvvEZ/MayhYn6ZDuh2 MP1dv41EAXDZTxRDAI0I/wtKvj1HObGSNhovb9MCowuscotQf6PmjxFTfwB0ulPP3lBz 48VYnFI0oX263T9nC671ZtUmd+WPsfqLe2siHaQGhnIZ8bG0L1nEFaFxRCKsIgj7T9Rf 3WFQ== X-Gm-Message-State: AOAM531kM1pufcYc57uJEPFQ0sGmq0OXXerOMYqDs3zgyG38xIJk1ncL oVabi5E1SaqKEQS5W0sw5r0FREwR3p8xawI+1hH4xApp6rXywg== X-Google-Smtp-Source: ABdhPJwdvBcEghFdtMztQAO8x4FYQj15N6w87AIQP9A/eLo7ng6AGoN5MZc5deRGnOZSQLDdwTWz678GsNFV/1Gbv8w= X-Received: by 2002:a81:1989:0:b0:30c:214e:f0ea with SMTP id 131-20020a811989000000b0030c214ef0eamr1550514ywz.517.1654116052127; Wed, 01 Jun 2022 13:40:52 -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:40:41 -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="000000000000b452f705e068e766" X-Rspamd-Queue-Id: 4LD1J44KMvz4fqV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=aaKflpw3; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of irontree043111@gmail.com designates 2607:f8b0:4864:20::112f 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::112f:from]; NEURAL_HAM_SHORT(-0.38)[-0.383]; 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 --000000000000b452f705e068e766 Content-Type: text/plain; charset="UTF-8" Thx for the help 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=0x931f24 data=0x187450 data=0x0+0x2d095e > syms=[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. > > > > > > > --000000000000b452f705e068e766 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thx for the help

On Mon, May 30, 2022, 2:31 AM Souradeep C= hakrabarti <schakrabarti@m= icrosoft.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

--000000000000b452f705e068e766--