-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD arm64 not identified #688
Comments
That code ought to use sysctl -i:
(I have no idea if this is available on NetBSD or OpenBSD, although perhaps they don't work at all right now if they don't have a machdep.bootmethod.) |
Just checked OpenBSD's and NetBSD's sysctl(8) man pages, and neither support |
OpenBSD doesn't have a |
Hi @emaste Thank you for reporting. As I am also running an M1 machine as my main device and have UTM installed, it should be easy to reproduce. But I was unable to install a FreeBSD version here ... can you give me a hint (which image you used and maybe some special steps that needed to be done?). Perhaps same for OpenBSD and NetBSD if there are SRM versions that run in UTM ... Thank you for your support, I will then provide a fix for that. |
@ohmantics should be able to provide details on what image he used etc. I don't yet have an M1, my FreeBSD installs are x86 laptops and arm64 cloud images. |
13.1-RELEASE's boot1.iso installs fine for me with UTM 3.2.4 (58) using Other as the OS and otherwise choosing sensible defaults (68.72 GB being 64 GiB because UTM is inconsistent about units...): Something seems to be wrong with the installer if you select base-dbg, it immediately fails to download any distribution files once the network is configured, so don't do that. I don't know if that's an arm64 issue, a 13.1-RELEASE issue or has been broken for a while, though I have seen suspiciously-quick failures like that installing 14-CURRENT-based CheriBSD images so suspect it's either an arm64 issue or an everywhere issue. |
@jrtc27 THANK you! Will try it tomorrow! |
@jrtc27 @ohmantics ... got a VM with FreeBSD running on my M1 machine (using M1) but I am not able to connect to a network (internet) ... maybe if anyone of you got a hint for me I can pull the whole System Information package and node to see what is going on ... |
I just used UTM. The network settings for the VM are set for Shared Network and virtio-net-pci. The VM seems to have no trouble with network access. |
@ohmantics I finally was able to get FreeBSD running correctly on M1. I now tested it and made some corrections.
Version 5.14.2 just released. Can you also check it on your side? |
I suspect this is incorrect; how is it detected? |
@emaste ... it is determined by I will adapt the code in a way that if there is nothing returned, then |
@emaste ... just an idea: Could this:
be an hint that boot method is uefi?? |
@emaste ... code is adapted accordingly. Can you check it once again? |
This could be a hint but it won't be completely reliable - for example our install media contains both an efi/ partition as well as BIOS boot code so that it can boot either way. It looks like we populate machdep.bootmethod only on x86. For arm64 we've only ever supported UEFI boot. By inspection I think the approach implemented in the code is good. |
We support direct boot using the Linux boot ABI on arm64, too, but there's not really a good reason to use it these days now U-Boot can do UEFI unless you're stuck with an old (or poorly configured) vendor U-Boot blob. |
Describe the bug
FreeBSD arm64 (aarch64) isn't identified
To Reproduce
Check systeminformation.osdata and see "unknown" responses.
Environment (please complete the following information):
Additional context
This code is asking for the machdep.bootmethod sysctl, which only exists on i386 and amd64 platforms in FreeBSD. The whole sysctl call returns an error and we fall out of this code with no answers.
The text was updated successfully, but these errors were encountered: