Macs and Linux
May. 18th, 2011 02:49 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Firstly: If you want to buy a computer to run Linux on, don't buy a Mac.
Secondly: If you have a Mac and want to run Linux on it, the easiest approach is going to be to run it under virtualisation. Virtualbox is free, and worth every bit of what you're paying.
Thirdly: If you're going to boot Linux on bare-metal Apple hardware, boot it via BIOS emulation.
Fourthly: If you're going to boot Linux on bare-metal Apple hardware via EFI, and it doesn't work, write a patch. Apple's firmware has a number of quirks that I'm aware of and we're working through them, but anyone filing bugs against Apple hardware on EFI right now is likely to be ignored for a significant period of time until there's an expectation that it'll actually work. Maybe in six months or so.
Secondly: If you have a Mac and want to run Linux on it, the easiest approach is going to be to run it under virtualisation. Virtualbox is free, and worth every bit of what you're paying.
Thirdly: If you're going to boot Linux on bare-metal Apple hardware, boot it via BIOS emulation.
Fourthly: If you're going to boot Linux on bare-metal Apple hardware via EFI, and it doesn't work, write a patch. Apple's firmware has a number of quirks that I'm aware of and we're working through them, but anyone filing bugs against Apple hardware on EFI right now is likely to be ignored for a significant period of time until there's an expectation that it'll actually work. Maybe in six months or so.
Bummer
Date: 2011-05-18 08:23 pm (UTC)- When it got it, it didn't have any SATA support at all, which was fixed relatively quickly. AHCI mode only works when you're booting via EFI though.
- EFI boot needs "noexec=off". And last time I tried it, nouveau had some problems on EFI mode.
- 2D worked without acceleration for a long time - but now I've got 3D running well enough for Gnome Shell. Thanks nouveau guys!
- Backlight needed a trivial patch with a DMI entry. But you've reworked the whole backlight driver to not need separate patches for all models anymore (thanks!). Would've been nice if the trivial patch would have been mainlined while waiting for your proper fix, though.
- wireless (BCM4322) was only supported by the binary broadcom driver at first - but since 2.6.38 the b43 driver can do it too.
So if I were to give any recommendation to people considering linux-on-mac, it would be this: don't expect the latest, shiniest Mac to work immediately out of the box without tinkering. In my case it went from barely usable to fully functional in about six months. But I knew this going in, and still wanted to do it.
Re: Bummer
Date: 2011-05-18 08:34 pm (UTC)If people are happy to do the tinkering and stuff then that's great, but right now I'm just seeing masses of bugs full of people who are confused about why things don't work and attempting increasingly elaborate hacks to work around them. With a bit of luck once we've got the EFI patchset landed and I've done a bit more work to figure out the precise relationship between Apple's nvram variables, the EFI boot variables and the startup choose screen we'll actually have usefully installable media.
Re: Bummer
Date: 2011-05-22 02:53 pm (UTC)with 2.6.39 i can run imac12,2 27" in EFI physical-mode-patch, but not without. BIOS mode is mostly all right.
I tried (without the physical-mode-patch) booting with noexec=off, it hangs shortly after initrd is loaded (no noise from hard disk);
and tested your 5-patches set from
http://git.kernel.org/?p=linux/kernel/git/tip/linux-2.6-tip.git;a=commit;h=935a638241b0658b9749edd060f972575f9d4a78
but it gives the same result : black screen just after initrd is loaded.
Config is : updated 1.6 apple firmware, grub-efi-amd64, pristine efi firmware (no refit), gpt (no mbr).
I'm willing to help testing, if needed. Not desperately :)
Re: Bummer
Date: 2011-05-22 03:18 pm (UTC)Re: Bummer
Date: 2011-05-22 06:04 pm (UTC)"It" works ! You probably don't need that, still, let me say
YOU ROCK :)
i'm rebuilding the kernel with your patches only, just to make sure
i'm not wildly hallucinating.
Latest iMac (May 2011)
Date: 2011-05-19 12:03 am (UTC)http://ubuntuforums.org/showthread.php?t=1754083
Re: Latest iMac (May 2011)
Date: 2011-05-19 12:14 am (UTC)Re: Latest iMac (May 2011)
Date: 2012-01-21 09:55 pm (UTC)Could you please develop that statement?
what do you mean by 'genuine output table' and 'lot of them don't' ?
thx
yannig
no subject
Date: 2011-05-19 12:22 am (UTC)[4.5yo mac pro; Debian stable]
no subject
Date: 2011-05-19 12:24 am (UTC)no subject
Date: 2011-05-19 12:26 am (UTC)no subject
Date: 2011-05-19 12:51 am (UTC)Unlike!
Date: 2011-05-19 02:48 am (UTC)I love running Linux on our two mac minis.
Re: Unlike!
Date: 2011-05-19 02:53 am (UTC)MacBook 5,1
Date: 2011-05-19 06:38 am (UTC)Re: MacBook 5,1
Date: 2011-05-19 11:31 am (UTC)The only thing that broke recently is grub 1.99's ability to set up the framebuffer console in a form usable by the kernel (I believe vesafb was being used). Things start working once either nouveau or the nvidia binary brings up the display.
All this said, I'm happy to help test/debug patches if we're reasonably sure it won't melt my laptop. :)
Dissing me
Date: 2011-05-19 08:44 am (UTC)But anyway, thanks for your hard work on getting macs to run. I do not like MacOSX, but Apple make the best computers.
I have a Debian Mac ;-)
Date: 2011-05-19 01:07 pm (UTC)Everything runs out of the box, except wifi. I installed Debian using refit, but now I think seriously about erasing MacOSX and changing partition system to DOS.
God bless Debian GNU/Linux!! ;-)
Re: I have a Debian Mac ;-)
Date: 2011-05-20 01:59 am (UTC)Of course, there are still the PPC crazies
Date: 2011-05-19 01:22 pm (UTC)Linux is always 6 months behind. When you realize it's because "no one tells the Linux guys anything" you discover how frigging talented everyone is.
no subject
Date: 2011-05-19 02:16 pm (UTC)no subject
Date: 2011-05-19 06:33 pm (UTC)no subject
Date: 2011-05-20 03:50 pm (UTC)Does VB pass the OpenBSD test yet? It certainly didn't used to. Nor did they intend to make it do so until a paying customer demanded it. Not such a good move for adding payingcustomers, given it's fine under VMware. VB's notorious and chronic crappiness is why I have personally disrecommended spending lots of money on it over VMware in the past.
no subject
Date: 2011-05-25 03:00 pm (UTC)no subject
Date: 2011-05-25 08:57 pm (UTC)no subject
Date: 2011-05-20 03:52 pm (UTC)EFI on non-Apple PCs
Date: 2011-05-21 09:50 am (UTC)Re: EFI on non-Apple PCs
Date: 2011-05-21 12:52 pm (UTC)PowerMac G4 Dual MDD
Date: 2011-05-23 12:45 pm (UTC)It is not even good enough to boot Windows
Date: 2011-06-01 07:21 pm (UTC)--yuhong (openid login via blogspot do not work)
Re: It is not even good enough to boot Windows
Date: 2011-06-01 07:24 pm (UTC)Corollary to Firstly
Date: 2011-09-06 08:36 pm (UTC)