Take Wifi driver from M1 linux?
mahboobkarimian opened this issue · 2 comments
Hi all;
Recently Corellium team succeeded to run Linux, the interesting part for us is working wifi. We know that the M1 brcmfmac wifi chip is different from Macbook pro 16+, but I think we can take their patch:
corellium/linux-m1@02ad06f
and modify it to apply for ours (and, maybe we could have a generic driver for all new wifi chips?).
From an initial look (I am not sure), it seems, just for a preliminary test it's enough to:
1:replace the conditions where they are going to select 4378 chip, for example:
if(devinfo->ci->chip == BRCM_CC_4378_CHIP_ID)
with our specific chip eg. 4364.
2: Change the macros used for 4378 to e.g. 4364.
Of course, I don't know yet where/how they obtained the OTP information, and how exactly it is working and what are the requirements. But if anyone is interested I would be happy to work together on this.
Regards,
M
@mahboobkarimian you can pair on that with @aunali1 (https://github.com/aunali1/linux-mbp-arch), he's working on that and he's available on our Discord ;)
Closing the issue as it's already in MBP16 kernel.