2021-05-15
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:23Emantor has joined #asahi-dev
02:39phiologe has quit [Ping timeout: 245 seconds]
02:40phiologe has joined #asahi-dev
03:06rjeffman has left #asahi-dev ["Leaving"]
03:35KindTwo has joined #asahi-dev
03:35KindOne has quit [Ping timeout: 240 seconds]
03:37KindTwo is now known as KindOne
05:03jeffmiw has joined #asahi-dev
05:07jeffmiw has quit [Ping timeout: 245 seconds]
05:22VinDuv has joined #asahi-dev
06:00adamcstephens has quit [Quit: The Lounge - https://thelounge.chat]
06:04adamcstephens has joined #asahi-dev
06:48marcananyway, you all know where our website and twitter account are, so I'm not particularly concerned about contingency plans here; let's wait and watch for a bit, it won't be excessively disruptive to move if we have to
06:55m42uko has quit [Quit: Leaving.]
07:07m42uko has joined #asahi-dev
07:53Eighth_Doctorhey marcan 🙂
07:53Eighth_DoctorI've been following the progress on the Asahi effort with great interest (I'm even an early patron 😉), and I want to say thank you to you and everyone working on the Asahi bringup work :)
07:56Eighth_DoctorI saw that Linux 5.13 will include the patchset you submitted, and I believe Mesa 22 will include the GPU bits for GL acceleration
07:56Eighth_Doctorwhat's left for a Linux distribution to be able to bring up M1 mac support?
07:58Eighth_DoctorI'm interested because I'd personally like to integrate these bits and have Fedora be one of the first distributions to ship with fully complete Apple ARM Mac support, just as we were for x86 Macs years ago...
08:00marcanif you're interested in Fedora support and you really want to be in the bleeding edge, I would suggest bringing up and maintaining an RPM repo with our bleeding-edge package forks as they become available. That will get you support sooner than upstream (though hopefully not by much, since we want to keep the upstreaming pipeline going)
08:00Eighth_DoctorI don't really know where to start for integrating these bits into Fedora though, so hence the questions :)
08:00marcanright *now* though there isn't much to do other than perhaps investigate whatever infra that would require on your side
08:00Eighth_Doctormarcan: I'm okay with doing that, I currently lack ARM Mac hardware, but I can help in that way regardless as long as someone is willing to test if I haven't fucked it up :)
08:00marcanwell you need to at least build for ARM, which probably would best be done natively on ARM machines, but it could be any ARM64 box
08:00Eighth_DoctorFedora's infrastructure is capable of producing aarch64 RPMs natively in both official and community infrastructure
08:01Eighth_Doctorso that part is squared away :)
08:01Eighth_Doctorthere was one thing I had a question about with m1n1
08:01Eighth_Doctorit seems like it compiles in an image blob?
08:01marcanI'll be doing our equivalent for Arch Linux ARM (which is what asahi will be, just Arch with an extra repo and some installer glue)
08:02Eighth_Doctorliterally the asahi logo stuff :)
08:02Eighth_Doctoris there a way to make that separate or something so that it's swappable?
08:02Eighth_Doctorif it's not, that's fine, I'll come up with something, but it'd be nice if it was runtime swappable
08:03Eighth_Doctorwe try to make it easy in Fedora to trivially swap the branding
08:03Eighth_DoctorI don't?
08:03Eighth_Doctorisn't it the bootloader?
08:03Eighth_Doctorso like shim on x86 UEFI?
08:03marcanthe second stage will be u-boot, and the third stage will be up to the distro but presumably many will use GRUB
08:04marcanu-boot provides the UEFI environment, and will be embedded into m1n1 as an in-line payload
08:04Eighth_Doctoryeah, we'll definitely be using grub, though I think some adventurous folks will try sd-boot :P
08:04Eighth_Doctoror refind
08:04Eighth_Doctorsince Fedora's grub supports bls snippets, you can swap between sd-boot and grub easily
08:04marcanso our goal with our installer is that people who want to install Asahi can pick that, and people who want to use another distro can just install the m1n1+u-boot part and then boot a standard installer from that
08:05Eighth_DoctorI see
08:05marcanit's also worth noting that you cannot, and never will be able to, update m1n1 from Linux itself
08:05Eighth_Doctoryikes
08:05Eighth_Doctorthat's... fun
08:05Eighth_Doctorso you need macOS to do it, or something else?
08:05Eighth_Doctoroh lovely
08:05marcanyou need recovery mode, which is macos, but should be considered part of machine firmware
08:06Eighth_DoctorI wonder if Apple would be willing to do a "blessing" for distros that are sufficiently functional to avoid that
08:06Eighth_Doctorwell, yes, but you're telling me I can never make it "pop USB stick in and everything goes brrr"
08:07Eighth_Doctorwhich is kind of sucky :(
08:07Eighth_DoctorI didn't for mine?
08:07* Eighth_Doctoris confused
08:07Eighth_Doctoroh, mine is a 2014 Mac
08:07Eighth_DoctorI guess something changed between then and now
08:08marcanbut M1s are better; on M1s, m1n1 itself is basically "ad-hoc" signed for a given machine on install
08:08Eighth_Doctorso that means we probably want a helper program for macOS to walk someone through configuring for Fedora
08:09Eighth_Doctorso Apple didn't blend macOS with 1TR?
08:09marcanthis is *specifically* a *specific* recovery partition that is a core part of SFR (system firmware and recovery) and represents a trusted state and is triggered via physical button press
08:09marcanyou can't install m1n1 from normal macos either, or even from a regular macos recovery instance
08:10Eighth_Doctorso then how does this work?
08:10marcanso you really need to think of it as some "UEFI firmware thing" except it's not UEFI and it happens to be based on a macos kernel/gui
08:10Eighth_Doctoryeah, but it's a UEFI-ish thing that is not configurable from the OS side, which is...?
08:11marcanwell, for apple it kind of is because they have their own signatures and stuff, which is why they can update macos from macos, but sadly we can't do that
08:11Eighth_DoctorI see
08:11marcanthey allow it, but they require physical attestation for installation and first-stage updates
08:11Eighth_Doctorand this is better than UEFI how?
08:11marcanyou can have a fully Apple-signed, security-enforced macOS installed, which will play Netflix 4K and run iOS apps
08:12Eighth_DoctorI know of a few, but they're not exactly normal systems
08:12Eighth_Doctorbut it also means removing macOS is not an option
08:13Eighth_Doctorwell, replacing UEFI firmwares on PCs is definitely a thing
08:13Eighth_Doctorreplacing 1TR is most definitely not
08:14marcanbut it's just an extension of the existing stuff for iOS, which idevicerestore implements already
08:15marcanso adding the required stuff there should be all that's required to support recovering/resetting M1 macs from another Linux box
08:15marcan(a long time ago I wrote usbmuxd and worked on libimobiledevices and stuff which idevicerestore builds on...)
08:16Eighth_Doctorso what should I provide for asahi folks on Fedora?
08:16Eighth_Doctoror wanting to do asahi-ish stuff on Fedora?
08:17marcanI think most of the distro-side work, besides whatever you want to do to have bleeding-edge repos, is going to be about drivers
08:18EmantorRegarding Distro-Installation, I'd point to Asahi Instructions to install m1n1 and have m1n1 implement something like bootloader specification.
08:18marcanI want to take care of the early boot stuff and just present distros with a UEFI boot environment, but all the downstream user experience stuff matters
08:18Eighth_Doctoroh god, please don't remind me about the fact RHEL uses 64K pages for AArch64
08:19Eighth_DoctorFedora is 4K instead of 64K
08:19Eighth_Doctor64K is a miserable failure outside of limited server workloads
08:20Eighth_Doctoras far as I know, AWS is the only AArch64 server maker that actively recommends 64K page sizes
08:20Eighth_Doctortheir Graviton2 CPU is optimized for it
08:20marcanfwiw there are open questions around boot provisioning; right now the install flow does require a macos install to clobber at least, and part of this is blocked on Apple bugs (yes) and further investigation
08:20marcanbut unless we hit a major blocker, my idea for our install flow is that we tell users "hold down the power button, go to "Options", open a terminal, and type curl alx.sh | sh"
08:21Eighth_Doctorthey provide curl in 1TR?
08:21Eighth_DoctorI'm kind of surprised
08:21Eighth_Doctorbut no Python, right?
08:21marcanand as of a few releases ago you can run your own binaries (you used not to be able to due to codesigning)
08:21marcanhowever they do still have entitlements, so we can't directly interface with boot policy stuff, which is a shame
08:22Eighth_Doctoris the 1TR environment fully graphical?
08:22Eighth_Doctoror just a graphical terminal?
08:22Eighth_Doctoroh god
08:22Eighth_Doctorwell, that's been a buggy mess forever
08:22* Eighth_Doctorstares unamused at Disk Utility
08:23Eighth_DoctorI wonder if Fedora Media Writer could be adapted for 1TR
08:24marcanto downgrade security you need provisioned credentials, and to provision credentials you need to boot (signed) macOS, which means right now the install flow is "install macOS, then replace it with m1n1 and optionally shrink the APFS container and delete most of macOS"
08:24marcanwe require some blobs from macOS to provision m1n1, but I have already proved that that works manually; but then I run into the creds issue
08:24marcanthe thing that will fix this is when Apple fixes "importing" foreign external macOS installs
08:24marcanbecause that means they will have to be able to import credentials from disk into the SEP
08:25marcanand at that point we can just create a macOS credential database and direct users to the Apple flow to make it work
08:25Eighth_Doctordo USB drives work in 1TR?
08:25Eighth_Doctorso in theory, I could from macOS direct the creation of a USB media with a 1TR application for final setup?
08:26Eighth_Doctorinteresting
08:26marcan(this is to avoid e.g. someone installing a vulnerable OS and then compromising a machine that way; they only sign the latest few versions)
08:26Eighth_Doctorno, that makes sense
08:27Eighth_Doctorright
08:27marcanbut again this is all somewhat dependent on finer points, and we might run into issues; I'm hopeful if it comes down to stupid bugs I can get Apple to fix them eventually
08:27Eighth_Doctorwell, I didn't say it :P
08:27Eighth_Doctor(I was thinking it...)
08:28marcanit can *barely* boot from external macos media (which by the way works by copying the kernel/bootloader to internal disk; the low-level bootloader cannot boot from USB/TB)
08:29marcanbecause iBoot can barely show an apple on the screen and an oops message, and doesn't even take keyboard input
08:30marcanthis is also why I call 1TR part of firmware, you really do need it for basic functionality
08:30marcanso I do not expect anyone to ever remove 1TR (you can if you want to, but you'll be stuck without e.g. boot selection until you recover via DFU mode)
08:30pipcet[m]but the boot chime is in iBoot, right? Good to see they put the important stuff there, rather than a usb stack.
08:31* Eighth_Doctoris trying to think of the workflow for provisioning Fedora on a Mac
08:31Eighth_Doctorthe former
08:32Eighth_DoctorI don't think live systems are possible with this model
08:32marcanEighth_Doctor: depends on how much control you want to have; e.g. if people put up disk images we can just add to our alx.sh script I certainly would want to give people a list of options in our install script
08:32Eighth_Doctorso maybe, a new variant of FMW that writes a USB stick that contains the OS disk image + a 1TR app for installation, reconfigures the firmware to enroll Fedora, writes it to a partition, then reboot?
08:32Eighth_Doctormarcan: I'm okay with as many options :)
08:33Eighth_Doctorbut I'm trying to think of "newbie interested in Linux on their Mac" case (which was a common case when I was in college a decade ago...)
08:34marcanwe don't have ext4 mounting in 1TR of course, but we could use a userspace library or just rely on the disk image being sane; the EFI partition of course will be FAT32. m1n1 itself gets installed on APFS as that is all iBoot supports (along with iBoot2 and device firmwares, that layer we do not control but have to provision)
08:34marcanwell, I want to make our installer as newbie-friendly as I can in textmode, and if someone wants to do a graphical version I would certainly welcome that :-)
08:35Eighth_Doctorwell, if a TUI exists, maybe a Fedora GSoC project to give it a coat of paint with some GUI goodness could be in the cards
08:35Eighth_Doctoriirc, the original Fedora branding in the Mac UEFI environment work was a GSoC effort years ago too
08:36Eighth_Doctor(Fedora is one of the few distros that natively installs to the HFS+ ESP and will correctly set its branding icon in the OS firmware)
08:36Eighth_Doctorerr Mac firmware
08:36marcanfwiw the Asahi stuff is more about the core M1 support project than a distro per se, so an Asahi logo briefly flashing before Fedora takes over at the UEFI stage is not incongruent
08:37Eighth_Doctorbtw, example: https://twitter.com/Det_Conan_Kudo/status/1365749523138674690/photo/1 :D
08:37marcanthat's another thing, "Linux" shows up as macOS on the boot picker right now, but I hope there's a way to change that
08:38Eighth_Doctorif it works like it did on x86, there's an ugly plist file involved :D
08:39Eighth_Doctormarcan: actually, if the Asahi logo goes to U-Boot as the efi logo thingy, then Fedora can safely dual brand
08:39Eighth_Doctorwhich would be sweet
08:39Eighth_Doctorgimme a sec, I'll look it up
08:40marcanalso fwiw, m1n1 does support inline payloads so at least adding support for replacing the logo that way (i.e. easily at m1n1 install time) is trivial
08:40Eighth_Doctoroh neat
08:41Eighth_Doctorthat'd be quite useful
08:41marcanso while you can't change the logo post install or keep it as a separate file, it's certainly easy to add support for changing the logo at install time easily
08:41marcanI did a nasty trick where I have a 64MB segment at the end of the mach-o, then chop it off
08:42Eighth_Doctorthat was the change in Fedora 30 implementing it
08:43Eighth_Doctorsince there's no ACPI on macs, we'd need another path, but that could be designed into the uboot path
08:43Eighth_Doctorfrom m1n1
08:43Eighth_Doctorsince uboot fakes UEFI anyway, it can do whatever
08:43marcanEighth_Doctor: oh you mean framebuffer handover? yeah I want to do that as cleanly as possible
08:44Eighth_Doctorwell I did until you started talking about this
08:44Eighth_Doctorbecause I didn't understand the role of m1n1
08:44marcaniBoot initializes the framebuffer, puts an apple there; m1n1 replaces it with the Asahi logo; whatever comes after m1n1 pre-OS will still use the same framebuffer (e.g. u-boot) and hopefully Linux will smoothly take over that
08:46marcanUEFI obviously has the UEFI framebuffer stuff and we can support that I think, for bootloader bits (though these macs use a 10bpc mode, not sure if the UEFI spec supports that, but if we *really* want to m1n1 or u-boot could probably flicker-free downgrade that to 8bpc for compat)
08:47marcanand then as long as the DRM/KMS driver knows how to hand-off (which it will because it's all specific to this hardware anyway) it should just work
08:48Eighth_Doctorthe way Plymouth does it right now does: https://gitlab.freedesktop.org/plymouth/plymouth/-/blob/master/src/plugins/splash/two-step/plugin.c#L1181-1182
08:48Eighth_Doctorbut that can be fixed if there's another defined path
08:50marcanohh, so, like, passing a firmware background explicitly instead of just saying "contents of the framebuffer"?
08:54vimal has joined #asahi-dev
08:55marcanm1n1's job is to build a devicetree for the next stages to use among other things, and currently m1n1 protects itself in memory (it may free some of its memory in the future but some things will require parts of it to stay resident; this is all subject to change as more details are worked out) so it would be fairly simple to establish DT bindings to do the same thing that ACPI table does
08:58marcanso yeah most of m1n1 is graphics (all of that could be put in a discardable section to be dropped post-boot)
08:59marcanI don't really care about .5MB right now, but much further down the line when we know what we need to stay resident this is easy enough to fix
08:59marcanand sure, if we support logos as payloads there's no reason to embed the default logo, we can just make the installer always add it unless overridden
09:00marcanI already have a deflate implementation, so at this point just supporting PNGs outright wouldn't be a big deal (hopefully with a more minimal implementation than libpng though :P)
09:01pipcet[m]or, you know, we could leave the graphics to the next stages and just boot the damn thing.
09:02marcananother story is that m1n1 itself isn't really configurable, e.g. I'm writing a hypervisor into it. not exactly a lot of code, much less than the graphics, but presumably at some point further down the line we're going to want more build-time configurability
09:02pipcet[m]if it's going to be replaced by the distro anyway there's no reason for the flicker :-)
09:04Eighth_DoctorI personally would like Asahi + Fedora
09:05Eighth_Doctoras long as it's okay with both projects (which I can't see how it wouldn't be)
09:05Eighth_Doctorif I thought I could sway you, I'd get you to make Asahi Linux as a Fedora Remix, but I don't think I could :)
09:05marcanheck it will probably help clear up some confusion; assuming the ALARM folks don't object I'll probably co-brand our images that way in the documentation/etc
09:06Eighth_Doctoryeah, I was confused at first too
09:06Eighth_Doctorit might actually help to have a couple of launch flavors when things are ready
09:06marcanI want to have a Gentoo overlay too, though I'm going to need an arm64 buildbox if I'm going to be making stages
09:07marcan(I personally use more Gentoo than Arch though I use both, but it would be somewhat silly to offer Gentoo as our default; these things are fast but forcing people to compile KDE is not my idea of user friendly)
09:07Eighth_Doctoras one of the leaders of the Fedora KDE SIG, I'd be interested in making it top tier for Asahi 😈
09:08JTLjust get the hypothetical M2 Mac mini or something down the line, and use that as an ARM64 buildserver
09:12Eighth_Doctormarcan: my (admittedly bad) profile on Fedora: https://fedoraproject.org/wiki/User:Ngompa
09:20Eighth_Doctormarcan: my "interview" for the FESCo elections (which I won last year) probably paints me in a slightly better light: https://communityblog.fedoraproject.org/fesco-election-interview-with-neal-gompa-ngompa/
09:21Eighth_Doctoryou'd be right
09:21Eighth_Doctor is now known as Conan_Kudo
09:21Conan_Kudoafter all, this is my primary self :D
09:22Conan_KudoI've wanted to visit Japan for years, but I've been afraid to
09:22Conan_KudoI've heard that if you don't know Japanese at all, you're kind of screwed
09:22Conan_Kudo is now known as Eighth_Doctor
09:23Eighth_DoctorI also was "weeb" enough to do fansubbing work years ago :)
09:23Eighth_DoctorI picked up on some basic grammar and tone/context stuff and used that to QC Detective Conan fansubs
09:24Eighth_Doctorbut that was a long time ago :)
09:24Eighth_DoctorI know basic grammar and stuff, but I can't read it
09:24svenpeterI went to Japan a few years ago on a whim. I didn’t watch anime or anything and couldn’t speak or read a single word. No issues at all there :)
09:24Eighth_DoctorKanji and Kana escape me
09:25Eighth_DoctorI have extremely limited comprehension with romaji, but I wouldn't count it as usable
09:25Eighth_Doctorwell then maybe I'll do it after this pandemic stuff is over
09:26Eighth_DoctorI got my second shot on Tuesday and I'm mostly recovered from that :)
09:26Eighth_Doctorwell, it'd probably be next year anyway
09:26Eighth_Doctorthough I am internally crying about losing my Delta rewards status
09:26Eighth_Doctorthey didn't freeze it this year like they did last year
09:27Eighth_DoctorI used to fly at least 3-4 times a year for the past five years
09:27marcanmy status got renewed a few months back, I think I'm good until the end of the year, but I'm not sure if I'll have to do some stuff right then...
09:27Eighth_Doctorlast year sucked
09:27Eighth_DoctorI will probably try to beg Delta to preserve it somehow
09:29Eighth_Doctoryeah, I'm not even supposed to travel until at least October 1
09:29marcanapparently I could purchase enough tier miles for, like, the cost of one flight give or take?
09:30Eighth_Doctorugh, I might actually consider it too
09:31Eighth_Doctorfuck, my status is gone completely
09:31Eighth_DoctorI'm back to being a regular SkyMiles member
09:32Eighth_Doctorthat means no more cheap upgrades
09:34Eighth_Doctorblech
09:35Eighth_Doctorwell, it seems like the "conciliatory gesture" is that earning the status is supposed to be massively easier in 2021
09:35Eighth_Doctor75% more earned per trip
09:36Eighth_Doctoryeah, airlines suck
09:36marcanrequalification kind of sucks for me, I'm with Aegean and I got in when it was really easy
09:37* Eighth_Doctorshrugs
09:37Eighth_DoctorI travel twice a year (domestically) just to visit my family
09:37Eighth_Doctorso it's not a huge deal, it's just annoying
09:38marcanyeah, I used to roundtrip to europe ~5x yearly at peak - 4 events I staffed, 1 CCC/xmas for family
10:21aquijoule_ has quit [Ping timeout: 240 seconds]
10:22richbridger has joined #asahi-dev
10:26odmir_ has joined #asahi-dev
10:31odmir_ has quit [Ping timeout: 268 seconds]
11:58jeffmiw has joined #asahi-dev
12:02jeffmiw has quit [Ping timeout: 246 seconds]
12:07zkrx has quit [Ping timeout: 268 seconds]
12:28zkrx has joined #asahi-dev
13:06jabashque has quit [Quit: Connection closed for inactivity]
13:17VinDuv has quit [Quit: Leaving.]
14:17modwizcodemarcan: that's crazy amounts of travel to me wow
14:18odmir has joined #asahi-dev
14:23odmir has quit [Ping timeout: 260 seconds]
14:34VinDuv has joined #asahi-dev
15:44kettenis has quit [Ping timeout: 252 seconds]
15:56kettenis has joined #asahi-dev
16:22zkrx has quit [Ping timeout: 260 seconds]
16:24herbas has joined #asahi-dev
16:34zkrx has joined #asahi-dev
16:53herbas has quit [Quit: herbas]
16:59kettenis has quit [Ping timeout: 252 seconds]
17:01kettenis has joined #asahi-dev
19:43jeffmiw has joined #asahi-dev
19:47jeffmiw has quit [Ping timeout: 240 seconds]
19:56alice[m] has joined #asahi-dev
20:25DarkShadow44 has quit [Ping timeout: 246 seconds]
20:45odmir has joined #asahi-dev
20:47jeffmiw has joined #asahi-dev
20:52VinDuv has quit [Quit: Leaving.]
20:54odmir has quit [Ping timeout: 240 seconds]
21:04DarkShadow44 has joined #asahi-dev
22:31jeffmiw has quit [Remote host closed the connection]
22:40jeffmiw has joined #asahi-dev
23:00DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
23:01kabutten[m] has joined #asahi-dev
23:08taziden has quit [Ping timeout: 250 seconds]
23:08kabutten[m] has left #asahi-dev ["User left"]
23:46taziden has joined #asahi-dev
23:50jeffmiw has quit [Remote host closed the connection]