xiaomi-lavender: new device (Xiaomi Redmi Note 7)
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:
- Wi-Fi is blocked by #494 (closed) and unlikely to work any time soon
- X11-based UIs crash: Xorg log
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:
- make USB configfs attrs customizable !706 (merged)
- pmbootstrap: add "flasher flash_vbmeta" command pmbootstrap!1885 (merged)
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 :)
Merge request reports
Activity
added category::device label
- Resolved by Administrator
I'll mark this as WIP for a time being to get some finishing touches in (about mainline kernel config & cmdline)
By Alexey Min on 2020-03-24T23:09:43
Edited by Ghost User
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
added 1 commit
- 1cfcb73c - xiaomi-lavender: new device (Xiaomi Redmi Note 7)
By Alexey Min on 2020-03-24T23:40:11
added 2 commits
- 7da1c734 - main/linux-postmarketos-qcom-sdm660: new aport (!1095 (merged))
- 47e42e4a - xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095 (merged))
By Alexey Min on 2020-03-24T23:40:51
added 1 commit
- 807f160f - xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095 (merged))
By Alexey Min on 2020-03-25T00:42:28
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
added 20 commits
-
807f160f...d2484443 - 18 commits from branch
postmarketOS:master
- 1b86d0fb - main/linux-postmarketos-qcom-sdm660: new aport (!1095 (merged))
- d184f886 - xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095 (merged))
By Alexey Min on 2020-03-29T02:09:08
-
807f160f...d2484443 - 18 commits from branch
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
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)
By Alexey Min on 2020-03-29T02:15:29
added 9 commits
-
d184f886...a10a1c8b - 7 commits from branch
postmarketOS:master
- 1ad050e9 - main/linux-postmarketos-qcom-sdm660: new aport (!1095 (merged))
- 6e773a91 - xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095 (merged))
By Alexey Min on 2020-03-29T23:08:11
-
d184f886...a10a1c8b - 7 commits from branch
- Resolved by Administrator
added 6 commits
-
6e773a91...1446ec37 - 4 commits from branch
postmarketOS:master
- 21a40068 - main/linux-postmarketos-qcom-sdm660: new aport (!1095 (merged))
- b49f02ec - xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095 (merged))
By Alexey Min on 2020-03-30T12:09:29
-
6e773a91...1446ec37 - 4 commits from branch
- Resolved by Administrator
- Resolved by Administrator
- 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
added 26 commits
-
b49f02ec...0ea9d8db - 24 commits from branch
postmarketOS:master
- 213d01a9 - main/linux-postmarketos-qcom-sdm660: new aport (!1095 (merged))
- 3456f5fa - xiaomi-lavender: new device (Xiaomi Redmi Note 7) (!1095 (merged))
By Alexey Min on 2020-04-06T01:39:40
-
b49f02ec...0ea9d8db - 24 commits from branch
mentioned in commit 3456f5fa
By Alexey Min on 2020-04-10T22:18:25
mentioned in commit 213d01a9
By Alexey Min on 2020-04-10T22:18:26
mentioned in issue mrhlpr#3 (closed)
By Minecrell on 2020-04-11T17:32:18