Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2020 15:40:26 +0100
From:      Andrea Brancatelli <abrancatelli@schema31.it>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        Andrea Brancatelli via freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: FreeBSD aarch64 on Apple M1 VM
Message-ID:  <a7caf1d2cc65246ab2803808bcf0818c@schema31.it>
In-Reply-To: <1465195361.7086.1609246396015@localhost>
References:  <1465195361.7086.1609246396015@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-12-29 13:53, Ronald Klop wrote:

> 12.2 gets quite far.
> In 12.2 type ctrl-t while it hangs to see what it is doing or what it is waiting for.
> And post the outcome here.
> 
> Regards,
> Ronald.
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"

Lowering the Virtual CPUs to 2 (it was 4 before) and increasing memory
from 2G to 5G got me to this point: 

https://www.dropbox.com/s/84m48sgdguh6tac/Schermata%202020-12-29%20alle%2015.33.45.png?dl=0


It's not hung now, it's just stuck into route since 1100 seconds... I'll
wait some more but I have some doubts it will go on... 

---

Andrea Brancatelli
From owner-freebsd-arm@freebsd.org  Tue Dec 29 14:47:28 2020
Return-Path: <owner-freebsd-arm@freebsd.org>
Delivered-To: freebsd-arm@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 986F24C1740
 for <freebsd-arm@mailman.nyi.freebsd.org>;
 Tue, 29 Dec 2020 14:47:28 +0000 (UTC)
 (envelope-from abrancatelli@schema31.it)
Received: from stricnina.schema31.it (stricnina.schema31.it
 [IPv6:2001:470:28:12b::99])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "stricnina.roma.schema31.it",
 Issuer "stricnina.roma.schema31.it" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D4y1q2MBhz4fjd
 for <freebsd-arm@freebsd.org>; Tue, 29 Dec 2020 14:47:26 +0000 (UTC)
 (envelope-from abrancatelli@schema31.it)
Received: from smtp.schema31.it (localhost [127.0.0.1])
 by stricnina.roma.schema31.it (8.15.2/8.15.2) with ESMTP id 0BTElP2i003215
 for <freebsd-arm@freebsd.org>; Tue, 29 Dec 2020 15:47:25 +0100 (CET)
 (envelope-from abrancatelli@schema31.it)
MIME-Version: 1.0
Date: Tue, 29 Dec 2020 15:47:19 +0100
From: Andrea Brancatelli <abrancatelli@schema31.it>
To: freebsd-arm@freebsd.org
Subject: [Partially Solved] FreeBSD aarch64 on Apple M1 VM
Organization: Schema31 s.r.l.
In-Reply-To: <a7caf1d2cc65246ab2803808bcf0818c@schema31.it>
References: <1465195361.7086.1609246396015@localhost>
 <a7caf1d2cc65246ab2803808bcf0818c@schema31.it>
Message-ID: <3e4afefe6a004bd2730adc42ea58df6b@schema31.it>
X-Sender: abrancatelli@schema31.it
User-Agent: Roundcube Webmail/1.3.15
X-Rspamd-Queue-Id: 4D4y1q2MBhz4fjd
X-Spamd-Bar: ----
X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[];
 RBL_DBL_DONT_QUERY_IPS(0.00)[2001:470:28:12b::99:from];
 R_DKIM_ALLOW(-0.20)[schema31.it:s=gCloud];
 MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[];
 R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 MIME_GOOD(-0.10)[multipart/alternative,text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org];
 TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1];
 HAS_ORG_HEADER(0.00)[];
 SPAMHAUS_ZRD(0.00)[2001:470:28:12b::99:from:127.0.2.255];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 DKIM_TRACE(0.00)[schema31.it:+];
 DMARC_POLICY_ALLOW(-0.50)[schema31.it,quarantine];
 NEURAL_HAM_SHORT(-1.00)[-1.000];
 NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[];
 MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[];
 ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US];
 RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm]
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/>;
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Dec 2020 14:47:28 -0000

Hello everybody. 

I was able to correctly start the installer with 1 CPU and 4 GB Ram. So
the problem seems to be related to multi-core support. 

Now I can't see any network interface... but that's another story...
I'll do some investigations.

---

Andrea Brancatelli
From owner-freebsd-arm@freebsd.org  Tue Dec 29 15:44:50 2020
Return-Path: <owner-freebsd-arm@freebsd.org>
Delivered-To: freebsd-arm@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id BB61E4C3077
 for <freebsd-arm@mailman.nyi.freebsd.org>;
 Tue, 29 Dec 2020 15:44:50 +0000 (UTC)
 (envelope-from abrancatelli@schema31.it)
Received: from stricnina.schema31.it (stricnina.schema31.it
 [IPv6:2001:470:28:12b::99])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "stricnina.roma.schema31.it",
 Issuer "stricnina.roma.schema31.it" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D4zJ13j99z4kP4
 for <freebsd-arm@freebsd.org>; Tue, 29 Dec 2020 15:44:49 +0000 (UTC)
 (envelope-from abrancatelli@schema31.it)
Received: from smtp.schema31.it (localhost [127.0.0.1])
 by stricnina.roma.schema31.it (8.15.2/8.15.2) with ESMTP id 0BTFikPv010413
 for <freebsd-arm@freebsd.org>; Tue, 29 Dec 2020 16:44:46 +0100 (CET)
 (envelope-from abrancatelli@schema31.it)
MIME-Version: 1.0
Date: Tue, 29 Dec 2020 16:44:41 +0100
From: Andrea Brancatelli <abrancatelli@schema31.it>
To: freebsd-arm@freebsd.org
Subject: VirtIO-Net not correctly handled
Organization: Schema31 s.r.l.
Message-ID: <43d2a4466c791c6d0d31b099be57ee87@schema31.it>
X-Sender: abrancatelli@schema31.it
User-Agent: Roundcube Webmail/1.3.15
X-Rspamd-Queue-Id: 4D4zJ13j99z4kP4
X-Spamd-Bar: ---
X-Spamd-Result: default: False [-3.72 / 15.00]; MID_RHS_MATCH_FROM(0.00)[];
 RBL_DBL_DONT_QUERY_IPS(0.00)[2001:470:28:12b::99:from];
 R_DKIM_ALLOW(-0.20)[schema31.it:s=gCloud]; ARC_NA(0.00)[];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 R_SPF_ALLOW(-0.20)[+mx];
 MIME_GOOD(-0.10)[multipart/alternative,text/plain];
 TO_DN_NONE(0.00)[];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org];
 RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[];
 SPAMHAUS_ZRD(0.00)[2001:470:28:12b::99:from:127.0.2.255];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 DKIM_TRACE(0.00)[schema31.it:+];
 DMARC_POLICY_ALLOW(-0.50)[schema31.it,quarantine];
 NEURAL_HAM_SHORT(-0.72)[-0.723];
 NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[];
 MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[];
 RCVD_COUNT_TWO(0.00)[2];
 ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US];
 MAILMAN_DEST(0.00)[freebsd-arm]
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/>;
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Dec 2020 15:44:50 -0000

Hello everybody,  

after tuning CPU (1 cpu only) and Ram I was able to do a full install of
FreeBSD 12.2 in a Parallel Desktop VM running on an Apple M1. 

Everything seems quite in order but I can't get the network card to
work. 

Parallel Desktop is presenting a virtio-net card and pciconf is
correctly listing it but the driver doesn't hook to it. 

Here you can see a screenshot of the situation:  

https://www.dropbox.com/s/hv6g8btjm45m0mh/Schermata%202020-12-29%20alle%2016.42.10.png?dl=0


[sorry if I keep posting screenshots but there's no console integration
so I can't copy and paste...] 

Any suggestion on how to get it working or investigate deeper? 

Thanks a lot. 

-- 

Andrea Brancatelli
From owner-freebsd-arm@freebsd.org  Tue Dec 29 18:06:57 2020
Return-Path: <owner-freebsd-arm@freebsd.org>
Delivered-To: freebsd-arm@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 886DB4C6EA4
 for <freebsd-arm@mailman.nyi.freebsd.org>;
 Tue, 29 Dec 2020 18:06:57 +0000 (UTC)
 (envelope-from dan.kotowski@a9development.com)
Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (4096 bits) client-digest SHA256)
 (Client CN "protonmail.com",
 Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D52S0461qz4v7F
 for <freebsd-arm@freebsd.org>; Tue, 29 Dec 2020 18:06:56 +0000 (UTC)
 (envelope-from dan.kotowski@a9development.com)
Date: Tue, 29 Dec 2020 18:06:47 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a9development.com;
 s=protonmail; t=1609265213;
 bh=QsWh0vLfZ3X54w1Dj31sAU3k76uwBw9L2H3ChJgccM0=;
 h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From;
 b=BBtqG83hjIVT+jyvcVPNVMjsZ3HEpp1n65XvEYzKJJTIUJc7vxsZo16fzk1bbp78l
 xT2QYRKlbukQVZB9PXYnN7MgVXDv9jHsI1SlIJ8kv1L9e99Tut1V6nMNb1bSAGHkK/
 qEZq5qAF4D/FVHV4KGWiJXU05ahGowa8bzl0n+hY=
To: Andrea Brancatelli <abrancatelli@schema31.it>
From: Dan Kotowski <dan.kotowski@a9development.com>
Cc: freebsd-arm@freebsd.org
Reply-To: Dan Kotowski <dan.kotowski@a9development.com>
Subject: Re: VirtIO-Net not correctly handled
Message-ID: <nVDdpPYYWzHDor-TZHF43S3Bqyr9vexlNYxqC7tsTkKprs6a2GkfxVrKq-PD7GjzXJLM6Ed_GwxyHubJDXZpL2GaVVpze0N90mwVsbEnqT4=@a9development.com>
In-Reply-To: <43d2a4466c791c6d0d31b099be57ee87@schema31.it>
References: <43d2a4466c791c6d0d31b099be57ee87@schema31.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Rspamd-Queue-Id: 4D52S0461qz4v7F
X-Spamd-Bar: ---
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=a9development.com header.s=protonmail header.b=BBtqG83h;
 dmarc=pass (policy=none) header.from=a9development.com;
 spf=none (mx1.freebsd.org: domain of dan.kotowski@a9development.com has no SPF
 policy when checking 185.70.40.18)
 smtp.mailfrom=dan.kotowski@a9development.com
X-Spamd-Result: default: False [-3.28 / 15.00];
 HAS_REPLYTO(0.00)[dan.kotowski@a9development.com];
 ARC_NA(0.00)[];
 R_DKIM_ALLOW(-0.20)[a9development.com:s=protonmail];
 REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[];
 TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain];
 SPAMHAUS_ZRD(0.00)[185.70.40.18:from:127.0.2.255];
 TO_MATCH_ENVRCPT_SOME(0.00)[];
 DKIM_TRACE(0.00)[a9development.com:+]; RCPT_COUNT_TWO(0.00)[2];
 DMARC_POLICY_ALLOW(-0.50)[a9development.com,none];
 NEURAL_HAM_SHORT(-0.48)[-0.480]; R_SPF_NA(0.00)[no SPF record];
 RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[];
 MIME_TRACE(0.00)[0:+];
 RBL_DBL_DONT_QUERY_IPS(0.00)[185.70.40.18:from];
 ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH];
 MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm];
 RWL_MAILSPIKE_POSSIBLE(0.00)[185.70.40.18:from]
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/>;
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Dec 2020 18:06:57 -0000

> Hello everybody,
>
> after tuning CPU (1 cpu only) and Ram I was able to do a full install of
>
> FreeBSD 12.2 in a Parallel Desktop VM running on an Apple M1.
>
> Everything seems quite in order but I can't get the network card to
>
> work.
>
> Parallel Desktop is presenting a virtio-net card and pciconf is
>
> correctly listing it but the driver doesn't hook to it.
>
> Here you can see a screenshot of the situation:
>
> https://www.dropbox.com/s/hv6g8btjm45m0mh/Schermata 2020-12-29 alle 16.42=
.10.png?dl=3D0
>
> [sorry if I keep posting screenshots but there's no console integration
>
> so I can't copy and paste...]
>
> Any suggestion on how to get it working or investigate deeper?

What about with 13-CURRENT? There's a lot of aarch64 work going on in 13 th=
at is unlikely to be backported to 12, so it'll be best to focus effort the=
re.

--Dan Kotowski



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a7caf1d2cc65246ab2803808bcf0818c>