device-xiaomi-tissot: Initial device support
Initial support for Xiaomi A1 aka xiaomi-tissot using LineageOS 15.1 kernel, has similar board to Xiaomi Redmi 4 aka xiaomi-mido with some differences that had to be patched such as reversing skip_initramfs and ignoring dm param. 16.0 kernel boots but display fb init doesn't work.
Works:
- USB RNDIS with SSH (applied a patch to only WARN_ON once instead of dmesg spam which is only triggered when USB network is active)
- Display with Wayland: Weston and Plasma (software rendering)
- Touchscreen with several fingers
- reboot/poweroff
Kinda works:
- Display with Xorg after issuing the command
cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode
, for some reason none of hacks related to mdss/msm fb works because the command has to be issued after some time and then Xorg must be started. Xorg without this trick reports "FBIOPUT_VSCREENINFO: Invalid argument"... Any idea? - Already plugged USB devices via OTG/Host when kernel is booting
Requires firmware:
- WiFi
- Baseband (probably)
Not working:
- Bluetooth (kernel doesn't report any error and shows device but rfkill is empty)
- WiFi
- Audio
- New USB devices via OTG/Host after boot
- Baseband
Merge request reports
Activity
- Resolved by Administrator
added 12 commits
-
49839854...99700879 - 11 commits from branch
postmarketOS:master
- 2ff8f7bc - device-xiaomi: new device (!165 (merged))
By Oliver Smith on 2019-01-22T06:20:00
-
49839854...99700879 - 11 commits from branch
Not looked at the patch yet, but I have rebased it on master, so the continuous integration (CI) scripts will run properly. (In the future, it will be more obvious when that is necessary, created !167 (merged) for that.)
Thank you very much for the device port and merge request @IonAgorria!
By Oliver Smith on 2019-01-22T06:22:21
CI is failing, because the checksums of the device package need to be updated. Please fix it, and (if there should be any) all following errors until CI passes.
By Oliver Smith on 2019-01-22T06:54:48
added 5 commits
-
4437a53d...879213f0 - 4 commits from branch
postmarketOS:master
- 8c30198c - device-xiaomi: new device (!165 (merged))
By Oliver Smith on 2019-01-23T08:19:39
-
4437a53d...879213f0 - 4 commits from branch
Aport and patches look good, thanks for the port @IonAgorria!
I know this is based off xiaomi-mido, therefore using an older kernel aport template. Consider modernizing it in a new MR: https://wiki.postmarketos.org/wiki/Vendor_kernel_specific_package#Modernize_your_aport
- Display with Xorg after issuing the command
cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode
, for some reason none of hacks related to mdss/msm fb works because the command has to be issued after some time and then Xorg must be started. Xorg without this trick reports "FBIOPUT_VSCREENINFO: Invalid argument"... Any idea?
Consider making a new issue for this (if there isn't any). Some spontaneous ideas without looking into it too much:
- Does the mido device have a fix for that?
- Try to search for that message in the kernel source and read the surrounding code
- Add debug prints there etc., until you figure out how to configure it properly without starting xorg.
By Oliver Smith on 2019-01-23T08:24:20
- Display with Xorg after issuing the command
added 1 commit
- 26592daa - device-xiaomi: new device (!165 (merged))
By Oliver Smith on 2019-01-23T08:42:16
mentioned in issue #177 (closed)
By Ion A on 2019-01-23T18:12:50
mentioned in merge request !173 (merged)
By Ion A on 2019-01-24T19:05:55
mentioned in commit f0f50479
By Bart Ribbers on 2019-02-11T21:36:41
mentioned in commit 26592daa
By Bart Ribbers on 2019-02-13T14:19:48
mentioned in commit 5e92794d
By Bart Ribbers on 2019-02-14T19:42:54
mentioned in commit e594d236
By Bart Ribbers on 2019-02-14T19:42:55
mentioned in merge request !1485 (merged)
By Rian McGuire on 2020-08-17T21:41:31