From nobody Mon Aug 28 06:43:58 2023 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 4RZ1Hj6kCFz4qwVR for ; Mon, 28 Aug 2023 06:44:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZ1Hj45D5z4c4n for ; Mon, 28 Aug 2023 06:44:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693205054; bh=Y7x61ZTvYhLSwnmOTH3E9UA38/2xVHUu7hzx4nRMsG4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=VLHFj4VXsTJupZfFxteZPL+L5hj77w5dBsqbAAKgrFCuTlxVuZLo7kIYU8T1hicLSqVVJCoE3lizzdcwcn+dv6jkqs28jsaT7K3HnoHConiFHrnjbmygYDw2+pYBOKFo/PMcH2u0Df8Is64z93gwgVEG269/qjoxUlFeSTN9xd7erHWQGUEwRDZwv44OFRRSuFi66pU+drzF7FeXV2kqpUeCEWrhev0HQl+AFRhhZSWjhRSutCdNQ7wfmKx2danoTd2j1jiiwrckgSaMogQG478l8mzg9e9+v33cDOFy7UAeVF/wxs1fmeYoqJMYiiZkEqS/RFp2lhpVgTMrh0MXfw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693205054; bh=OC4uI3btDg4TBM8ZzoGbvcqGD7dQsd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kKJfIwgDNTEtGDMapjiVNL9WcYK_ ay1hLGpZdf2HCsLOeDj_1yVNno32DmoTpV_C6sRlSCCg6GnGr5R1l3lTeoIn6XVlkQMHwPTnE.im rNYjlxIpwzgh5FtoFVr8j89hqsIqrRB7yX09kdzRYyLF_1RNMueuBeyItZuMPKNwvEWRE126K.St cnsYUdJg7vxoRVg_RCtyksNRj489OksBI1HEJx_G.O8q7IpuARFqp_26EWY32FfKT6ttlrhik6zE hchHZTP2SEXLLBOjz4_SS0Ajg4__x6KJP2Ul5rWmXWMeShRsRRjJIwiKSJgDZvstvNh2qtNVDiHV f3wv2Dubyqrfo2u7SckcX8OyFXZRtXgucTRCBX3jRNk8DaTXDeJtaBFgY48I0tJhYZFX35lqwoOE gXOLLpWLLjUjFU7lbJz0jInY0.hJw3V5JHya9YHH2C8i5zNPMhzgik_ja2vKg9sUCQWKpbrQIySv NqgIEfCZvCauti5NwwTvY4dfzrRs3GJ7dayMIdbZ925qMt9teY90CyvRNrjFNpRmvKe1Ij_pund0 5cjEBDbvktmXyA7F7DM7_MARdkeCQV7lkAcnQWzVTnUGjOCSIgmLTX3qd1m8asgZ3SFtveJ1LAFI - X-Sonic-MF: X-Sonic-ID: 40cdb238-438f-48a8-b043-f788a5f6f217 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Mon, 28 Aug 2023 06:44:14 +0000 Received: by hermes--production-ne1-7b767b77cc-27nt8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c5e68193a43abe4b68fd2d62637d5858; Mon, 28 Aug 2023 06:44:10 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: FreeBSD main on Apple M2 Ultra, likely via use of VM(s): any notes? From: Mark Millard In-Reply-To: <0c0b4f1fdcbd5683b211ac51d8cddc30@freebsd.org> Date: Sun, 27 Aug 2023 23:43:58 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <1092670F-B1A8-48CA-8B85-CED987D559ED@yahoo.com> References: <0c0b4f1fdcbd5683b211ac51d8cddc30@freebsd.org> To: Alex Samorukov X-Mailer: Apple Mail (2.3731.700.6) X-Rspamd-Queue-Id: 4RZ1Hj45D5z4c4n X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Aug 27, 2023, at 22:13, Alex Samorukov wrote: > On 2023/08/28 06:56, Mark Millard wrote: >> Is anyone using FreeBSD [main] on an Apple M2 Ultra (likely that = would >> be via a VM)? If yes, is anyone willing to comment on the VM used to >> host FreeBSD, how it is used with FreeBSD, what works vs. not, or the >> like? > I am using M1, don't think that difference will be significant. I just figured that if something works on the M2 Ultra, it likes works on the rest. Going the other way might be somewhat more likely to not (yet) support the M2. Thus how I worded the question. But notes based on the other M1/M2 contexts are good to. In that respect, my wording ended up as over specific. > FreeBSD works very well on UTM, which is nothing but a wrapper for = QEMU. You can also run it directly in QEMU, e.g. like this: >=20 > qemu-system-aarch64 \ > -M virt \ > -drive = file=3D/opt/homebrew/share/qemu/edk2-aarch64-code.fd,format=3Draw,if=3Dpfl= ash,readonly=3Don \ > -smp 4 \ > -accel hvf \ > -cpu host \ > -m 1G \ > -drive = file=3DFreeBSD-13.1-RELEASE-arm64-aarch64.qcow2,if=3Dvirtio,cache=3Dwritet= hrough,format=3Dqcow2 \ > -net user,hostfwd=3Dtcp::10022-:22 \ > -net nic -device ramfb -device nec-usb-xhci,id=3Dxhci -device usb-kbd = \ > -nographic -serial mon:studio >=20 > USB emulation works as expected, at least I was able to pass usb-com = device. About loading from external media - I think it may work, = however, I never tested and I see very little sense in doing that. My testing-usage via the exact same media being used in multiple distinct contexts may well be rather unusual. Still, it is something I deliberately do. > One of the fun findings - you can't run FreeBSD/Armv[67] chroot on = such FreeBSD as the host CPU does not have 32-bit commands, so it is not = possible to use such a host for building armv7 packages natively. Yep, no aarch32/armv7 support via hvf. >> A point of interest would be if the VM environment can boot normal >> external USB3 media that is also able to be used to boot FreeBSD on >> other aarch64 systems (not just booting via VM usage). >=20 Thanks for the notes. It has pointed out some things I'd not-noticed already. =3D=3D=3D Mark Millard marklmi at yahoo.com