#
✕ nick:alyssa
#asahi-dev · 2021-10-03 14:29
alyssastill stupid that linux can't tell "hmmm I need firmware but have no filesystem maybe I should not try to load that driver before NVMe"
#asahi-dev · 2021-10-03 14:29
alyssamarcan: ok, stuck the firmware in an initramfs (with nothing else) and passed that to linux.py and built brcmfmac=y and now it's happy
#asahi-dev · 2021-10-03 14:26
alyssamarcan: symlinks! oh my.
#asahi-dev · 2021-10-03 14:14
alyssafeels silly now
#asahi-dev · 2021-10-03 14:14
alyssa.../me forgot that real initramfs exist
#asahi-dev · 2021-10-03 14:13
alyssameanwhile I'm cranky that I need to build brcmfmac as a module if I don't want to bundle the blob with the kernel ..
#asahi-dev · 2021-10-03 14:12
alyssaoh boy.
#asahi-dev · 2021-10-03 14:09
alyssa*nods*
#asahi-dev · 2021-10-03 14:08
alyssaon BCM4378 at least, we get a very early interrupt => NULL dereference in the IRQ handler
#asahi-dev · 2021-10-03 14:08
alyssaand their interrupt handler starts off by dereferencing driver intenral stuff
#asahi-dev · 2021-10-03 14:07
alyssamarcan: brcmfmac does "enable interrupts, then setup driver"
#asahi-dev · 2021-10-03 14:07
alyssalike, it seems like a genuine race we lose every time but if so, why isn't every other brcmfmac user in existence broken
#asahi-dev · 2021-10-03 14:06
alyssaI still dunno what's up with this race condition
#asahi-dev · 2021-10-03 14:04
alyssanice.
#asahi-dev · 2021-10-03 14:03
alyssawee
#asahi-dev · 2021-10-03 14:03
alyssamarcan: If I'm reading the corellium kernel code correctly, I believe they have a pile of hacks in userspace to select the fw, set module parameters to point to it, and then re-load the wifi driver.
#asahi-dev · 2021-10-03 14:02
alyssa...I see
#asahi-dev · 2021-10-03 13:48
alyssajeh[m]: sven: There are a /lot/ of different firmware files in the 4378 directory on macOS
#asahi-dev · 2021-10-03 13:23
alyssaI assume you'll be able to do better in the installer but meh
#asahi-dev · 2021-10-03 13:23
alyssat2linux's wiki gives a magic incantation to run in ioreg with wifi enabled.
#asahi-dev · 2021-10-03 13:23
alyssaThere /is/ a somewhat invovled dance required to /find/ which firmware your hw actually needs, though
#asahi-dev · 2021-10-03 13:22
alyssasince macOS won't write ext4 and Linux won't read APFS
#asahi-dev · 2021-10-03 13:22
alyssaFAT is probably the only reasonable answer
#asahi-dev · 2021-10-03 13:16
alyssaalright..
#asahi-dev · 2021-10-03 13:10
alyssaack. I think there will still be some nvram munging but a heck of a lot less than corellium has.
#asahi-dev · 2021-10-03 13:09
alyssamaz has a commit to do it for Ethernet, and that was a DT-only change and tg3 just 'magically' worked I think
#asahi-dev · 2021-10-03 13:09
alyssathough we'd still want to respect the one forwarded from the ADT, no?
#asahi-dev · 2021-10-03 13:08
alyssaso this is a legitimate hardware/firmware difference and not "macOS does it so Corellium does it so we do it"?
#asahi-dev · 2021-10-03 13:08
alyssaNod
#asahi-dev · 2021-10-03 13:07
alyssaor, better question - how do mac addrs usually get set with upstream brcmfmac
#asahi-dev · 2021-10-03 13:07
alyssaMaybe? If it is necessary, I'd like to know why the other broadcom chips don't need it
#asahi-dev · 2021-10-03 13:07
alyssaNot sure if this dance is necessary and not sure I want to find out without a Faraday cage :-p
#asahi-dev · 2021-10-03 13:06
alyssathe Corellium code ultimately pipes that into an nvram field for the broadcom chip
#asahi-dev · 2021-10-03 13:06
alyssa👍
#asahi-dev · 2021-10-03 13:05
alyssayeah that's what I was looking for. lots of abstractions to chew through but yes
#asahi-dev · 2021-10-03 13:05
alyssait's a pcie device
#asahi-dev · 2021-10-03 13:05
alyssabut errrr where does this OF node come from
#asahi-dev · 2021-10-03 13:03
alyssa`of_get_mac_address` this is handy :')
#asahi-dev · 2021-10-03 13:03
alyssamarcan: giggle.
#asahi-dev · 2021-10-03 13:03
alyssaMAC address code needs a full rewrite, but that's ok
#asahi-dev · 2021-10-03 12:58
alyssamarcan: I see your point.
#asahi-dev · 2021-10-03 12:58
alyssaOkay, I am not sure where that code came from. But it didn't make sense on the surface, made less sense after thinking about it, and then wifi still works fine after dropping the commit.
#asahi-dev · 2021-10-03 12:48
alyssa(I split it up into separate commits, and dropped the useless commits, and now it's a lot smaller.)
#asahi-dev · 2021-10-03 12:40
alyssathe Corellium wi-fi patch gets a lot less scary if you hit the backspace button a bunch
#asahi-dev · 2021-10-02 12:33
alyssa...apparently schoolhouse rock live had a run in toronto in '97. i do not know how to feel about that.
#asahi-dev · 2021-10-02 12:27
alyssathat song from when we were kids, said that 3 is a magic number
#asahi-dev · 2021-10-02 12:26
alyssawhat about 3
#asahi-dev · 2021-10-01 22:44
alyssatweet tweet 🐥
#asahi-dev · 2021-10-01 21:15
alyssa😅
#asahi-dev · 2021-10-01 21:12
alyssaj_ey: we're mutuals on bird site, that has to count for something in these woke parasocial times of ours! :-p

plus ›