Firmware for reverse engineering b43?
"Joshua Peisach" <[email protected]> Mon, 13 Apr 2026 08:44:07 -0400
| Newsgroups | org.infradead.lists.b43-dev,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
Hi all, As I've been getting into kernel development, I found the b43 driver as a suitable place for me to work in, given its status as orphan and my access to it having an old iMac. When it comes to figuring out what code to write and how to implement functions, I see that there has been a mix of answers across the driver. Lots of functions refer to specs RE'd from the 4.x firmware[1], but my own install uses 5.x firmware. Additionally, the 6.x firmware is available. For my reverse engineering process, I opened the firmware in Ghidra and basically try to map the functionality to the driver, which appears to be what was done with the 4.x specs? But, as I compare to the newer firmware, some functions have been moved or replaced. And sometimes, the newer firmware functions contradict the RE'd 4.x specs, or have extra steps in its process. Take b43_nphy_perical, or as known in the v4 firmware, wlc_phy_perical_nphy. I got to this function because wlc_nphy_init calls it. But actually, the RE'd version says init calls wlc_phy_perical_nphy_run, which the firmware says is not the case (it goes through wlc_phy_perical_nphy first, which has its own conditions). So, which is the best source of truth(s) for this driver? The v4.x specs, the v5 firmware, or the v6 firmware? Which one should be used, and which has a higher priority level over the other? Keep in mind the v4 specs came before the release of Ghidra; now that it exists, we can refer to it instead of manually probing functionality. I've even seen Ghidra show different instructions than the 4.x spec. Thanks, -Josh [1]: https://bcm-v4.sipsolutions.net _______________________________________________ b43-dev mailing list [email protected] http://lists.infradead.org/mailman/listinfo/b43-dev