From nobody Mon May 30 09:30:43 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 C18F61B578DC for ; Mon, 30 May 2022 09:30:54 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2133.outbound.protection.outlook.com [40.107.255.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LBVWx4kzHz4f3S; Mon, 30 May 2022 09:30:53 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dBnQ+ZS5z9gOD/4zXOPqb6W38yQFb+qajz1YYZWfHrLal7gZr8dnCuJ5SlmcRLseXnxYlw1uzAmzEdX0x2SjmufHyy+iUwTf3TOvCqgniYswbb/oF/iA6rDqkfP72TITpwmEy2jjzZy4HySDb6uYIRLuxYUO4ph3b+jnz3vArACv94zzSSAre81xT6y/4dPn7uSnWCGUVzLXRM0rnblpntdENQk5S96rRaux714KM0BRO6NvCm59GRvSzzU3NsW66+bg6JmQ5CgDGA1lMPJItpengPrhpn6mNWS3JPgUMfWLnPEenZuMN5KduGjO9hvDHA2Ktr7kDGAU3ye99iLjLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6wT88MKKic4Y3AURnrHmUITwDP9srEXkSWeMkTDXRcQ=; b=auXR2B88l1q3fQHMeAW0BPEGO/PFwnNDWR4JViLNkx7pJUWsAxVEQByFhfgbinJ5WIAllCz8QZm/FxqurQAjjw72WRBeB7SLDkijGj5YcinmRLK0hAjqBKMbz9e321Oc5LyW+U24wF/1rKmkok7b3nbppItxmX0cexbEv3RYLVJpmojyw6+8wC+biRHpt8EX7C+DqHdhzdiXngZYdOdMybOn5gRY1t+AWiZtyOEtH1mRkC5R0Otn9pCIO5tNjosM6lIt1bAXWHsdQVns2DwB8dTYHUT2h/M6QcebraX3zxyatedgL1Aj4+Ca2A7xuAorLuIiUb02qzHLS2WSfBmopg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6wT88MKKic4Y3AURnrHmUITwDP9srEXkSWeMkTDXRcQ=; b=M/IATXyNOt9oceJAS6PU4o6vnH7kOsbaSTwmu+g8nA18pDtoC18L65fp5EPhErt/qmh5hlJhLc6qcB2zzbl07diwXg9s59iBSRMpOvppIjbIScPnxU7+pJp/O0Y/4s6dzoRi/MZt8JLRMRRbNRC77BoRxJZ37TKZZSUDJY1O3V8= Received: from PSAP153MB0536.APCP153.PROD.OUTLOOK.COM (2603:1096:301:75::14) by PSAP153MB0440.APCP153.PROD.OUTLOOK.COM (2603:1096:301:35::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.1; Mon, 30 May 2022 09:30:44 +0000 Received: from PSAP153MB0536.APCP153.PROD.OUTLOOK.COM ([fe80::b1b6:de83:b69f:2826]) by PSAP153MB0536.APCP153.PROD.OUTLOOK.COM ([fe80::b1b6:de83:b69f:2826%6]) with mapi id 15.20.5332.001; Mon, 30 May 2022 09:30:44 +0000 From: Souradeep Chakrabarti To: "freebsd-arm@FreeBSD.org" , "tsoome@FreeBSD.org" CC: Wei Hu Subject: serial console and comconsole in FreeBSD arm64 Thread-Topic: serial console and comconsole in FreeBSD arm64 Thread-Index: Adh0Btw+eCL//YDTTLGpdoefjTg5UQ== Date: Mon, 30 May 2022 09:30:43 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=ac0429d8-4397-474c-ac20-458e25c347e8;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-05-30T09:20:04Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8309434c-e038-4b18-4c9f-08da421f11ff x-ms-traffictypediagnostic: PSAP153MB0440:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4tBrSVV6nlzINm85grKdMJnLtGEoL+l4qPlq2drA7uuU8QKiNFIGQ5AEpjje5i/35deI/k3sDGLKkqTcmQSTp1HnpNyBp9W/HViuaJaQDXJW3kCKo+etqry77aURfQEy6+Ui1Ml6t70IONseXj/DYU+09g6JRX8CtU59EvxRaQi2Yp/YzojC3/LBhF7ZRMGQmkSpdU19TukmwRIX3VZsw0gMBGYPwkUsiYlTa+KTupU4YITI8fIdnjytdOwxC6HscWCNXxZ7bHWekp/Ixl68L8cIOz7JfJVJCHgqOMfWDXRoNJdVBiY2/mhZHO02MIEPDvkof4lH065W/qXZ7zV+uQB8gZz5+/DqUfVbz4uXkof5xQwshlbL5IUKlXlKvfSmasS4AZxzRrs9md8hHJjCnIisyFmm+Ml5gjH/ZAmffq18wpM54rOH9x8dBwrDnpGxy0EQqxQtzcrkVKA2MjxglSGJirjkKgkC9rF6v9MG5ENPGHE7sYiDYx908HR04hilsLkItFYVG6U3anUJiZTCQxkTYNpXSStzdci2t1ZNmTe5Xwzauu3pp2eA2Nbyu/jZxfqJuY3ubi7oBuqlxNrYjmRHIqjLaloc2pLf5de3pkXwW5rkIW7a+5wUzaR7wxWj5hkGhz5RTJLNrvoJYVVXjVWTsscUbOacXehg8v4svEU9uG7Th2JW9ny8c/TKX4t8fRzjRNUH3MdyWQ5kCikA2x/JVBc61tTNg0CtpkhnqJDwfKB1sEp6e8phUPEsdShF0T3yEhnjmR0RyZo7sDhXeZi/n7oAUwQcQIUrC1Un0As= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PSAP153MB0536.APCP153.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(451199009)(83380400001)(4326008)(110136005)(107886003)(38100700002)(186003)(66476007)(76116006)(64756008)(66446008)(66556008)(316002)(82960400001)(38070700005)(82950400001)(66946007)(8676002)(10290500003)(450100002)(9326002)(52536014)(2906002)(86362001)(8990500004)(9686003)(33656002)(508600001)(8936002)(6506007)(7696005)(5660300002)(122000001)(26005)(71200400001)(55016003)(460985005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xKgAGSEtJitdjtAHKStEI6FrQf5ZEMM4Ef+ywdbQoZkvH+1GUy/hdaDxsJBJ?= =?us-ascii?Q?b9Qtf9hHrRzPx1qMr233NkVlj0EZh1aM94HYZ1hf19Q7N/iyrTyd9tg1Q37s?= =?us-ascii?Q?bWHArlklX83CQoHj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ck+3vd?= =?us-ascii?Q?RaBzEQpNp2YaY41hhjXjmrxghWE73IB+bIbIGENl9yhkpyeb+z3+3uoL3S3u?= =?us-ascii?Q?W+FYnkrXoByfAd+zWSw0oaeV/TuJU88YKe9R+kIX4lW5F4EPHWms8+kECbGJ?= =?us-ascii?Q?epvNXsc/82s/6197uaJo71ljBJ4x1zvSU0q4UgI07a3I2PBe1X7+YhKhgSsX?= =?us-ascii?Q?eFTAEqlAjHmNXbA8Mv6mrJoFleBMtjPladEBsczVZ0+P3bE/E5baGyy6EVOt?= =?us-ascii?Q?r4yNAqScmGyW+DfKWtWdqDpuD3Hr6bdzsX+ZzWEmKpgOBGsaqYlvh9e/jz6t?= =?us-ascii?Q?UmU+2fHRBi4jr6liRMv2EU9315uJQoUL2jlnbJvrl94V20+aTkJn9gDHM5l9?= =?us-ascii?Q?h01OdzMANCoPahbTmz48stYB5bv2rWu4TkJHVJ1YvwGEUnpbL9aBToyDSfeV?= =?us-ascii?Q?u2j1hzEjLnBBzLvT/0FH0ufKW+62tWgDr5bno+/R7Fm0W9XVMqJezlw33jRh?= =?us-ascii?Q?HWzTWmeyNMKzzMRWF21ECCGQzxtO+6FKoF51WWv9YfFVs7pWf4nZ0eiiTbHw?= =?us-ascii?Q?1jNOV9nQqZ8M6aLxuzaLvDBg1WLMd71sIN9Hq8bTNfu/vf9Ooe+a7JaBtaXF?= =?us-ascii?Q?Wz6yRvNAqxurNmcFDfuQ6tsKQwKeLyxZq+mkS4//D8xtkysnwl65hMwq0Wyf?= =?us-ascii?Q?7UZHMcAnnpdAJTD41K9sQVkO7rw=3D?= Content-Type: multipart/alternative; boundary="_000_PSAP153MB05367C6802D76EC6BA352431CCDD9PSAP153MB0536APCP_" 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 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PSAP153MB0536.APCP153.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 8309434c-e038-4b18-4c9f-08da421f11ff X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2022 09:30:43.9084 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LS4F5uuJfzoK44dTDTrOwFBF/K6bAdvb/lh/5adC29HDLA0As/wVayF7FU0/lqaz6Bf7KONX3Wbds3aFq9k+24sEfnADbrebK+YH5auN7kw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAP153MB0440 X-Rspamd-Queue-Id: 4LBVWx4kzHz4f3S X-Spamd-Bar: --------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=microsoft.com header.s=selector2 header.b="M/IATXyN"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=microsoft.com; spf=pass (mx1.freebsd.org: domain of schakrabarti@microsoft.com designates 40.107.255.133 as permitted sender) smtp.mailfrom=schakrabarti@microsoft.com X-Spamd-Result: default: False [-10.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[microsoft.com:s=selector2]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.255.133:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_MED(-2.00)[microsoft.com:dkim]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[microsoft.com:+]; DMARC_POLICY_ALLOW(-0.50)[microsoft.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[40.107.255.133:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; WHITELIST_SPF_DKIM(-3.00)[microsoft.com:d:+,microsoft.com:s:+] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 7044 Lines: 205 --_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 -number 1 -path \\.\pipe\Te= stpipe 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 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

Hi,

 

I am trying to access virtual serial console via Put= ty 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 ru= n following:

        &= nbsp;       Set-VMComPort -VMName <vm_name= > -number 1 -path \\.\pipe\Testpipe

2) In another Powershell with Admin privilege run= following:

        &= nbsp;       Set-VMFirmware -VMName <VM nam= e>  --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=3D0x1874= 50 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 dev= ice tree blob found!

EFI framebuffer information:

addr, size     0xe0000000, 0x= 800000

dimensions     1024 x 768

stride       &= nbsp; 1024

masks       &n= bsp;  0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 <<<<<= o:p>

 

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

 

 

 

--_000_PSAP153MB05367C6802D76EC6BA352431CCDD9PSAP153MB0536APCP_--