From nobody Mon May 22 16:58:50 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 4QQ3Z46TThz4CBdf for ; Mon, 22 May 2023 16:58:52 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by mx1.freebsd.org (Postfix) with ESMTP id 4QQ3Z454jhz3mhL; Mon, 22 May 2023 16:58:52 +0000 (UTC) (envelope-from rb@gid.co.uk) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (moriarty.gid.co.uk [194.32.164.17]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id 34MGwpTd017756; Mon, 22 May 2023 17:58:51 +0100 (BST) (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=utf-8 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 \(3696.120.41.1.3\)) Subject: Re: VirtualBox From: rb@gid.co.uk In-Reply-To: <5af33c38-0c9e-d431-da0f-2e0da0675e97@gmail.com> Date: Mon, 22 May 2023 17:58:50 +0100 Cc: Alex Samorukov , "Rodney W. Grimes" , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <559F689E-53FA-4036-907B-D7099D574988@gid.co.uk> References: <202305181358.34IDwX6o088856@gndrsh.dnsmgr.net> <8677136eca659468ec4690727ef9cf53@freebsd.org> <5af33c38-0c9e-d431-da0f-2e0da0675e97@gmail.com> To: Jason Bacon X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Rspamd-Queue-Id: 4QQ3Z454jhz3mhL X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42831, ipnet:194.32.164.0/24, country:GB] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi, > On 22 May 2023, at 17:36, Jason Bacon wrote: >=20 > On 5/22/23 10:55, Bob Bishop wrote: >> Hi, >>> On 18 May 2023, at 16:33, Alex Samorukov wrote: >>>=20 >>> On 2023/05/18 15:58, Rodney W. Grimes wrote: >>>>> VirtualBox is x86 emu. >>>> Yes, and it now runs on Mac/Arm64 as of version 7, but it >>>> is known to of shakey alpha quality. >>> But i think it still emulates x86, so probably will be damned slow. = I think on MacOS using qemu is a best way to run FreeBSD, of course = aarch64. I found performance very good, as well as stability. >> Parallels also works very well, if you don=E2=80=99t mind paying. >> -- >> Bob Bishop >> rb@gid.co.uk >=20 > On Apple silicon? Yup. dmesg for 13.1-R/arm64 under Parallels below. > I've run FreeBSD under Parallels, VMware, Hyper-V, VirtualBox, and = Qemu. >=20 > VirtualBox seems to be the only one with guest additions to support = mouse integration, desktop resizing, etc. The others all work, and I = added what support I could for them to sysutils/desktop-installer. >=20 > I would think supporting VirtualBox aarch64 should not be too = difficult. It appears to use mostly the same virtualized devices as the = x86 edition. >=20 > First step would seem to be enabling boot from the FreeBSD aarch64 = ISO. >=20 > --=20 > Life is a game. Play hard. Play fair. Have fun. >=20 -- Bob Bishop rb@gid.co.uk WARNING: Cannot find freebsd,dts-version property, cannot check DTB = compliance Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC arm64 FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git = llvmorg-13.0.0-0-gd7b669b3a303) VT(efifb): resolution 1024x768 module firmware already present! real memory =3D 17176920064 (16381 MB) avail memory =3D 16719712256 (15945 MB) Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface MAP 43c050000 mode 2 pages 192 MAP 43f600000 mode 2 pages 400 MAP 43f790000 mode 2 pages 592 MAP 1e00000 mode 0 pages 78 MAP 2120000 mode 0 pages 1 kbd0 at kbdmux0 ofwbus0: clk_fixed0: on ofwbus0 psci0: on ofwbus0 gic0: mem = 0x2010000-0x201ffff,0x2000000-0x2002fff on ofwbus0 gic0: pn 0x0, arch 0x2, rev 0x0, implementer 0x0 irqs 128 gicv2m0: mem = 0x2250000-0x2250fff on gic0 generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 efirtc0: efirtc0: registered as a time-of-day clock, resolution 1.000000s cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 ahci0: mem 0x2140000-0x2141fff irq 4 on ofwbus0 ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 pcib0: mem 0x2300000-0x23fffff on ofwbus0 pci0: on pcib0 pci0: at device 1.0 (no driver attached) ehci0: mem = 0x10008000-0x100083ff at device 2.0 on pci0 usbus0: EHCI version 1.0 usbus0 on ehci0 xhci0: mem 0x10007000-0x10007fff at = device 3.0 on pci0 xhci0: 32 bytes context size, 32-bit DMA usbus1 on xhci0 virtio_pci0: mem = 0x10006000-0x10006fff,0x10005000-0x10005fff at device 5.0 on pci0 vtnet0: on virtio_pci0 vtnet0: Ethernet address: 00:1c:42:9a:72:d8 pci0: at device 9.0 (no driver attached) armv8crypto0: Timecounters tick every 1.000 msec ZFS filesystem version: 5 ZFS storage pool version: features support (5000) usbus0: 480Mbps High Speed USB v2.0 usbus1: 5.0Gbps Super Speed USB v3.0 CPU 0: ARM Unknown CPU r0p0 (midr: 410f0000) affinity: 0 Cache Type =3D <64 byte D-cacheline,64 byte = I-cacheline,PIPT ICache,64 byte ERG,64 byte CWG> Instruction Set Attributes 0 =3D = Instruction Set Attributes 1 =3D = Processor Features 0 =3D = Processor Features 1 =3D Memory Model Features 0 =3D Memory Model Features 1 =3D = Memory Model Features 2 =3D Debug Features 0 =3D Debug Features 1 =3D <> Auxiliary Features 0 =3D <> Auxiliary Features 1 =3D <> AArch32 Instruction Set Attributes 5 =3D <> AArch32 Media and VFP Features 0 =3D <> AArch32 Media and VFP Features 1 =3D <> CPU 1: ARM Unknown CPU r0p0 (midr: 410f0000) affinity: 1 CPU 2: ARM Unknown CPU r0p0 (midr: 410f0000) affinity: 2 CPU 3: ARM Unknown CPU r0p0 (midr: 410f0000) affinity: 3 Release APs...done ugen1.1: <(0x1033) XHCI root HUB> at usbus1 uhub0 on usbus1 uhub0: <(0x1033) XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on = usbus1 ugen0.1: at usbus0 uhub1 on usbus0 uhub1: on usbus0 Trying to mount root from zfs:zroot/ROOT/default []... ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA8-ACS SATA 2.x device ada0: Serial Number C6D0PST9NAJ499Q85E2B ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: Command Queueing enabled ada0: 65536MB (134217728 512 byte sectors) cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 cd0: < Virtual DVD-ROM R103> Removable CD-ROM SCSI device cd0: Serial Number - 31415B265 cd0: 150.000MB/s transfers (SATA 1.x, UDMA1, ATAPI 12bytes, PIO = 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present uhub0: 14 ports with 14 removable, self powered Root mount waiting for: usbus0 usbus1 ugen1.2: at usbus1 ugen1.3: at usbus1 ukbd0 on uhub0 ukbd0: on usbus1 kbd1 at ukbd0 ukbd1 on uhub0 ukbd1: on usbus1 kbd2 at ukbd1 Root mount waiting for: usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 uhub1: 15 ports with 15 removable, self powered lo0: link state changed to UP vtnet0: link state changed to UP uhid0 on uhub0 uhid0: on usbus1 uhid1 on uhub0 uhid1: on usbus1