Need help porting to Xiaomi Mi A1 (tissot)
-
Be patient. We all have real lives to lead before looking here.
-
@turanmahmudov try to start container in foreground and see for errors. The lxc-start command has a flag for that
-
@flohack this?
# lxc-start -n android -F
https://gist.github.com/turanmahmudov/c3d63bb83f1e1f5243e46f74c0dfdb69 -
lxc errors fixed with disabling schedtune in kernel defconfig. now lxc container starts.
-
new
dmesg
output:
https://gist.github.com/turanmahmudov/232c2552842b32bd0ca545277959f139 -
GUI loads. The device is very very slow.
No WiFi, No Bluetooth, No SIM, No GPS, No Sound -
I thought the GSI was no longer supported or us this something else?
-
@lakotaubp yes, GSI didn't work for me. I built halium-boot.img and system.img
The device boots into Lomiri UI, apps work.
All the other stuff doesn't work. I will start from scratch. -
Source code:
https://github.com/xiaomi-tissot-ubuntuSound works, Sensors work, GUI works
No WiFi, No Bluetooth, No CellularI am still trying to make WiFi work. Will give manifest file and install instructions.
-
GitLab CI method works.
Source:
https://gitlab.com/turanmahmudov/xiaomi-tissot/Kernel & Device Source:
https://github.com/xiaomi-tissot-ubuntuInstructions
-
Get boot.img and system.img here:
https://gitlab.com/turanmahmudov/xiaomi-tissot/-/jobs/2362910100/artifacts/browse/out/ -
Get vendor.img here:
https://gitlab.com/turanmahmudov/xiaomi-tissot/-/blob/master/prebuilt/vendor.img -
Get the latest TWRP with Treble Manager for tissot here:
https://forum.xda-developers.com/t/recovery-treble-twrp-3-3-1-0-with-tissot-manager.3976117/- Format Data in Wipe option (to remove Stock encryption), then Reboot into Recovery again.
- In TWRP, go to Advanced > Treble Manager and repartition the device by following the wizard.
-
Flash Ubuntu in fastboot mode:
fastboot flash vendor vendor.img
fastboot flash boot boot.img
fastboot flash system system.img
What doesn't work / Issues
- Camera
- GPS
- Fingerprint
-
-
I have Xiaomi Mi A2 and a car Citroen C4. I have paired the phone but only hear the calls in it, not in the car. I can't listen the phone's music in the car. If you can do it in A1, it would be the solution for A2.
-
I tried to follow the instructions. Now it says "the system has been destroyed". ¿Any chance of recovery?
-
@rapto Never mind. Started from 'flash stock rom' and retrying...
-
@rapto Nope. System destroyed again. There must be something I am not doing right.
-
@turanmahmudov Thank you for sharing . Is it your last build?
-
@turanmahmudov I just finished flash and can not boot. It's with a white screen with three color bar and mi logo. How can I boot or ssh to my phone? Please help me.
-
This post is deleted! -
Finally, it's worked. I'm on the Ubuntu language selection menu.
Fixed with below:
Entered to bootloader with volume down button and booted to recovery with a fastboot (fastboot boot twrp_recovery.img).
But recovery asking password for decrypt data. Clicked cancel and wiped factory reset slide and formatted with "yes". Then restarted and phone is booted up. Thank you very much. -
Is it stable enough for daily use?
I have a spare mi a1 that I would like use specifically for ubports. I don't mind helping with flashing and testing. -
What works so far
-
Rotation
-
Wifi
-
Video playback
-
Charging indicator
-
Audio from external speaker / jack
-
Bluetooth scanning
-
Flashlight (amber led only)
-
Sound recorder (microphone)
-
Brightness (manual control)
-