Most parts work, still not sure why Bluetooth gives me errors in dmesg, audio out works, microphone input not yet… I’m getting there.

But graphics, charging, low standby power consumption, LTE, wifi… those all work already.

The fact that postmarketOS has support and also that there are people working on mainline support, makes this a task that is not as difficult as I thought, as most work was already done for another distro.

Otherwise it runs more fluid than Android ever did on it and it has a great standby time (forgot to turn it off at around 80 % and a few days later it was at 58 %).

For now stuck on merging the Kernel patches from the sdm670-mainline project with those from Mobian, not really something I can do without knowing C. I just hope someone with the right skills does it at some point.

Then I just need to make some smaller merge requests, like one to add a udev rule for vibration support and so on.

Not much missing before I can finally use it as a daily driver.

  • @version_unsorted@lemm.ee
    link
    fedilink
    23 months ago

    Yeah sure. I’ll pull it all down and reproduce and try to get the conflicts sorted out and push the repo up somewhere. I’ve never built a Debian kernel before but I’m sure I can figure it out!

    • @erebion@lemmy.sdf.orgOP
      link
      fedilink
      2
      edit-2
      3 months ago

      So, a lot of commands, but not very complicated:

      git clone https://gitlab.com/sdm670-mainline/linux
      cd linux
      git remote add mobian https://salsa.debian.org/Mobian-team/devices/kernels/qcom-linux
      git remote add kernelorg https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
      git fetch mobian
      git fetch kernelorg
      git checkout mobian-6.7
      git checkout -b mobian-6.7.2
      gbp pq import             # so you end up on the `patch-queue/mobian-6.7.2` branch with all the patches in debian/patches applied
      gbp pq switch             # switch to patch-queue/mobian-6.7.2
      git rebase v6.7.2
      gbp pq rebase             # (rebases the patch-queue branch on the now-rebased `mobian-6.7.2` branch)
      
      git checkout origin/on-stable
      git checkout -b temp-sdm670
      git rebase patch-queue/mobian-6.7.2
      # this is where I got and get the conflict, the rest *should* be correct
      git checkout patch-queue/mobian-6.7.2
      git merge temp-sdm670
      gbp pq export # switches to mobian-6.7.2
      #all new patches should be straight under `debian/patches`, create `debian/patches/sdm670` and move them all there
      mkdir -p debian/patches/sdm670
      mv debian/patches/*.patch debian/patches/sdm670
      #edit `debian/patches/series` to:
      #1. reflect that files have been moved to `sdm670/`
      #2. ensure patches from the `ath10k`, `debian` and `mobian` folders come last in the list 
      # commit changes (this commit will be amended afterwards)
      vim debian/patches/series
      git add -A
      git commit -m "added patches from the sdm670-mainline repo"
      gbp pq drop
      gbp pq import
      gbp pq export --drop --renumber
      
      # push the branch somewhere
      

      I’ve added some comments to hopefully make it easier to figure it out