Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oneplus-oneplus3: Enable Wi-Fi #289

Merged

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Jan 27, 2021

This builds on top of android-linux-stable's kernel, by adding the missing qcacld-2.0 driver. The driver has been imported from LineageOS' fork of the kernel.

Using LineageOS' kernel may have been an option, but enabling CONFIG_VT on it totally breaks boot. Enough that it doesn't event leave a ramoops, and the phone boots in QUSB__BULK mode after being forced powered off.


This is working approximately the same as samsung-a5y17lte.

Except that:

  • It takes minutes to start
  • It seems flaky

It is currently unknown why. It looks like the driver is looking for the wrong firmware binaries at first, then falls back when it cannot find them.

I may, in the future, do more exploration to figure out why LineageOS' kernel fork fails hard with CONFIG_VT enabled, but for the time being this is a net improvement.


This also shows the general strategy for qcacld-2.0 devices:

  • Figure out a qcacld-2.0 driver
  • Build it into the kernel
  • Find firmware source location
  • Make firmware package
  • Enable the setup-wcnss service.

The `als` build tree *seems* to imply they are re-using the pre-built
kernel modules from the vendor.

This is not something we really want to do.

The good thing is that LineageOS adds the required drivers to their
trees. We can re-use it!
@samueldr samueldr added 3. topic: device Changes specific to a device, but not itself "a port" contribution 4. type: enhancement New feature or request labels Jan 27, 2021
@samueldr samueldr force-pushed the device/oneplus-oneplus3/qcacld-2.0 branch from b589f6c to d9a63ee Compare January 27, 2021 06:51
@samueldr samueldr merged commit 9fbcf88 into NixOS:master Jan 29, 2021
@samueldr samueldr deleted the device/oneplus-oneplus3/qcacld-2.0 branch January 29, 2021 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. topic: device Changes specific to a device, but not itself "a port" contribution 4. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant