#asahi · 2021-04-21 12:06
pipcet[m]their main hack is that the mac address is stored in the device tree rather than on the device#asahi · 2021-04-21 12:04
pipcet[m](that's wifi, not bluetooth, iiuc)#asahi · 2021-04-20 20:30
pipcet[m]may I ask what the problem is with NVMe? It appears to work quite nicely here.#asahi · 2021-04-20 19:51
pipcet[m]is that code available somewhere? It'd be cool to get that to work and it doesn't sound entirely trivial :-)#asahi · 2021-04-20 19:48
pipcet[m]anything special you needed to do to get the UDC to show up?#asahi · 2021-04-20 19:46
pipcet[m]sven: do you have the DWC3 working as a USB gadget in Linux or just in m1n1? I'm having a bit of a hard time doing the former#asahi · 2021-04-20 19:43
pipcet[m]but, as I said elsewhere, they have email addresses and they do sometimes respond to emails#asahi · 2021-04-20 19:42
pipcet[m]not really, I expect it's the community reaction that made them reconsider putting more resources into it#asahi · 2021-04-20 19:42
pipcet[m]I imagine they had a rogue employee working on it and don't know what to do with it yet...#asahi · 2021-04-20 18:34
pipcet[m]I'm sure they've renumbered the gP pins ;-)#asahi · 2021-04-19 20:35
pipcet[m] * I don't think I have HDMI, no#asahi · 2021-04-19 20:34
pipcet[m]I don't think so#asahi · 2021-04-19 20:32
pipcet[m]ah, I can find gP0f, which...yes. No gP09 in my device tree, and no gP14 either, but I suppose they might exist on the Mini?#asahi · 2021-04-19 20:28
pipcet[m]any idea what gP09, gP0f, and gP14 are? They're also defined and reserved in the Corellium device tree, but they're not actually used, as far as I can tell.#asahi · 2021-04-19 20:09
pipcet[m]doesn't give us a license to use it if Apple claim copyright on the names. I don't think they can, but I thought I'd ask to be safe#asahi · 2021-04-19 18:50
pipcet[m]I've documented a few of the SMC keys at https://github.com/AsahiLinux/docs/wiki/HW:SMC. I have a list of all the ones on my system here, obtained from the SMC itself, but I'm not sure whether it would be legal to post the entire list...#asahi · 2021-04-19 12:50
pipcet[m]thanks, turns out it was nanoseconds since I got my mac rather than microseconds since the epoch. What's three orders of magnitude between friends? :-)#asahi · 2021-04-19 07:17
pipcet[m]robinp: if I'm reading the SMC return values correctly, turning off the backlight does save a lot of power, so that's good. What's not so good is it appears the Corellium code isn't sufficient to start charging the battery after the USB-C power cable is reconnected, although it does charge when booted with the power cable plugged in.#asahi · 2021-04-18 20:50
pipcet[m]what's the usual epoch on macs?#asahi · 2021-04-18 18:16
pipcet[m]speaking of which, that's one of the SMC keys interpreted, 1422 to go :-)#asahi · 2021-04-18 16:14
pipcet[m]anyway, it's key "gP12" on the SMC; 1 enables, 0 disables.#asahi · 2021-04-18 16:10
pipcet[m]I suppose it's likely that it does, but the display subsystem has been strange to me so far...#asahi · 2021-04-18 16:02
pipcet[m]I mean, fighting light pollution is all good and noble, but if it's the only thing that's doing...#asahi · 2021-04-18 16:01
pipcet[m]hmm. Turning off the main panel's backlight is easy enough on the MacBook Pro, but does it save any power?#asahi · 2021-04-17 21:07
pipcet[m]+0x10 isn't writable, either#asahi · 2021-04-17 21:06
pipcet[m]there's certainly no prescaler in +0x00 that affects anything, and +0x08 doesn't show anything in the bits corresponding to channel 1.#asahi · 2021-04-17 21:05
pipcet[m]not really?#asahi · 2021-04-17 20:59
pipcet[m]I had a quick look at pwm-* and they seemed different, but I'll have another look at that one...#asahi · 2021-04-17 20:40
pipcet[m]so what about the touchbar thingy? I think that has a separate backlight ...#asahi · 2021-04-17 20:32
pipcet[m]makes sense#asahi · 2021-04-17 20:12
pipcet[m]does anyone happen to know which API keyboard backlights are supposed to use? pwm-leds or pwm-backlight?#asahi · 2021-04-17 20:07
pipcet[m]https://github.com/AsahiLinux/docs/wiki/HW:MacBook-Pro-keyboard-backlight-(FPWM0)#asahi · 2021-04-17 19:05
pipcet[m]probably a good idea. No idea about the hardware side of it, I just saw it in the device tree (and I think it was mentioned in the Corellium code or docs somewhere...)#asahi · 2021-04-17 18:39
pipcet[m]the built-in power metering/energy budgeting looks fairly sophisticated (plus there are all those temperature sensors), so maybe we don't need that meter...#asahi · 2021-04-17 18:22
pipcet[m]so I was looking for the most trivial device in my MacBook Pro's ADT, and I think I found it: I've figured out enough about the keyboard backlight PWM for it to be useful, I think; I can control it from m1n1 or Linux now, no driver code yet though#asahi · 2021-04-14 20:22
pipcet[m]it really is, thank you#asahi · 2021-04-14 20:05
pipcet[m]would any further testing help to get this merged soon?#asahi · 2021-04-14 20:01
pipcet[m]I finally got around to testing the USB ACM code, and it appears to work most of the time. I can now use m1n1! :-)#asahi · 2021-03-14 20:55
pipcet[m]I've finally managed to beat up the Corellium source code enough that it compiles a fully working kernel again#asahi · 2021-03-13 20:49
pipcet[m]so the idea would be to run macOS and letting it believe it was directly on hardware, but to intercept MMIO and MSR accesses and log them? what would we do about unknown instructions?#asahi · 2021-03-11 19:01
pipcet[m]but I built their kernel with their initrd, and it still doesn't work. So I must be doing something else wrong.#asahi · 2021-03-11 19:00
pipcet[m]just a rather small stripped binary /init#asahi · 2021-03-11 14:07
pipcet[m]but now I know it's gzip, I can just find the cpio image in the macho by looking for the signature! How did I miss that?#asahi · 2021-03-11 14:07
pipcet[m]er, the firmware blob#asahi · 2021-03-11 14:07
pipcet[m]their firmware blob is on the nvme disk which it does find#asahi · 2021-03-11 14:06
pipcet[m]modules, I believe.#asahi · 2021-03-11 13:58
pipcet[m]and the kernel boots, but usb, keyboard, touchpad, wifi are all broken (framebuffer works, though)#asahi · 2021-03-11 13:55
pipcet[m]this is from a running system with their nvme kernel, /proc/config.gz#asahi · 2021-03-11 13:55
pipcet[m]jannau: CONFIG_INITRAMFS_SOURCE="~/cmw/avirt/psc/linux64/initrd-autofs.cpio.gz"#asahi · 2021-03-11 13:39
pipcet[m]what's also weird is that they've continued working on the kernel after producing the mach-o image they offer for download. Which, if it's based on the code on github, must do things in the initrd that I don't know about yet, because just rebuilding it from the relevant commit results in a broken kernel.