Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on Macbook Air/Pro M1 (ARM64)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22853

PostPosted: Sat Dec 19, 2020 1:02 am    Post subject: Reply with quote

Wikipedia's disambiguation page for M2 says it's even worse than you thought. ;) The two most obvious candidates are Socket M2, a now very obsolete CPU socket design, and M.2, a relatively current standard for connecting mass storage devices, usually NVMe drives. M.2 slots are available on a variety of motherboards, including towers, and particularly including hardware that has no connection to Apple. Apple's Intel Macs may well have an M.2 slot too, which if so, would just increase the confusion further if they include M.2 mass storage slots on Apple Arm computers that use the successor to the Apple M1.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Mon Nov 29, 2021 9:05 pm    Post subject: Reply with quote

Am waiting for my machine, which should come in a month or so.

It's not so much about how much of an apple fanboy I am, but at this point, its about how much of an Intel hater I am. I didn't have good experiences with ati, amd, intel, nvidia, and at this point, if there's another alternative, especially in the arm space, I want to try it. Its as simple as that.

I looked at the macbooks with m1, they seem sturdy. Seem to be nice. Its not like I'm an alien to apple things. I do have the phone, tablet, watch and earbuds. A laptop wouldn't be the worst thing in the world.

OFC installing linux, and specifically gentoo linux on it is top priority. But someone has to order these. Get the thing moving. It's already started and I can't wait to take part. Asahi linux already has a full desktop up, minus GPU acceleration. It's pretty impressive. I'm sure If they made theirs work, we could just use the booting method, and maybe some utils & stuff, and make gentoo work on it. I would be glad to be part of that.

The M1 is the only thing that actually gave me a fizz in the last few years (as James May would put it). But also, I think it's the tiny pebble that gonna break the camels back. Its pushing arm even more mainstream. Forcing other giants to move that way too. Intel is totally unequipped. Nvidia has some plans. Amd... I dont know or care. Microsoft is scrambling. I just love how last year people shrugged of apple m1. This year... uhm... I want to be part of it. I feel like I already was with the raspberry pi... but this is ... even better.

I am ready to retire my desktop. :)
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3772
Location: Rasi, Finland

PostPosted: Wed Dec 08, 2021 6:38 pm    Post subject: Reply with quote

M1 MacBook Air would be the sweet spot for me because it has pretty much performance considering it's passively cooled.

I wonder how much hassle installing Linux on it is and how's the performance then...
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Wed Dec 08, 2021 6:47 pm    Post subject: Reply with quote

Zucca wrote:
M1 MacBook Air would be the sweet spot for me because it has pretty much performance considering it's passively cooled.

I wonder how much hassle installing Linux on it is and how's the performance then...


Yeah, they are very silent I hear, but I dont think they are passively cooled. They still have a turbine I seen in teardowns. Maybe the air is passively cooled. I think arm is by default a bit colder. Or should I say x86/amd64 is less efficient. As far as linux goes:

https://asahilinux.org/about/

There are videos on youtube about it.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Thu Dec 16, 2021 11:28 pm    Post subject: Reply with quote

https://asahilinux.org/2021/12/progress-report-oct-nov-2021/

a more comprehensive report from the guys themselves.

when we say asahi linux, i don't think it's so much a distro, but a group of hackers that get to contribute to the kernel on regular basis for the m1 cpu and soc.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Mon Jan 10, 2022 9:36 pm    Post subject: Reply with quote

I hate Apple. It's been 3 months ffs and my unit still ain't here. I'm thinking of canceling.

I get why it's not here. Romania is not very high on the list of important clients. But really since 27th oct...

On apple's side, they come up with a new product once a year, and they want to space out that product over the year. But it doesn't work for me if they tax me in october but deliver in march.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3772
Location: Rasi, Finland

PostPosted: Thu Jan 13, 2022 5:49 pm    Post subject: Reply with quote

I looked at the prices of the cheapest M1 Airs and the pricing is way too steep.
I'd love to have a passively cooled laptop, but I guess I'll settle with my current MateBook D with Ryzen 5.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Fri Jan 28, 2022 12:22 am    Post subject: Reply with quote

ok. it finally arrived. i wont talk about ... it.

i'll just talk about my first impression on how it is to install gentoo on it. not on bare metal, coz that is a bit hard, but I started with parallels and am w86. orking my ways down. with parallels, gentoo fells like a qemu machine of a x86 on x86. even though its arm64.

its a huge satisfaction to see the "virtual/*" packages just rolling by instantly like its an x86_platform. even though its not.

the second huge win, for me, its the fact that I can chroot from m1 onto raspberry pi rootfs. just mount it over nfs, and you can chroot into it. that is... awesum. doesn't work both ways. m1 has aes/sha1/sha2 as cpu flag. feature. so prolly 2-3 packets back ( on pi ) will complain of invalid instructions. but its' the same arm64 base. except so muuuuch faster. it's intel fast. i was so close to regretting the buy... but just watching portage crunch data in parallels give me so much hope. it just matches well with the other gizmoz in my network.

I am glad I upgraded wifi prior to this buy, coz it doesn't have ethernet. feels weird not to have ethernet. but wifi doing fine. even with distcc everything works just fine. its amazing. i plan to try qemu next, even though, parallels works just fine. and maybe next avahi linux.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Sat Jan 29, 2022 2:30 am    Post subject: Reply with quote

had today my first crash that didn't allow me to fix it from the m1 itself. it was warcraft 3 that crashed so spectacularly. did ssh from the phone, killed warcraft 3 (ps axw|grep -i warcraft|grep -v grep|awk '{print $1;}' | xargs -i kill -9 {})

i miss skill. what happened to skill? you could just skill warcraft. whatever, awk works just as well. just remember to grep grep. or you kill your kill :))

normal people would interpret that as a general crash. after upgrades, i didn't reset this machine once. and honestly it carries the same weight as linux does. as long as you can ssh into it, it didn't crash...
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 485
Location: Paris, France

PostPosted: Fri Apr 08, 2022 6:39 pm    Post subject: Reply with quote

Compared to x86, did you notice significant issues, e.g., about the graphics support ?
I am considering adding an M1 laptop some time soon...
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Fri Apr 08, 2022 8:43 pm    Post subject: Reply with quote

Many issues. Right out the gate, the kernel support ain't ready yet. It's getting there, still working on some power management issues as far as I know. I think it could be done during this year. Also as far as I know, the gpu is working only in non-accelerated mode, as there is no driver whatsoever for it. As far as I know, they prolly using an EFI FB or something of the sort. That's for running linux in native mode. So not yet there. Even if we get there, remember that this is an aarch64 system, therefor wine wont work on it. Crossover yes, wine no.

As far as linux in parallels goes, it goes great. Video is accelerated. Everything works great. Great addition as distcc server for the pi. You can easily chroot from pi to m1 or viceversa.

As far as gaming goes, again, crossover & parallels. Some games work, some don't yet. And the ones that do, work relatively well as far as I can tell.
Back to top
View user's profile Send private message
millenialhacker
n00b
n00b


Joined: 17 Apr 2022
Posts: 1

PostPosted: Sun Apr 17, 2022 5:29 pm    Post subject: Gentoo in Apple Macbook Pro M1 Reply with quote

There’s an unofficial guide to install Gentoo on an Apple MbP M1:

https://blog.devgenius.io/installing-gentoo-linux-in-apple-macbook-pro-m1-49e163534898
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3772
Location: Rasi, Finland

PostPosted: Mon Apr 18, 2022 8:24 am    Post subject: Reply with quote

When/If I get my hands on used, cheapish, M1 MacBook Air with 16GB RAM, I'll go for it.
Until then I'll watch this thread for progress. And very nice to see that short guide to Gentoo install. The installation pretty much goes the way I envisioned it except adding the zstd support. A very important step I would have missed.

EDIT: I would have used rEFInd if possible istead of GRUB2 (its script system is unnecessarily complex just for boot loader), although it may provide more rescue possibilities.
Secondly I would have probably used lvm under all the filesystems where possible.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 485
Location: Paris, France

PostPosted: Wed Apr 20, 2022 10:34 am    Post subject: Reply with quote

Thanks, this is getting tempting... also thinking of looking for a cheap M1 Air right now...
I would probably try to virtualise with UTM rather than a real install.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Sun Sep 04, 2022 10:30 pm    Post subject: Reply with quote

https://arstechnica.com/gadgets/2022/08/linus-torvalds-uses-an-arm-powered-m2-macbook-air-to-release-latest-linux-kernel/

Just thought I would leave this here.

Marcan the dev that did the M1/M2 port of linux had a few laudatory remarks when it comes to apple, including this one: https://twitter.com/marcan42/status/1471799568807636994 & this one https://twitter.com/marcan42/status/1554018227415846913

He only doesn't say apple went out of its way to create a feature especially for asahi and the greater linux community. This is both good news for linux, and apple. Bad news for intel and microsoft.
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 498

PostPosted: Mon Sep 05, 2022 5:16 pm    Post subject: Reply with quote

I recently got an M1 Macbook Pro, replacing my 10 year old laptop that I was still traveling with. I am happy with virtualized, on UTM/QEMU, Gentoo. It is an M1 Max with plenty of ram. Compiles are quick, and quiet using the UTM default processor settings. It will completely load the 8 performance cores.

I need to find my watt meter and compare some big compiles between this laptop and my desktop.

I am in no hurry to try it on bare metal. In the future when Apple does their, it's too old to provide updates for, I will be compelled to at that point. I still have a 2008 MacBook that runs just fine on current Linux.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3772
Location: Rasi, Finland

PostPosted: Mon Sep 05, 2022 5:35 pm    Post subject: Reply with quote

Afaik Linus also runs Mac Book Air nowdays (among others).
The main benefit for him is to run Linux on actual bare ARMm when testing/developing Linux.

Late EDIT: There was exactly the same mentioned two posts earlier. D'oh!
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3772
Location: Rasi, Finland

PostPosted: Wed Sep 07, 2022 5:22 pm    Post subject: Reply with quote

@axl: Do you have Gentoo installed on that Air already or bare Asashi?
How's the hardware supported nowdays?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Wed Sep 07, 2022 7:40 pm    Post subject: Reply with quote

Zucca wrote:
@axl: Do you have Gentoo installed on that Air already or bare Asashi?
How's the hardware supported nowdays?


I don't have the air, I have the 16 inch pro from last year. And to be quite honest didn't try Asahi at all. I'm virtualising gentoo only in a VMs, except I'm using parallels. It serves my purpose of distcc server for PI's, or compile machine for gcc. I can tolerate OSX. You can't get rid of it anyway, the way Asahi is designed, you can only install it in dual boot mode, but not replace OSX completely. And its not yet completely ready. Still just a rudimentary frame-buffer. AFAIK still some issues with sound. Although wifi now works. Power management issues solved. OpenGL is thought to come by the end of this year. Marcan fixed usb3 in a recent stream. You can watch him on youtube under the name Marcan. The linux desktop is supported, but not accelerated. But most of it is functional, at least to some degree. I think the GPU will be the last issue to be resolved and that will drag on for years until it will be 100% supported, unless Apple decides to help in some form.

Depends a lot what expectations you start with. I said this before, I wanted to replace my huge PC that doubled as a server (so basically was on 24/7) and which consumes insane amounts of electricity doing basically nothing sitting idle most of the time. And I had the good sense to replace it since last year, before the current war in Ukraine, that exacerbates the issue, at least in my case. My electricity bill basically dropped to 1/3. So I had very few expectations. I wanted a fast arm8 machine which could help the cluster of PI's. A gcc compiler, a distcc server. At the beginning of the transformation, I still had to fire up the PC every once in a while to update gcc. Which is very painful on PI. As soon as I got the M1, i stopped doing that completely. I even moved it from the place where I kept it. Thinking of selling it, coz I prefer a PS5 anyway for gaming. PC become obsolete for me. Again, depends on the expectations, but I will tell you right now, honestly, OSX is even less supported in terms of gaming than even linux is. In terms of AI... nope. Since GPU is closed, most things related to GPU do not work, either in OSX or in a VM. Some do, but not all. And most work a lot better when you pony up the cash for something like parallels. On PC, yes, Qemu can compete with something like VMware or VirtualBox, but on mac, Parallels reigns supreme for some very good reasons. Also, like I said before, you wont be able to get rid of OSX completely, and I don't know how much you know about OSX, but it has some annoyances. Every time you want something that Apple didn't do, you have to pay for some 3rd party thing. Even for the most basic things an OS should have, like an applet to modify cooling profiles. They say these machines are never loud, and never hot. That's a lie too. They sometimes get very loud but for no apparent reason coz no components seems hot, and other times it is very hot and very silent, again for no explanation at all. Therefor I had to pay 15euros for an app that allows me to set manually the fans as I see fit. Which now I can do. It's annoying, but once you do it, you forget about it. What is however true about these machines is that they can only be one of these things at a time. Either loud, or hot. They can't be both at the same time. I keep the RPM for the fans at 3k, and they are both silent and cold at that speed. Fans can go up to 6k RPM, in which case it's like a jet trying to leave an aircraft carrier. And for the most part, system keeps the fans at 0. I don't know how the OS actually operates the fans, it was very dubious, that's why I got this app to manually adjust myself. And like I said 3k seems to be a sweet spot for me. Noise doesn't bother me, and it's also cold to the touch. But you see, I had to get that app to get there. That bothers me.

So not gonna lie, as far as cpu and memory and nvme and screen, speakers, keyboard and trackpad goes, amazing machine. Regardless of OS. But GPU IS and will continue to be hard to use regardless of what you do. Also the electrical consumption is freaking amazing considering what this thing can do. ALL my pis and network stuff and apple (Now I use a Mini too) add together to about 160ish W. My PC needed 400W just to idle, without monitors, or speakers or additional chargers and stuff. I'll tell you, with the current state of energy market in Europe, I'm very glad I switched even before this all started. But all things considered, I do not regret the purchase. In fact I went deeper by replacing some of the PI's that were too slow with a Mini, that also runs gentoo in parallels and doubles as a kodi machine.

The only thing I sometimes miss is Nvidia. Maybe for some OpenCV work, but I have another machine from a friend that I can use. Sometimes I miss playing some games in linux or windows to maybe use cheats, coz you can't cheat on PS4/5. Other than that... you rarely realise the PC is gone. Memory/Nvme/cpu speeds on these things are insane. If you can live without GPU stuff. If you can tolerate OSX. Not sure Asahi is ready. I mean, I wouldn't use it yet. It means giving up Kodi, at least for the mini I use as a server. As far as my laptop goes, I also am not ready to give up the little gpu access I have in OSX for Asahi. It wouldn't just be kodi, it would be slow scrolling in browser. Maybe limitations when it comes to things like bluetooth headphones. Maybe even pages like tinkercad.com (which I use quite often) couldn't work. No openGL support as of yet. So, realistically, you still have to live with OSX. Depends from person to person. I still tolerate it a lot easier than I can tolerate windows. But I do not love it. And there's also no way around it yet. That being said... the cpu is still freaking great and like I said, at this point with the energy market, it's a no brainer which machine I rely on.

I hope I answered your question without boring you too much. :)
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 498

PostPosted: Thu Sep 08, 2022 9:04 pm    Post subject: Reply with quote

Quote:
At WWDC 2022, Apple showcased its latest advancement in virtualization support on macOS. Apple Virtualization Framework enables configuring and creating virtual machines on Apple Silicon to run macOS or Linux. New in the upcoming macOS Ventura, Linux VMs can leverage the GPU and use Rosetta to run unmodified x86-64 Linux binaries.


https://www.infoq.com/news/2022/06/apple-virtualization-framework/

Not sure where Apple is going with this, but I guessed I'd drop it here.
Back to top
View user's profile Send private message
ScardracS
n00b
n00b


Joined: 03 Mar 2021
Posts: 14

PostPosted: Wed Nov 16, 2022 1:21 pm    Post subject: Reply with quote

Hi everyone. You can actually follow https://blog.devgenius.io/installing-gentoo-linux-in-apple-macbook-pro-m1-49e163534898 to install gentoo on Macs but if you are planning to install it on a non-fan version (for eg: MacBook Air) be sure to have a good cooling system because it tends to become really hot during compilation time.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Wed Nov 16, 2022 5:59 pm    Post subject: Reply with quote

ScardracS wrote:
Hi everyone. You can actually follow https://blog.devgenius.io/installing-gentoo-linux-in-apple-macbook-pro-m1-49e163534898 to install gentoo on Macs but if you are planning to install it on a non-fan version (for eg: MacBook Air) be sure to have a good cooling system because it tends to become really hot during compilation time.


I can also confirm that it _can_ get pretty hot. Although I didn't know Airs were fan-less completely. I guess they throttle like crazy then.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 3003
Location: Bay Area, CA

PostPosted: Sat Apr 22, 2023 8:07 pm    Post subject: Reply with quote

I recently installed Asahi Linux in a dual boot setup and I have been comparing portage speed in a chroot on Asahi vs AMD 3950x system (with 96GB RAM and 980 Pro 1TB NVME) I have. I am completely blown away by the performance of M1 MAX (from 2021). Its 10-core CPU easily finishes most emerges in half the time or less compared to 16-core (32 threads) AMD desktop system.

World update pretend takes about 20s compared to 90s on my desktop. Its similar (some ~100 packages are absent on arm64) world file with same USE flags, with about 2000 packages in total on both systems.

While the AMD system screams with temps reaching mid 80s during peak, Macbook Pro stays cool & quiet in the 50s.

I don't know how they did it but it feels like magical duo of performance and power efficiency!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3772
Location: Rasi, Finland

PostPosted: Sun Apr 23, 2023 8:11 am    Post subject: Reply with quote

devsk wrote:
While the AMD system screams with temps reaching mid 80s during peak, Macbook Pro stays cool & quiet in the 50s.

I don't know how they did it but it feels like magical duo of performance and power efficiency!
Apple's M -series chips really are efficient. Jeff Geerling has made measurements and M chips are at the top.
See his video.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 498

PostPosted: Wed Oct 25, 2023 5:07 pm    Post subject: Reply with quote

I've been using VMWare Fusion for a while now on my M1 MacBook. It does not have the problems mounting another Samsung T7 from within the virtual machine that UTM still suffers.

I never have put a wattmeter on the system while emerging but I have used the macos powermetric command to see that it thinks the processor is using 25 watts with all 8 perfomance cores at 100% and the economy cores at about 20%.

I use it whenever I feel like updating a Gentoo Pi, just move the drive and chroot in, so much faster.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum