From nobody Mon May 30 09:31:29 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 396381B58280 for ; Mon, 30 May 2022 09:31:38 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2131.outbound.protection.outlook.com [40.107.255.131]) (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 4LBVXn2TZyz4flq; Mon, 30 May 2022 09:31:37 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FICx/Qnw/U1DLV/mQux33tuW9q10chgRtzekqZeKCtlPWraW8kkThGu2h6seZBNuL/2Q7IDzBdOs0xsqGniXxtNzV7+/tIjujd+xx01+m6I58SkxepNtGvFAJ1TeA7wPU1eZuNLe4+7X1lb4s1S8XqV6JwN9q/R5slTiZDJOjeaHD7wHyGMxKtuM2RkJ7QDpKbYyKKWfzNjcPEuj4EDwYjEbfadoKy+I5su/wEXfDR/wdY9ZTnkJYFpXFsJAIQwibmPM6POEQVQZWYWEb53aaabUE30DTVT044p+e5tPMerPOOzZmj4/zIWwR83wEWmUbIqtkMhnLEmf6FYpE4fOIw== 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=D5zNidKRkI+jAnXSRd5VFaS9aW8X93+mO/qpNhEjGpU=; b=ZBLsAjOHGbBuEGPAS3FJec6N7irF6q7HUEBNohjBm8Ff164NkgvgFVUCZLpB9MuWj2VEoHE/cEaa4JQFvpn7+qeeWGbLZiAOwMhaYFeHCT7M+PZ2NHH8ULWD23XiqWgAbTYOhRBYk34WmeNERwZZGuIZNDN8R1+NgWxkKiXK4cEwUSfw3ZZO1r7pt0ApwnU7OQsA4IFy68i8jhiBM4CeldUAxY8HQ4pKRe8G0DEbpxib90Rvvo2vrwWSZ48NsXMRCIMPPFwxNfG4cz2TyJ9S/DJN74czs9cFC1nMOPdfoE4sJXsk8T8FRVvXLtbarRmoFnd8Gp995pufqQRpCbuAMg== 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=D5zNidKRkI+jAnXSRd5VFaS9aW8X93+mO/qpNhEjGpU=; b=d+ARuWx5Dcx/YZGW9MVX6D13VhdQKHeQxuBKsi5t8M+vO4ffuQPXYknETLgurVaXH9SzSAj5PwR5PE/ipm2bvCdbvK9X8/wcRp+4rlDh9/H8OX4SaWF/fCtBu+2+SE8H23AFrkJp7Bo8nVwiSddhmitLSfVYxzSSLq8Fi00ZuQs= 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:31:29 +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:31:29 +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//YDTTLGpdoefjTg5UQAASE4A Date: Mon, 30 May 2022 09:31:29 +0000 Message-ID: References: In-Reply-To: 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: 2eb0fe9a-9229-4a7b-d2ea-08da421f2ce2 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: /BsoobyWtGSz3HOA3pFO70yDvF3An8hu8dFTGHXqPNQg8NuGufO69mpDV26IMOP0DIctfNOpZiyysMeBnz+Iu3YaTeBhtiLB8uzEoQ9AyEPlj9S9ZDNffmyapyuVPQH1RtuazDUHO1UHLYTTClrHsMp/vbkMveT5YLODoG8oCd5WXuYq1Tq6Ouh76jWKLjZ5OBRlM+v797esdb5nCSDp7JaLNPvo67+S7+hhhnJ7U+8yAEl+VX7NnNpZhAbAevOtMLFvee+8tSupi6eaWi2tnRlheWVHrz63VU7iYfxrBUZ5J8wMuLTip8D5/j/DBDE9wru856JOB/TgfAcabhtBt41nEJaZC6uIYgkoW+1UZw8wTLBYGGeW/Mldwu8iZ3p8ruKS7+ydMWYF4kqPU3oiUX6PHvwmmRUr7cCdT/9zDW8KBbb3Z6n5vMwt1gKqrMikCZyR5vJkPrfKB9IY9JfOxUzP8/bXpxAULB1SeSNmNqTTvG+jCF9Zdq2QFYTYG/Ve2oBwy7AIu86J8ozDpDoruImdWkO1JCiMNmue7hWIZJPFvyXn5bciFqLeiU9o6yqn79oBjq44QAKfTTiYVdzitymnc5LBz316pOFQr49CTPc62agRZI12kJFRxT31F9DL+LfGCmrMZnjp7TiN+wTJ05CZHSLMFpRe+3rEGrMvGRIFuHRixc4GpzzEOThkojRglPr3BVtMyeSreoyFxeV7CYlDVixlnv9cHJ6kCJJzwNRuOlzYy8kp3cikh1T7ss0myIw+0FMEOz+LObFl3b0I4PJvTHifb64RImxT4LFX4eU= 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)(2940100002)(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?LM0zmluLKy5t1K6Y79f+Xz979ZEZGy+wXbMtVARv0y9LbEDy/br2SYuaT6sl?= =?us-ascii?Q?Jqxl6kTJXWojMfTPJ3VDbI8zsgtjNWDq7fqmO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ii?Q?chPjsDypmDyV1k9pDmTv3wDcFPAb2Z2kEoEm9b/hBJeA1OkF0M2x/zWf/ftL?= =?us-ascii?Q?Rce0pkzQpCw1gOUBH7Bkn0j5aIqNQ6I+R18+QamSn8kCBojbhXOI78kBKCSy?= =?us-ascii?Q?wqoVTdQlYxi/MB6R3l2bkJr56UntjAinLfEGTBQBxZz7qRlmuHHT69HXWvoY?= =?us-ascii?Q?KDkFPzVaAZ8kk7V0MlbFu/WCWWD9ezlZy1fvui1ebkVQ0AfQmv1vBmFQuZew?= =?us-ascii?Q?qMaUocAkL4tnmfk45XsW4DOK5/3ejKQM0owlQoRjpAwYWPnrk4Wxmh/y1YBl?= =?us-ascii?Q?IYCqxldHFjG0Qj8AMHUcp89g+5/WDHnaqjLtX9DyIvt3Jc8E4G6oCUJYS2l9?= =?us-ascii?Q?islDnKiGAdImoWqBJwH22DSaClros1xhIrzh6CijlhzUA9M6lfyO29K7xg0T?= =?us-ascii?Q?6h5NPzWh9E3JRAsawLPhDkQ5nz9M4vURpW89hJoCwHl3CCAIHOL+K2SYqrDp?= =?us-ascii?Q?hShRGNKryMEURiVMwm4hVxVscQFCGkf2Lg7CsN4+WvrKPi74Dw4pzZI6Z37A?= =?us-ascii?Q?HDQkWdf96mmuPsi1BzccAIuSijLLz66ytGzHHEnGqaiCpyzXKqWjEamPB4o/?= =?us-ascii?Q?bdwcwOB58cXvGSKnUBTwlH/j+gfpS+BP9kJ3Lrn035Ili/q3t+7BhmDzzWfE?= =?us-ascii?Q?wrBlYP534P4MShBMHvf6W9isz/MCW81Lky8EW1cHCqm0KwZXH87ODTTRv4pw?= =?us-ascii?Q?EDTz60izP5PwbUaW9EtCIldUTSE=3D?= Content-Type: multipart/alternative; boundary="_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_" 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: 2eb0fe9a-9229-4a7b-d2ea-08da421f2ce2 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2022 09:31:29.0672 (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: aRYbCSipxHmdhUAcvY1ORO1FMM2fHINTPJcUdbI2Qqih6LK3xc8LSuKlNWH0Gjl/B4B8qnX2x/G4U5w8RatNXClxhKcMPrRlVotFCDBOASQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAP153MB0440 X-Rspamd-Queue-Id: 4LBVXn2TZyz4flq X-Spamd-Bar: --------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=microsoft.com header.s=selector2 header.b=d+ARuWx5; 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.131 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]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; 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.131:from]; DWL_DNSWL_MED(-2.00)[microsoft.com:dkim]; MLMMJ_DEST(0.00)[freebsd-arm]; NEURAL_HAM_SHORT(-1.00)[-1.000]; WHITELIST_SPF_DKIM(-3.00)[microsoft.com:d:+,microsoft.com:s:+]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.255.131:from] X-ThisMailContainsUnwantedMimeParts: N --_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_ 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. Regards, Souradeep --_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_ 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.

 

 

Regards,

Souradeep

 

--_000_PSAP153MB05368451926D7372E9B44EC3CCDD9PSAP153MB0536APCP_--