#
✕ nick:marcan
#asahi-dev · 2021-10-08 17:13
marcanwe should add that DAPF stuff, it looked pretty simple when I looked at it but I never did experiments
#asahi-dev · 2021-10-03 15:34
marcanlovely
#asahi-dev · 2021-10-03 15:28
marcansure :p
#asahi-dev · 2021-10-03 15:16
marcanlol
#asahi-dev · 2021-10-03 15:09
marcanthis has a BCM43602
#asahi-dev · 2021-10-03 15:09
marcanhm? my iMac should have it then, pretty sure it can run windows
#asahi-dev · 2021-10-03 15:08
marcanheh
#asahi-dev · 2021-10-03 15:04
marcanif we can get that from OTP too, it would make this whole scheme work for the x86 macs too
#asahi-dev · 2021-10-03 15:04
marcanno DT there to tell it the island
#asahi-dev · 2021-10-03 15:04
marcanI wonder how this works on x86
#asahi-dev · 2021-10-03 15:01
marcanyeah
#asahi-dev · 2021-10-03 14:58
marcan(at least on some machines)
#asahi-dev · 2021-10-03 14:58
marcanIIRC
#asahi-dev · 2021-10-03 14:58
marcanthe wifi modules are
#asahi-dev · 2021-10-03 14:58
marcanwhich is not ideal
#asahi-dev · 2021-10-03 14:57
marcanyeah, but as I said then that makes the rootfs nonportable
#asahi-dev · 2021-10-03 14:55
marcan(potentially more with versions in the future)
#asahi-dev · 2021-10-03 14:55
marcanyeah, but that doesn't work for us because we have at least two different nvram files per board
#asahi-dev · 2021-10-03 14:55
marcanah
#asahi-dev · 2021-10-03 14:54
marcankettenis: you mean the corellium driver?
#asahi-dev · 2021-10-03 14:46
marcan(either this or we throw in a pile of symlinks)
#asahi-dev · 2021-10-03 14:46
marcanso brcmfmac4378-pcie.apple,atlantisb-RASP-m-6.2-X2.txt first, then everything with X2 but removing components, then without X2
#asahi-dev · 2021-10-03 14:45
marcanoh yeah and I forgot, the antenna matters though again this is symlink land
#asahi-dev · 2021-10-03 14:45
marcandon't ask me what RASP stands for
#asahi-dev · 2021-10-03 14:45
marcanthe thing after is the revision
#asahi-dev · 2021-10-03 14:45
marcanm is the vendor
#asahi-dev · 2021-10-03 14:45
marcan"module"
#asahi-dev · 2021-10-03 14:45
marcanthe installer can check that all the variants are the same to avoid making copies
#asahi-dev · 2021-10-03 14:44
marcanand we can provide the -m since that is where the differences stop
#asahi-dev · 2021-10-03 14:44
marcanso the driver would try brcmfmac4378-pcie.apple,atlantisb-RASP-m-6.2.txt then brcmfmac4378-pcie.apple,atlantisb-RASP-m.txt then brcmfmac4378-pcie.apple,atlantisb-RASP.txt then brcmfmac4378-pcie.apple,atlantisb.txt
#asahi-dev · 2021-10-03 14:44
marcanI'm thinking we basically want something like brcmfmac4378-pcie.apple,atlantisb-RASP-m-6.2.txt but with fallback requests
#asahi-dev · 2021-10-03 14:43
marcanactually it looks like the nvrams are the same for every module revision, only there are two vendors
#asahi-dev · 2021-10-03 14:39
marcansince we need a script to copy this over anyway, I guess we should dump out the mapping/symlink stuff in a text file anyway
#asahi-dev · 2021-10-03 14:38
marcanalso, slight issue: FAT32 does not support symlinks :')
#asahi-dev · 2021-10-03 14:37
marcanyeah but it's not j274... the devicetree IDs this using a different naming scheme, which is in the ADT, so we ought to follow that unless we want to maintain a mapping table in the installer
#asahi-dev · 2021-10-03 14:35
marcanwe can reformat that however we want
#asahi-dev · 2021-10-03 14:35
marcan-rw-r--r-- 1 root root 1883 Sep 1 06:10 brcmfmac43455-sdio.raspberrypi,4-model-b.txt
#asahi-dev · 2021-10-03 14:35
marcan-rw-r--r-- 1 root root 1884 Sep 1 06:10 brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
#asahi-dev · 2021-10-03 14:35
marcanso the way this is normally done, apparently, is
#asahi-dev · 2021-10-03 14:35
marcanand should not be used by userspace, it should be used by the driver
#asahi-dev · 2021-10-03 14:34
marcanalyssa: so it does look like the specific version info is in OTP only, so we need to copy all nvram variants and then have the driver choose one
#asahi-dev · 2021-10-03 14:32
marcanthat's just how it is
#asahi-dev · 2021-10-03 14:32
marcanbuilt in module, firmware needs to be in initramfs
#asahi-dev · 2021-10-03 14:32
marcanwouldn't help since it needs to mount it anyway
#asahi-dev · 2021-10-03 14:22
marcanalternatively we could just make the installer pull the right variant for *your* machine, but that makes the rootfs nonportable once it gets copied, which is kind of icky
#asahi-dev · 2021-10-03 14:21
marcanI would just put this info in the devicetree and add some plumbing to brcmfmac to get it from there
#asahi-dev · 2021-10-03 14:20
marcanso there are, among all the M1 variants out there so far, 2 actual firmwares (each model symlinks one of those), and then 2 nvram variants for each model
#asahi-dev · 2021-10-03 14:19
marcannow, we do have different instances for each machine
#asahi-dev · 2021-10-03 14:18
marcan(which are copied and symlinked over and over)
#asahi-dev · 2021-10-03 14:18
marcanalyssa: and there are only two actual *differing* config files for atlantisb

plus ›