#
#asahi · 2022-10-15 13:28
borisk(I have that part nailed so it might be quicker than setting up m1n1 proxy)
#asahi · 2022-10-15 13:27
boriskmarcan: got it, if you can propose a code fragment to add to m1n1 (presumably stage 2), I can give it a try
#asahi · 2022-10-15 13:24
marcanwe won't be doing any of that
#asahi · 2022-10-15 13:24
marcanmacOS probably enables it after checking the version and possibly upgrading it
#asahi · 2022-10-15 13:24
marcanno, this is about the USB3 hub which has a firmware flash
#asahi · 2022-10-15 13:24
boriskmarcan: I am way out of my depth here, but shoudn't this GPIO be poked after loading the firmware (which happens in the kernel)?
#asahi · 2022-10-15 13:22
boriskmarcan: not at the moment but I can probably set it up
#asahi · 2022-10-15 13:21
marcanborisk: do you have a m1n1 proxy setup?
#asahi · 2022-10-15 13:21
marcanI wonder where we should do that... maybe in m1n1? I'm not sure it's worth representing this to the kernel
#asahi · 2022-10-15 13:20
marcanI bet that rst needs to be flipped
#asahi · 2022-10-15 13:20
marcan function-usb3hub_rst = 133:GPIO(0xe7, 0x1)
#asahi · 2022-10-15 13:20
marcan function-usb3hub_fwload_done = 133:GPIO(0xe8, 0x0)
#asahi · 2022-10-15 13:19
boriskmarcan: if you can give me a bit more specific instrcutions (or code fragment to add), I would be happy to try.
#asahi · 2022-10-15 13:16
marcanwe might need to poke some GPIOs for the firmware on the hub to start
#asahi · 2022-10-15 13:14
boriskI just tried to plug something into all 4 ports (two front, two back) and there is no life in any of them. Will try without the firmware now to see if any lsusb output changes.
#asahi · 2022-10-15 13:10
jannaudoes macos reveal how the ports/hubs are wired up? I would have expected that at least one port starts working and the other 3 are hooked up through the hub
#asahi · 2022-10-15 13:08
jannauhas the lsusb output changed compared to without loaded firmware?
#asahi · 2022-10-15 13:07
boriskIn dmesg I see these two lines: "xhci_hcd 0000:04:00.0: Firmware version 0x10250090816" and "xhci_hcd 0000:04:00.0: Firmware version 0x81170181119"
#asahi · 2022-10-15 13:04
boriskOk, I've now tried asahi-6.0-rc6-1 and the USB-A ports (and USB-C in front) are still dead. Specifically: (1) using the asahi-dev .config, (2) u-boot is bundled with DTs from asahi-6.0-rc6-1, (3) asmedia firmware is loaded.
#asahi · 2022-10-15 13:03
jannauborisk: any sign of life on the usb-c ports on the front?
#asahi · 2022-10-15 10:48
boriskFor the record (in case someone stumbles on this in the logs), I've tried to backport the "xhci-pci: asmedia: Add a firmware loader for ASM2214a chips" commit (and the previous one) to 5.19 from "prod". While the patches applied cleanly and I confirmed the firmware is loaded successfully, the USB-A ports are still dead on Mac Studo M1 Max. Will try asahi-6.0-rc6-1 from "dev" next.
#asahi · 2022-10-15 10:23
seb4nih47Back Here again after migrating to another mobile client :) should have used IRC in the first place
#asahi · 2022-10-15 09:56
mpsmarcan: thank you
#asahi · 2022-10-15 09:47
marcanI intend to keep things mostly synced where possible
#asahi · 2022-10-15 09:47
marcanbut anyway obviously I will rebase anyway
#asahi · 2022-10-15 09:46
marcanI'm not sure those apply to brcmfmac, seeing as it runs a lot of that in firmware
#asahi · 2022-10-15 09:45
j`eymarcan: https://lwn.net/Articles/911062/
#asahi · 2022-10-15 09:43
marcanmps: new wifi bug?
#asahi · 2022-10-15 09:08
boriskj`ey: I am on Debian but it was fairly easy to hack the post-install script to run manually (I could even reuse liblzfe.so from asahi-dev).
#asahi · 2022-10-15 08:52
Core1416i might get an used M1 air
#asahi · 2022-10-15 08:50
Sonithere's no way we'll ever own an apple silicon device but we're so glad this project exists, thank you for making this
#asahi · 2022-10-15 08:47
j`eyborisk: im confused, are you on debian or arch now?
#asahi · 2022-10-15 08:43
adryzzalright switched to irc
#asahi · 2022-10-15 08:41
boriskjannau, j`ey: ok, I've successfully extracted asm2214a-apple.bin using asahi-fwextract from asahi-dev, thanks again for the tips, much appreciated!
#asahi · 2022-10-15 08:16
boriskjannau, j`ey: thanks, will try to go this direction and report back!
#asahi · 2022-10-15 08:15
j`eyborisk: then the fwextract script should be all you need to run. as jannau said that happens automatically on the asahi distro package
#asahi · 2022-10-15 08:13
boriskj`ey: yes, there is kernelcache.release.mac13j next to all_firmware.tar.gz
#asahi · 2022-10-15 08:13
jannauborisk: the package post install hook calls it. you can also run it manually but it just needs to run once per installed version
#asahi · 2022-10-15 08:12
boriskjannau: sorry, did not mean to offend, just trying to understand how everything fits together
#asahi · 2022-10-15 08:10
mpsthough I didn't looked deeply
#asahi · 2022-10-15 08:10
j`eyborisk: ok, do you have kernelcache anywhere on the ESP?
#asahi · 2022-10-15 08:10
jannauborisk: well, if you ignore us it's hard to help you
#asahi · 2022-10-15 08:09
mpsjannau: and didn't saw fixes in particular drivers
#asahi · 2022-10-15 08:09
jannauj`ey: the kernelchache should be a separate file and not in all_firmware.tar.gz
#asahi · 2022-10-15 08:09
mpsjannau: I see few fixes in cfg80211 also
#asahi · 2022-10-15 08:09
boriskjannau: I looked at it, but it seems to be just a Python package that something needs to call and I am not sure what that something is. Also, I suspect because my all_firmware.tar.gz does not contain kernelcache*, it won't be of much use?
#asahi · 2022-10-15 08:07
jannaumps: do they affect brcmfmac as well, I just saw mac80211 and assumed they affect only hw/drivers software mac
#asahi · 2022-10-15 08:06
boriskj`ey: No, no files like this.
#asahi · 2022-10-15 08:05
jannauborisk: have you already installed asahi-fwextract from the asahi-dev repository
#asahi · 2022-10-15 08:04
j`eyborisk: does the all_firmware tarball contain a kernelcache* file?

plus ›