#
✕ nick:marcan
#asahi-dev · 2021-10-03 14:16
marcanthat sounds like nobody bothered to make sure the nvram/etc config was done properly
#asahi-dev · 2021-10-03 14:16
marcannskl: I would not expect any distros to be better than others
#asahi-dev · 2021-10-03 14:14
marcannskl: sounds like bad configs
#asahi-dev · 2021-10-03 14:14
marcanyou do not? you can put it in the initramfs
#asahi-dev · 2021-10-03 14:13
marcanthat second one is ASCII
#asahi-dev · 2021-10-03 14:13
marcan wifi-antenna-sku-info = [0x0000000000000001, 0x0000000000003358]
#asahi-dev · 2021-10-03 14:11
marcanthat points at the plist
#asahi-dev · 2021-10-03 14:11
marcan module-instance = atlantisb
#asahi-dev · 2021-10-03 14:10
marcanlet's see what the adt says about this
#asahi-dev · 2021-10-03 14:09
marcanso basically nvrams
#asahi-dev · 2021-10-03 14:09
marcanwhich makes sense (things like RF parameters change from platform to platform)
#asahi-dev · 2021-10-03 14:09
marcanwhat they do have is a ton of *config* files
#asahi-dev · 2021-10-03 14:09
marcanthere are only two BCM4378 firmwares as far as I can tell
#asahi-dev · 2021-10-03 14:07
marcanwhat race?
#asahi-dev · 2021-10-03 14:03
marcan(without a word)
#asahi-dev · 2021-10-03 14:03
marcan(which they summarily took down once I pointed it out)
#asahi-dev · 2021-10-03 14:03
marcan:p
#asahi-dev · 2021-10-03 14:03
marcanwell their first kernel just had one embedded
#asahi-dev · 2021-10-03 14:03
marcanlol.
#asahi-dev · 2021-10-03 14:03
marcanalthough for wifi it matters less
#asahi-dev · 2021-10-03 14:03
marcanin keeping with firmware version consistency
#asahi-dev · 2021-10-03 14:03
marcanalso ideally I'd want to pull it from the recovery image, since we install that
#asahi-dev · 2021-10-03 14:02
marcanlet me take a look
#asahi-dev · 2021-10-03 14:01
marcancorellium embedded one in their kernel (did they get a license?) and apparently it worked for people? :')
#asahi-dev · 2021-10-03 13:20
marcanany ideas? I guess if nowhere else it should go in the FAT32 EFI partition I will (eventually) be setting up
#asahi-dev · 2021-10-03 13:19
marcanbtw, it should be the installer's job to pull the firmware out of osx and into somewhere useful
#asahi-dev · 2021-10-03 13:16
marcan(plus it works for all brcmfmac devices then, forever)
#asahi-dev · 2021-10-03 13:16
marcanand then no need to mess with nvram
#asahi-dev · 2021-10-03 13:16
marcanthat sounds like a prime place to call eth_platform_get_mac_address and do a *set* instead if that is available
#asahi-dev · 2021-10-03 13:15
marcanwith an analogous API to what brcmf_netdev_set_mac_address uses to set it
#asahi-dev · 2021-10-03 13:15
marcanalyssa: see brcmf_c_preinit_dcmds that *gets* the MAC address from the device on startup
#asahi-dev · 2021-10-03 13:12
marcan(that calls of_get_mac_address)
#asahi-dev · 2021-10-03 13:12
marcanalyssa: so yes, the driver needs to support it
#asahi-dev · 2021-10-03 13:11
marcantg3 has that
#asahi-dev · 2021-10-03 13:11
marcanah, eth_platform_get_mac_address
#asahi-dev · 2021-10-03 13:10
marcanit might not need it, maybe this is in core stuff already
#asahi-dev · 2021-10-03 13:10
marcanand yeah, looking at tg3 to see if it has any special code for this
#asahi-dev · 2021-10-03 13:10
marcanand that might avoid you a bunch of nvram munging code or whatever
#asahi-dev · 2021-10-03 13:09
marcanor whatever the api for that is
#asahi-dev · 2021-10-03 13:09
marcanyes, but what I mean is maybe instead of sticking it in nvram you can just call set_mac() on driver startup
#asahi-dev · 2021-10-03 13:09
marcanit stands to reason that since Linux can just outright set the MAC via standard APIs, there might be a way to do it like that without having to add the whole nvram mess
#asahi-dev · 2021-10-03 13:08
marcannow the *way* this is being done... I don't know if it's the only/correct way
#asahi-dev · 2021-10-03 13:08
marcanhence this dance to forward the MAC from the ADT to nvram
#asahi-dev · 2021-10-03 13:08
marcan(which is how wifi cards would normally do it)
#asahi-dev · 2021-10-03 13:08
marcanso it can't just be in some EEPROM since that'd add more state
#asahi-dev · 2021-10-03 13:08
marcan(which it pulls from the calls home during DFU restore)
#asahi-dev · 2021-10-03 13:08
marcanso the mac has to come from sysconfig data
#asahi-dev · 2021-10-03 13:07
marcanremember these things are unbrickable?
#asahi-dev · 2021-10-03 13:07
marcanthis is Apple doing system personalization their own way
#asahi-dev · 2021-10-03 13:07
marcanwell, you do need the MAC, but maybe there's an easier way since after all linux can change the mac...

plus ›