Skip to content
Snippets Groups Projects

xiaomi-lavender: new device (Xiaomi Redmi Note 7)

Merged Imported Administrator requested to merge xiaomi-lavender into master
All threads resolved!

This adds basic support for Xiaomi Redmi Note 7 and finishes some work that is stuck as WIP for too long already.

2 kernels variants are supported: downstream and mainline.

For downstream kernel:

Works:

  • flashing with fastboot, including vbmeta
  • kernel boots
  • ssh over USB
  • framebuffer (pmOS splash screens, wayland-based UIs)
  • weston works, and Xwayland is running
  • touchscreen
  • battery is charging

Does not work:

Mainline kernel it only at embryo stage. The main problem is that there is no sdm660 SoC in mainline kernel currently, only some individual drivers that were contributed by @opendata26. This continues opendata's work and serves as proof of concept that this is possible.

Works:

  • kernel boots
  • dmesg logs in pstore fs (you can read them from TWRP recovery)
  • dmesg logs over UART interface
  • all 8 CPUs are up!
  • simple-framebuffer can show logs of booting kernel on the screen because it uses hw initialized by bootloader
  • booting process successfully reaches postmarketOS's initramfs and it (obviously) can't find partitions because no block devices are present at all

Doesn't work:

  • everything else: no voltage regulators (PMIC) support => no USB, no sdhci, no gpu, ... no nothing

P.S. the following features were originally implemented to support this device:

P.P.S. funny note: nixOS-mobile lavender MR that uses patches from my branch was merged almost 4 months ago... so I took one patch from samuel too :)

Edited by Administrator

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator
  • Administrator
  • Administrator added 2 commits · Imported

    added 2 commits

    • 85c43a28 - main/linux-postmarketos-qcom-sdm660: new aport
    • 655399f9 - xiaomi-lavender: new device (Xiaomi Redmi Note 7)

    Compare with previous version

    By Alexey Min on 2020-03-24T23:33:30

  • Administrator added 1 commit · Imported

    added 1 commit

    • 1cfcb73c - xiaomi-lavender: new device (Xiaomi Redmi Note 7)

    Compare with previous version

    By Alexey Min on 2020-03-24T23:40:11

  • Administrator added 2 commits · Imported

    added 2 commits

    Compare with previous version

    By Alexey Min on 2020-03-24T23:40:51

  • Administrator added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Alexey Min on 2020-03-25T00:42:28

  • Administrator unmarked as a Work In Progress · Imported

    unmarked as a Work In Progress

    By Alexey Min on 2020-03-25T00:44:57

  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator added 1 deleted label · Imported

    added 1 deleted label

  • Administrator added 20 commits · Imported

    added 20 commits

    Compare with previous version

    By Alexey Min on 2020-03-29T02:09:08

  • Author Owner

    Fixed some comments. Also, as suggested in https://gitlab.com/minlexx/pmaports/-/merge_requests/5 , qcacld-3.0 is now built as module to aid in wlan development process (easier to replace one module than to reflash kernel); modules are packaged and modprobe wlan succeeds.

    Btw, cool modules it is

    image

    Tested with PlaMo on framebuffer backend (scaling is awful, and trick with kscreen-doctor to change scaling does not help. I think fbdev backend does not support changing scaling)

    image image

    By Alexey Min on 2020-03-29T02:15:29

  • Administrator added 9 commits · Imported

    added 9 commits

    Compare with previous version

    By Alexey Min on 2020-03-29T23:08:11

  • Administrator resolved all threads · Imported

    resolved all threads

    By Alexey Min on 2020-03-29T23:08:39

  • Administrator
  • Author Owner

    Above is just recommendation, therefore:

    By Minecrell on 2020-03-30T07:36:33

  • Administrator approved this merge request · Imported

    approved this merge request

    By Minecrell on 2020-03-30T07:36:36

  • Administrator added 6 commits · Imported

    added 6 commits

    Compare with previous version

    By Alexey Min on 2020-03-30T12:09:29

  • Administrator resolved all threads · Imported

    resolved all threads

    By Alexey Min on 2020-03-30T12:10:42

  • Administrator approved this merge request · Imported

    approved this merge request

    By Minecrell on 2020-03-30T12:13:34

  • Administrator
  • Administrator resolved all threads · Imported

    resolved all threads

    By Alexey Min on 2020-04-01T20:08:54

  • Administrator
    • Author Owner
      Resolved by Administrator

      Amazing work, @minlexx!

      @Minecrell had already approved it above, and I'd also approve it after the downstreamkernel_prepare change is done.

      @minlexx: can you do that change, verify locally that it passes prepare() at least, and then merge it? If you want, you can use [ci:skip-build]: already built successfully in CI to speed it up.

      By Oliver Smith on 2020-04-06T01:49:46

      Edited by Ghost User
  • Administrator added 26 commits · Imported

    added 26 commits

    Compare with previous version

    By Alexey Min on 2020-04-06T01:39:40

  • Administrator resolved all threads · Imported

    resolved all threads

    By Alexey Min on 2020-04-06T01:40:14

  • Administrator resolved all threads · Imported

    resolved all threads

    By Alexey Min on 2020-04-06T01:49:49

  • Administrator merged · Imported

    merged

    By Alexey Min on 2020-04-06T01:50:26

  • Administrator mentioned in commit 3456f5fa · Imported

    mentioned in commit 3456f5fa

    By Alexey Min on 2020-04-10T22:18:25

  • Administrator mentioned in commit 213d01a9 · Imported

    mentioned in commit 213d01a9

    By Alexey Min on 2020-04-10T22:18:26

  • Administrator mentioned in issue mrhlpr#3 (closed) · Imported

    mentioned in issue mrhlpr#3 (closed)

    By Minecrell on 2020-04-11T17:32:18

  • Please register or sign in to reply
    Loading