#asahi · 2021-12-20 11:11
marcanif anyone has machines with brcmfmac wifi cards (any architecture), it would be helpful if you could test this patch and tell me if it breaks anything: https://gist.github.com/marcan/9c724c633f50ec16f159cc5f1ab2928c#asahi · 2021-12-20 10:43
marcanyeah, macOS doesn't really like hypervisor time warping in some contexts :-)#asahi · 2021-12-20 10:43
marcanahaha#asahi · 2021-12-20 09:38
marcanhowever, are those really single 2.0 hubs, or themselves chains?#asahi · 2021-12-20 09:38
marcan2.0 should work, 1.0 hubs wouldn't#asahi · 2021-12-20 02:47
marcanthe idea is the DCP driver will default to offering resolutions that exclude the upper pixels#asahi · 2021-12-20 02:21
marcanthere's no "by default", you have to specify the input and output resolution explicitly for each plane#asahi · 2021-12-20 02:20
marcanpretty sure the panel TCON can scale too, though I don't know if Apple ever uses that feature#asahi · 2021-12-20 02:20
marcanof course DCP scales, that's half of its job#asahi · 2021-12-19 15:35
marcanit needs its own changes#asahi · 2021-12-19 15:34
marcanit's a different function#asahi · 2021-12-19 15:33
marcanthe firmware likes to crash on startup for some reason#asahi · 2021-12-19 15:32
marcanit's not done yet#asahi · 2021-12-19 10:09
marcanreminder that u-boot cannot do nvme properly with linux yet#asahi · 2021-12-19 08:47
marcanit actually comes up, then immediately crashes#asahi · 2021-12-19 08:46
marcanit outright crashes; at least the '87 has console debug and spits out a big crashlog#asahi · 2021-12-19 08:44
marcankettenis: I suspect there's a race condition somewhere, where the firmware comes up before the host has initialized something it needs to initialize, and crashes#asahi · 2021-12-19 08:41
marcansure, but until we're at the point where it works properly for *me* and I've implemented everything that needs implementing there's no point in people trying it, because you're all just going to run into all the issues I already know about#asahi · 2021-12-19 08:38
marcanif I didn't link a branch for people to try then it's not ready#asahi · 2021-12-19 08:38
marcan"it worked once for me" != "here's a branch for everyone to test"#asahi · 2021-12-19 08:37
marcanthat's just something I pushed last night because alyssa wanted to look at my OTP parser#asahi · 2021-12-19 08:37
marcanseriously, you guys...#asahi · 2021-12-19 08:37
marcanyes, it's not ready yet, that's why it says "wip"#asahi · 2021-12-19 08:34
marcanthe wifi patches aren't ready yet#asahi · 2021-12-19 08:34
marcan13:28:34 <@marcan> pushed to asahi-installer, go to src/ and run python -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar#asahi · 2021-12-19 07:42
marcanyeah, it works sometimes and fails sometimes, wonder what's up#asahi · 2021-12-19 07:35
marcanspoke too soon, fails now? maybe there's some race#asahi · 2021-12-19 07:24
marcandifferent bank sizes for chunks of RAM at the end; the calculation assumes a constant bank size#asahi · 2021-12-19 07:23
marcanah... I think I know what's going on#asahi · 2021-12-19 07:18
marcanI guess there's some kind of carveout or something we don't know about#asahi · 2021-12-19 07:18
marcannot sure why the ramsize calculation that works for all the other chips doesn't work here#asahi · 2021-12-19 07:18
marcanlooks like 4387 works fine too with the macaddr fix and proper ramsize#asahi · 2021-12-19 06:40
marcanmost of the rest is not really related#asahi · 2021-12-19 06:39
marcanlong[m]: wifi yes, also keyboard/touchpad may improve (at least code-wise, not sure if anything users would notice)#asahi · 2021-12-19 05:59
marcanI semi-recently made it work for Monterey, it should work on all machines#asahi · 2021-12-19 05:59
marcantpw_rules: it works, I haven't tested NOR destruction yet#asahi · 2021-12-19 05:33
marcanI'd rather just ship everything for everyone#asahi · 2021-12-19 05:33
marcanmaybe, but then we'd have to start shipping a list of firmwares to filter, and meh#asahi · 2021-12-19 05:32
marcanI intend to work that out once the M1 stuff is done, so the same patch works for everyone#asahi · 2021-12-19 05:32
marcanwhich are largely identical as far as wifi, except the module name and antenna SKU will have to come from DMI or UEFI vars or something#asahi · 2021-12-19 05:32
marcanno, some are for T2 machines#asahi · 2021-12-19 05:30
marcanyeah, I'll just sort the output of the final file generator#asahi · 2021-12-19 05:29
marcanyeah, I think right now I sort the files at scan time but not directories?#asahi · 2021-12-19 05:27
marcansounds like I should have the firmware copier also fix these things#asahi · 2021-12-19 05:27
marcanalso there's some spurious whitespace in a few of Apple's nvram files that Linux hates#asahi · 2021-12-19 05:27
marcanlooks like all but one of the standard linux-firmware nvram files have a default MAC burned in#asahi · 2021-12-19 05:25
marcanah, actually, NVRAM wasn't being downloaded; with that added it fails... because apparently it *really* wants a macaddr entry in the nvram? heh#asahi · 2021-12-19 04:35
marcanthis also means we don't need any staging space for the ipsw; everything is downloaded straight to the destination#asahi · 2021-12-19 04:34
marcanwe're already downloading the whole 1GB recovery image part anyway, so the wifi firmware isn't anything extra#asahi · 2021-12-19 04:33
marcanit's just an HTTP-backed block cache layer under the standard zip support in python