News for hackers. Stuff that matters.
Re:OpenBSD boots multi-user on Apple M1 hardware by rgovostes on Saturday February 20, 2021 @11:45PM (#26210875)
Running an alternative OS "natively" on a Mac doesn't seem very appealing to me. It's almost guaranteed you will never fully get Wi-Fi, audio, graphics acceleration, the trackpad, etc. working flawlessly, especially on the M1 where almost every component is Apple proprietary and it's not a matter of loading, say, some common Intel graphics driver.

On the other hand, virtualization _already_ lets you run whatever arm64 BSD, Linux, or Windows that you want. The trackpad and everything else will work flawlessly thanks to guest additions. Yes, you make some tradeoffs -- you sacrifice a core, a few GB of RAM, some disk space for an OS you don't _really_ want to be running. But I'm skeptical that these are not better tradeoffs than constantly using a hacked-together and half-broken OS.

To me the ideal solution is not that Corellium or Marcan or whoever reverse engineers the drivers to a sufficient degree. I'd rather see Apple (or the Hackintosh types) release a tiny variant of macOS that contains hardware drivers and Hypervisor.framework and not much else. It could be the next generation of Boot Camp and it would probably take less engineering effort for them to maintain while satisfying the small segment of customers interested in running other operating systems.

Re:OpenBSD boots multi-user on Apple M1 hardware by kitsunesoba on Saturday February 20, 2021 @11:58PM (#26210925)
> On the other hand, virtualization _already_ lets you run whatever arm64 BSD, Linux, or Windows that you want. The trackpad and everything else will work flawlessly thanks to guest additions. Yes, you make some tradeoffs -- you sacrifice a core, a few GB of RAM, some disk space for an OS you don't _really_ want to be running. But I'm skeptical that these are not better tradeoffs than constantly using a hacked-together and half-broken OS.

True in theory, but at least with Linux I've found that desktop environments exhibit a slight but maddening level of sluggishness in VMs, no matter if it's GNOME, KDE, XFCE, or MATE. If all you need is a commandline Linux VMs are great but I'd go insane trying to use one as a graphical desktop for an extended period.

Re:OpenBSD boots multi-user on Apple M1 hardware by Wowfunhappy on Sunday February 21, 2021 @12:02AM (#26210946)
Really, that goes for any guest OS other than maybe Windows, and Windows is different only because VM developers have poured an enormous amount of time and money into it.

You can get rid of the sluggishness with GPU passthrough... but then the guest OS would still need GPU drivers.

Re:OpenBSD boots multi-user on Apple M1 hardware by pushrax on Sunday February 21, 2021 @01:25AM (#26211317)
I'm don't think you can do GPU or PCI passthrough on macOS. Not sure if/when Apple would consider adding that.

I'm glad the things I want to do on Linux are all terminal based. I used a tiling WM for years on Arch and don't miss it much with all the macOS WM extensions available now (Magnet, Rectangle, Moom, Hammerspoon, etc). Less themeable but perfectly functional.

Re:OpenBSD boots multi-user on Apple M1 hardware by dwaite on Sunday February 21, 2021 @03:22AM (#26211811)
> I'm don't think you can do GPU or PCI passthrough on macOS. Not sure if/when Apple would consider adding that.

With Big Sur, Apple now has paravirtualization support. It exposes Metal API to manipulate virtual display devices. See https://developer.apple.com/documentation/paravirtualizedgra...

I doubt Apple has any intention of publishing hardware documentation for someone to write a native driver, but there are behavioral reverse engineering efforts already underway.

Re:OpenBSD boots multi-user on Apple M1 hardware by pushrax on Monday February 22, 2021 @12:11AM (#26221095)
Very nice. An advantage of paravirtualization is that compositing across the guest and host will work, unlike passthrough. Any rough indication of the level of performance?
Re:OpenBSD boots multi-user on Apple M1 hardware by tluyben2 on Sunday February 21, 2021 @01:23AM (#26211309)
It would be to Apple's advantage somewhat to make that happen right? Apple wants to sell hardware and does not mind people running virtualised Windows or Linux on it?
Re:OpenBSD boots multi-user on Apple M1 hardware by presentation on Sunday February 21, 2021 @08:41AM (#26213358)
They also sell services though, and their products reinforce one another so that once you’re bought into their ecosystem it ties you to Apple products in perpetuity. I know because it happened to me; doesn’t happen if you’re not actually using the OS.
Re:OpenBSD boots multi-user on Apple M1 hardware by coldtea on Sunday February 21, 2021 @09:48AM (#26213777)
>so that once you’re bought into their ecosystem it ties you to Apple products in perpetuity.

Only because of the seamlessness (within reason) of the experience.

Otherwise, there's nothing to switching to another OS for all or any part of it.

Many (most?) apps people use everyday are web- or Electron based, so they can switch to any other Windows or Linux with e.g. Chrome.

Their music is in some streaming service (Spotify, Apple Music, Google Play, etc) all of which play on other OSes (and in any case, they can change subscription and they haven't lost anything). Or, for the fussier, it's mp3 or flac files, they can easily move. Even bought music (aac) from the iTunes Store is playable in other platform (since Apple has removed the DRM for a decade or so).

Ditto for movies. It's all streaming nowadays, and you can just switch to another streaming service (and all play everywhere anyway).

As for professional apps, most heavy ones (MS Office, Adobe Suite, Cubase, Live, Resolve, etc) run just fine in both OSX and Windows, and come with dual installers, so you can switch if you like (some even allow for multiple computers at the same time).

(If you're using Logic or FCPX, then sure, you'll need to find another program, and go through the pain of migrating your projects).

For mobile it's the same thing. E.g. you can sync just fine with an Android phone (you just don't get niceties like Handoff, Scan-to-Notes, etc).

So there's nothing special to "tie you to Apple products in perpetuity" except "I might lose the use of some apps that are Mac Only" (so same thing that would have tied you to Windows or Linux in perpetuity).

Re:OpenBSD boots multi-user on Apple M1 hardware by pushrax on Sunday February 21, 2021 @01:35AM (#26211353)
Apple also tends to prefer pushing their users to their closed software ecosystem. Given the likely low demand for passthrough on these devices, I kind of doubt they'll implement it in the foreseeable future.
Re:OpenBSD boots multi-user on Apple M1 hardware by moistbar on Monday February 22, 2021 @09:11AM (#26224710)
You'd also either need two GPUs or some way to mux the guest output into the host output, so it's almost assuredly not happening.
Re:OpenBSD boots multi-user on Apple M1 hardware by bubblethink on Sunday February 21, 2021 @05:12AM (#26212296)
There are a couple of projects that improve this (for linux host + linux guest). virgl exposes accelerated graphics to the guest, which chromeOS uses in its offering. Intel also has its GVT-g offering which virtualises intel integrated GPUs. Of course, none of this applies to apple.
Re:OpenBSD boots multi-user on Apple M1 hardware by ogre_codes on Saturday February 20, 2021 @11:59PM (#26210935)
> Running an alternative OS "natively" on a Mac doesn't seem very appealing to me. It's almost guaranteed you will never fully get Wi-Fi, audio, graphics acceleration, the trackpad, etc. working flawlessly, especially on the M1 where almost every component is Apple proprietary and it's not a matter of loading, say, the right Intel graphics driver.

It's not appealing to me now. In 9 or 10 years when Apple has stopped shipping new versions of MacOS for the platform, it will be much more interesting for me. Of course by then it's just a curiosity or fun project, not something I need for day to day. And by then, much of the wifi/ graphics/ audio issues will be solved.

Re:OpenBSD boots multi-user on Apple M1 hardware by adamcstephens on Monday February 22, 2021 @09:42AM (#26225043)
I wouldn't be so sure that wifi/graphics/audio will ever be solved. It's possible, but not guaranteed. There are whole generations of Intel Mac systems that have never received support for these.

https://github.com/Dunedan/mbp-2016-linux

Re:OpenBSD boots multi-user on Apple M1 hardware by 1vuio0pswjnm7 on Sunday February 21, 2021 @01:29AM (#26211331)
Nah, I want to choose the kernel.

This statement is a bit presumptuous: "It's almost guaranteed you will never fully get Wi-Fi, audio, graphics acceleration, the trackpad, etc. working flawlessly."

Maybe I do not want all those things every time I boot. Apple used an "alternative OS" for their Airport routers: NetBSD. Kernel was around 6.x if I recall correctly. Seemed like Wi-Fi worked preety good, maybe even "flawlessly".

It's a computer. As the purchaser, I should get to decide how it is used. Using Apple software should be optional.

Re:OpenBSD boots multi-user on Apple M1 hardware by pjmlp on Sunday February 21, 2021 @01:42AM (#26211378)
You can also decide to give the money to other computer vendors that actually care about BSD.

I don't know, like Tuxedo,

https://www.tuxedocomputers.com/en/Infos/News/OpenBSD-6-3-cu...

Re:OpenBSD boots multi-user on Apple M1 hardware by bubblethink on Sunday February 21, 2021 @02:02AM (#26211476)
>This statement is a bit presumptuous

It's not. Anyone who has followed the last 10 years of Apple devices knows what works and what doesn't.

Re:OpenBSD boots multi-user on Apple M1 hardware by 1vuio0pswjnm7 on Sunday February 21, 2021 @03:15PM (#26216721)
"Presumptuous" meaning it presumes what a user will want to do with a computer. In this case, the computer comes with no display, no keyboard, no mouse, no trackpad, etc.
Re:OpenBSD boots multi-user on Apple M1 hardware by bubblethink on Sunday February 21, 2021 @06:52PM (#26218598)
I'm not following. Are you saying that one can use an Apple router with an alternate free operating system and it still functions as a router ? I'm not aware of any such project. At least openwrt does not support the Apple router. As for what users would want to do, that is a moot point since there are common expectations for devices based on the specs and form factors. So, why would you buy a $2k laptop to use it as an inefficient, buggy, and underpowered headless linux server (assuming you get networking working)?
Re:OpenBSD boots multi-user on Apple M1 hardware by 1vuio0pswjnm7 on Sunday February 21, 2021 @08:22PM (#26219491)
"I'm not following."

I agree.

The "alternative OS" is the OS that Apple used for its AirPort Extreme router, and which it borrows heavily from for the MacOs userland. Apple writes some software itself, but it also takes a significant amount of source code straight from "alternative OS" projects. To be clear, the OS projects I am referring to are not Linux nor is the computer that is the subject of this thread a "$2K laptop".

Re:OpenBSD boots multi-user on Apple M1 hardware by fulafel on Sunday February 21, 2021 @06:55AM (#26212815)
Do you mean to imply that those things are known not to work?

There have been many Apple devices where all those mentioned things (if present) work under a non-Apple OS. So as usual the truth is somewhere in the middle. From my Linux experience there are a lot of well working MBP models from this time span. And Minis.

Re:OpenBSD boots multi-user on Apple M1 hardware by 1vuio0pswjnm7 on Sunday February 21, 2021 @06:35AM (#26212714)
I'd like to point out that the dmesg indicates a M1 Mac Mini. There is no display, no keyboard, no mouse, no trackpad, etc. I think there may be a 3.5mm headphone jack, though.
Re:OpenBSD boots multi-user on Apple M1 hardware by bivargen on Sunday February 21, 2021 @06:41AM (#26212737)
Yes, the Airport routers used various NetBSD versions as their OS. However the wireless drivers where, at least for some versions, proprietary.
Re:OpenBSD boots multi-user on Apple M1 hardware by soheil on Sunday February 21, 2021 @01:47AM (#26211407)
I'm just really curious and don't have a dog in this fight against/for ability to do as you will with a product you purchase.

A) a hypothetical device, let's not call it a computer, but similar, exists that asks you politely by means of something like a license not to modify it even though it would be possible to do so pretty easily.

B) another device, this time a hypothetical CPU that is next to impossible to modify with any degree of ease since it requires nanoscale tools.

Why should there be a fundamental difference in a person's ability to modify one of the above, but not the other? Just because the laws of Physics don't allow mere mortals to so (not at least without a highly sophisticated nano fabrication lab) doesn't seem like a very convincing principled answer. Is there a stronger argument?

Re:OpenBSD boots multi-user on Apple M1 hardware by lmm on Sunday February 21, 2021 @07:44AM (#26213068)
Intent is important in law and in most people's moral principles (acknowledged or not). It seems to me that going out of your way to make the things you sell easier to repair is supererogatory, but going out of your way to make the things you sell harder to repair is bad and wrong, even if two companies did those two different things and reached the same end result.
Re:OpenBSD boots multi-user on Apple M1 hardware by coldtea on Sunday February 21, 2021 @09:53AM (#26213834)
>Why should there be a fundamental difference in a person's ability to modify one of the above, but not the other?

Because one could trivially modify the first, and people do all the time (and screw the law), whereas the second is, as you said, "next to impossible" to modify even if you want it.

>Just because the laws of Physics don't allow mere mortals to so (not at least without a highly sophisticated nano fabrication lab) doesn't seem like a very convincing principled answer

In what universe do "the laws of physics prevent this to be done easily without millions of dollars" is not a convincing answer?

Re:OpenBSD boots multi-user on Apple M1 hardware by Kwpolska on Sunday February 21, 2021 @04:54AM (#26212209)
> Apple used an "alternative OS" for their Airport routers: NetBSD. Kernel was around 6.x if I recall correctly. Seemed like Wi-Fi worked preety good, maybe even "flawlessly".

That’s a nice strawman you got here. AirPort routers shipped with NetBSD, and it was officially supported. But good luck getting macOS to run on that — macOS would count as the “alternative OS” for the AirPort.

Re:OpenBSD boots multi-user on Apple M1 hardware by 1vuio0pswjnm7 on Tuesday February 23, 2021 @01:55AM (#26234528)
Maybe running MacOS is not that important to me. Maybe I am just interested in the hardware, not the Apple OS.
Re:OpenBSD boots multi-user on Apple M1 hardware by mvanbaak on Sunday February 21, 2021 @06:03AM (#26212534)
Being able to run OpenBSD or FreeBSD on a M1 mini would be AWESOME. That little machine is pretty powerful and does not need much power to do what it does.

If you are talking purely about desktop, I have to agree with you that the only real option is MacOS because of all the apple-only stuff (at least for now until drivers show up)

But there's more uses of hardware then desktops.

Re:OpenBSD boots multi-user on Apple M1 hardware by giomasce on Sunday February 21, 2021 @06:57AM (#26212829)
Most laptops are more or less in the same situation as M1. Maybe they different quantitatively, but not qualitatively: devices do not have (sufficient) specs available and people need to reverse engineer them if you want to run any free OS on them. Yet people want to do that and often manage. Why is M1 different?

What I really would like to see is hardware manufacturers (Apple and anybody else) releasing the specs, so that people are free to do whatever they want with the metal they buy. I might event consider appropriate a legislative intervention in this field.

Re:OpenBSD boots multi-user on Apple M1 hardware by xorcist on Sunday February 21, 2021 @07:43AM (#26213063)
Not all laptops. Regular stock Intel components, for example, have solid Linux support because Intel nowadays hire kernel developers to support them. Some even have upstream drivers before the hardware is even commercially available.
Re:OpenBSD boots multi-user on Apple M1 hardware by waheoo on Sunday February 21, 2021 @08:01AM (#26213157)
Yup found this remark super weird.

Mac users seem to live under a rock or something.

Got some weird idea that anything not a Mac must be windows like it's the 90s or something.

Both AMD and Intel hardware supports Linux and wouldn't ship without it. NVIDIA is really the only hold out I this space.

Re:OpenBSD boots multi-user on Apple M1 hardware by udp on Sunday February 21, 2021 @08:15AM (#26213217)
Anecdotal counterpoint: I bought a cheap Intel SoC laptop in 2019 thinking it would make a nice ultraportable writing machine. Things that it shipped without Linux support for: the trackpad, wifi, Bluetooth, and disk (eMMC controller). It just about works now with the latest kernel version and some manually compiled drivers, nearly two years later.
Re:OpenBSD boots multi-user on Apple M1 hardware by coldtea on Sunday February 21, 2021 @09:55AM (#26213851)
>Both AMD and Intel hardware supports Linux and wouldn't ship without it. NVIDIA is really the only hold out I this space.

So just the most important graphics vendor huh?

Re:OpenBSD boots multi-user on Apple M1 hardware by vinay427 on Monday February 22, 2021 @05:05AM (#26222710)
It doesn't matter much for laptops which increasingly seem to depend on Intel/AMD integrated graphics, which are more capable than ever in laptops with more stringent size and power constraints. How many MacBooks sold have discrete graphics cards by any manufacturer? I'd like to see data on this but I couldn't find any relevant statistics after a bit of searching.
Re:OpenBSD boots multi-user on Apple M1 hardware by giomasce on Sunday February 21, 2021 @08:28AM (#26213292)
And that's great, but there is more in a laptop than Intel components. And you're not always lucky on that side.
Re:OpenBSD boots multi-user on Apple M1 hardware by rualca on Sunday February 21, 2021 @09:37AM (#26213702)
>>Running an alternative OS "natively" on a Mac doesn't seem very appealing to me. It's almost guaranteed you will never fully get (...) working flawlessly

This statement is rather miopic. I still recall when this very same argument was made regarding the idea of wanting to install Linux in computers which were bundled with Windows. I can tell you it made absolutely no difference to me a couple of decades ago when I installed Mandrake Linux on a Windows laptop, and it made no difference to me that I couldn't get hardware acceleration or the webcam to work, and that wifi only worked with ndiswrapper. I was able to run the software I wanted to use in the hardware I bought, and that's what matters.

M1 Mac minis are on the market for around 800$, which is an affordable price point, and their form factor and looks make them an interesting choice for a home server or workstation. It would be incomprehensible if we couldn't take advantage of that hardware by running our choice of software.

Re:OpenBSD boots multi-user on Apple M1 hardware by sedatk on Saturday February 20, 2021 @11:51PM (#26210897)
> you will never fully get Wi-Fi, audio, graphics acceleration, the trackpad, etc

I agree with your sentiment, but that isn't as serious as you say on, say, M1 Minis used as servers and that's probably where OpenBSD would shine.

Re:OpenBSD boots multi-user on Apple M1 hardware by Wowfunhappy on Saturday February 20, 2021 @11:58PM (#26210922)
I absolutely expect Asahi to get all of those things working in due course. Lots of smart people are working on it.
Re:OpenBSD boots multi-user on Apple M1 hardware by rgovostes on Sunday February 21, 2021 @12:24AM (#26211051)
It doesn't feel like it's the best use of their talents, though.
Re:OpenBSD boots multi-user on Apple M1 hardware by alpaca128 on Sunday February 21, 2021 @02:28AM (#26211588)
I'd say let people decide for themselves how to apply their talents.
Re:OpenBSD boots multi-user on Apple M1 hardware by MagnumPIG on Sunday February 21, 2021 @12:37AM (#26211100)
Neither is making a black box a good use of Apple's talents, yet here we are.
Re:OpenBSD boots multi-user on Apple M1 hardware by amatecha on Sunday February 21, 2021 @12:04AM (#26210957)
literally just installed OpenBSD on my iMac G4 last week, haha (oh yeah, everything works flawlessly btw, including graphics acceleration)
Re:OpenBSD boots multi-user on Apple M1 hardware by rgovostes on Sunday February 21, 2021 @12:38AM (#26211109)
The iMac G4 didn't support virtualization, so booting an alternative OS is more attractive. And the Nvidia GPU is probably easier to find cross-platform drivers for. New drivers or some sort of IOKit compatibility layer need to be developed for the M1 GPU (which is orders of magnitude more complex).

(I can run OpenBSD on any modern piece of hardware, though; the novelty and nostalgia are in running Mac OS 9 on that.)

Re:OpenBSD boots multi-user on Apple M1 hardware by fulafel on Sunday February 21, 2021 @01:44AM (#26211393)
It's a PowerPC architecture CPU so from hardware POV it supports virtualization out of the box[1].

[1] https://en.wikipedia.org/wiki/Popek_and_Goldberg_virtualizat....

Re:OpenBSD boots multi-user on Apple M1 hardware by ogre_codes on Sunday February 21, 2021 @01:20AM (#26211296)
I think most people would prefer not having an extra OS underneath when possible.

Also, the G4 iMac is a special piece of hardware in my book. I'd love to Frankenstein an M1 G4 iMac.

Re:OpenBSD boots multi-user on Apple M1 hardware by amatecha on Monday February 22, 2021 @12:53AM (#26221311)
Yeah it's a great model for classic Mac gaming as it has pretty good specs, 3d accel, and can run OS 9 and OS X. I've got two of them (among many other Macs) so I figured I'd try OpenBSD on this one, haha :)
Re:OpenBSD boots multi-user on Apple M1 hardware by anthk on Sunday February 21, 2021 @04:11AM (#26212046)
It did. Check Mac On Linux.

The iMac G4 didn't support virtualization,

Re:OpenBSD boots multi-user on Apple M1 hardware by beermonster on Sunday February 21, 2021 @09:52AM (#26213828)
I run Linux natively on a MacBook just fine. In fact I had to, when High Sierra went out of support not that long after I’d upgraded my RAM and HDD to SDD. It now flies and honestly I don’t know why I waited until High Sierra went end of life as I feel Mac OS X has got worse and worse. Also the hardware has got less and less upgradable/fixable in that time too.
Re:OpenBSD boots multi-user on Apple M1 hardware by austinshea on Sunday February 21, 2021 @01:08AM (#26211235)
But, presumably, you can understand why it is very appealing to others.

These devices are mass produced, and have long lifespans.

It's a good target for development.

Re:OpenBSD boots multi-user on Apple M1 hardware by atoponce on Sunday February 21, 2021 @06:53AM (#26212806)
> On the other hand, virtualization _already_ lets you run whatever arm64 BSD, Linux, or Windows that you want. The trackpad and everything else will work flawlessly thanks to guest additions.

The OpenBSD kernel doesn't support loadable kernel modules, so virtual machine guest additions are not an option for a virtualized OpenBSD.

Re:OpenBSD boots multi-user on Apple M1 hardware by coldtea on Sunday February 21, 2021 @09:38AM (#26213705)
>It's almost guaranteed you will never fully get Wi-Fi, audio, graphics acceleration, the trackpad, etc. working flawlessly

And yet people have done it with Linux just fine... Linus himself run a G5 as his desktop (circa 2003-2005) and later a Macbook Air as his daily driver laptop (circa 2011-2013...)

Re:OpenBSD boots multi-user on Apple M1 hardware by Blikkentrekker on Sunday February 21, 2021 @09:51AM (#26213815)
But this was not on an M1.

This was on an AMD64 system that was far less Apple-specific as far as I know.

Re:OpenBSD boots multi-user on Apple M1 hardware by coldtea on Sunday February 21, 2021 @10:04AM (#26213935)
Yes, but the parent comment said " especially on the M1", implying that that was the case on Intel too...
Re:OpenBSD boots multi-user on Apple M1 hardware by IgorPartola on Sunday February 21, 2021 @12:40AM (#26211116)
I think there is another way to look at it. If not for Apple’s hardware policies, you would just be able to run your favorite OS on their hardware. It’s the fact that they publish EULAs and NDAs so long that it probably wouldn’t have fit I to the RAM of their first computers which actively slow down or prohibit any work by developers. Why isn’t it Apple whom we should find unappealing?