News for hackers. Stuff that matters.
Re:OpenBSD: Hibernate Time Reduced by MisterTea on Wednesday September 01, 2021 @08:31AM (#28379011)
I've been on cat-v when devs were discussing developing wireless drivers for 9front (plan 9 fork) and most of these problems are due to lack of documentation. These cards are software driven so the driver isn't interacting with hardware registers or memory like an ethernet card but a protocol between the running firmware blob and the kernel. And you are responsible for loading that proprietary firmware into the card as well. You're essentially interacting with a black box. Its almost voodoo.

Some cards work perfectly by copying OpenBSD drivers or have some documentation. Though many cards require cargo culting by copying undocumented behavior from undocumented Linux drivers in order to get the cards working. The big problem with that approach are issues which arise cant be debuged. Best they can do is poke around and guess.

This whole thing is the fault of hardware manufactures.

Re:OpenBSD: Hibernate Time Reduced by juped on Wednesday September 01, 2021 @09:27AM (#28379530)
OpenBSD gets hit the hardest because the devs are the most hardline about never signing an NDA or otherwise impairing the freeness of the drivers.
Re:OpenBSD: Hibernate Time Reduced by MisterTea on Wednesday September 01, 2021 @10:02AM (#28379939)
I agree with never signing an NDA because it leads to code which can not be reliably maintained as the only person who can maintain it is the person who signed the NDA. How do you perform code audits on those drivers?

I have to assume most Linux WiFi drivers are written by people working for companies who get to see documentation via NDA as part of a company project OR the driver was written by the manufacturer who already knows how to talk to the card.

So everyone else has to cargo cult those drivers by blindly copying the voodoo code and hope it initializes the card the same way it does in Linux. Someone suggested adding a driver compatibility layer to allow using FreeBSD drivers in 9front but the devs shot it down with "that layer would be bigger than the kernel itself" So now you're now responsible for maintaining that HUGE mess plus you're still dealing with black box drivers you hope someone else fixes when they don't work. No one wins.

Again, the damn hardware manufactures have to give us proper hardware documentation. Until then they can go suck an egg.

Re:OpenBSD: Hibernate Time Reduced by nix23 on Wednesday September 01, 2021 @02:26PM (#28383764)
>Until then they can go suck an egg.

No, we suck an egg...that's the problem.