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

Pine64 PinePhone Pro #1073

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Pine64 PinePhone Pro #1073

wants to merge 4 commits into from

Conversation

zimward
Copy link

@zimward zimward commented Aug 11, 2024

Description of changes

Adds initial support for the PinePhone Pro using the Pine64 kernel, patched to upstream patch-version.
The current state is as follows:

  • Booting with console displayed
  • Selecting generation on boot (using the graphical selection provided by rk2aw
  • Hardware accelerated graphics
    • panfrost sometimes crashes
    • overlapping windows sometimes glitch in phosh
  • WiFi
    • Networking
    • brcmfmac errors sporadically, function is not affected thanks to a partially working workaround
  • GSM modem (using eg25-manager)
    • sim unlocking
    • connecting to GSM (4G)
    • Networking via GSM
    • GPS (not tested yet)
    • Calls
  • Audio
    • pipewire
      • wireplumber crashing due to faulty camera drivers
    • pulseaudio displays a sink device but doesn't play audio
  • Cameras
    • front camera
    • rear camera
  • USB
    • do more thorough testing, but Ethernet via USB-C dock is working
  • Sensors
    • ambient light sensor
    • gyroscope
    • accelerometer
    • magnetometer (not tested yet)
    • proximity (not tested yet)

I don't know how much time i can spend on it in the next weeks, but if someone wants to give me some feedback on what changes should be done it will be appreciated.

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

{ stdenv, pkgs, ... }:

stdenv.mkDerivation rec {
name = "pine64-alsa-ucm";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nixpkgs maintainer are a bit uneasy to have all these kernel forks in nixpkgs, but I think it would be fine to have this package and the firmware also being part of nixpkgs.

inherit pver upstream_patch;
src = src_pine64;
};
features = { };

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line confuses me. features is empty by default and is not passed in on line 27 of pine64/pinephone-pro/default.nix. args.argsOverride comes later, so will override this. Could you explain what this line does?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. i was testing some features and forgot to completely remove it, as it is not present in my current development branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants