Temporary fixes that make Mobian work on sargo
Find a file
2024-08-25 15:01:32 +02:00
ansible re-order installation of tinyalsa packages to avoid dependency issues 2024-08-24 00:44:23 +02:00
.gitignore Initial commit 2024-07-16 17:44:34 +00:00
IMAGE.md update status of project 2024-08-25 15:01:32 +02:00
LICENSE Initial commit 2024-07-16 17:44:34 +00:00
README.md update status of project 2024-08-25 15:01:32 +02:00

sargo-temp

Temporary fixes that make Mobian work on sargo.

Please note that the MIT license does not apply to qcom-firmware.

What to do

Build Image

Instructions can be found in IMAGE.md in this repo.

Flash image

First flash the image. Boot the phone.

Connect via SSH: ssh mobian@10.66.0.1

Accept the host key.

Note: If you built the image with a different username, you will have to set that in ansible/ansible.cfg.

Roll out workarounds using Ansible

You have to have ansible-playbook installed.

Go to the Ansible folder: cd ansible

Roll out workarounds: ./workarounds.sh

Reboot phone via SSH.

Connect to wifi.

Rolling out the workarounds for audio requires installing packages from the repo, so we need an internet connection.

Roll out audio workarounds: ./audio.sh

Note:

  • You might have to switch SIM slots if your SIM card is not recognised.
    • Command: mmcli -m 0 --set-primary-sim-slot=1, options are 1 or 2
    • Note that this reboots the modem, therefore it will be -m 1 and then the next time -m 2 until you reboot and this makes it go back to -m 0.

Project Status

To Do List

  • Make installer images work on this device
  • Have droid-juicer run on installer images
  • Make sure my q6voiced package no longer includes a hard-coded config for this device
  • Create an ITP for tinyalsa and q6voiced and get both into the repos (use the workarounds from this repo to get working call audio for now)
  • Combine SDM670 kernel patches with those in the Mobian qcom kernel
    • Patches are already being upstreamed by the sdm670-linux project, maybe that's already done before I start working on it xD

Issues To Solve To Get Official Mobian Images

Done:

  • New release of qcom-phone-utils required so that my patches are available from the repo

For those I will remove the workarounds once the changes are in the Mobian repo

Misc Issues

  • ALSA config for the device has not been upstreamed yet (can be added using the Playbook in this repo)

(This is a non-exhaustive list)

Low Priority

  • add udev rule for the vibration motor to the right package
  • fix udev rule for the Bluetooth workaround in this repo
  • create/find script/tool that brings up Bluetooth & then package it
    • for now this repo contains a simple script specific to this device and a udev rule, but something is wrong with the udev rule. Run /opt/bluetooth-mac.bash to get Bluetooth working, repeat after reboots

This Works

  • booting
  • display
  • touch
  • modem <- You might have to switch to the other slot if it does not work: mmcli -m 0 --set-primary-sim-slot=1, options are 1 or 2. Note that the modem could also be a different number, maybe try -m 1 if it is not found as the command will reboot the modem and then it changes.
  • plymouth
  • battery/charging
  • mobile data
  • wifi
  • torch
  • suspend
  • call audio
  • vibration
  • Bluetooth™
  • full disk encryption
  • eSIM (provisioning tool not yet packaged and has to be compiled and installed manually)
  • SMS (only receiving has been tested, but I dont have reason to believe sending wouldnt work)
  • audio (ALSA config not packaged, but can be manually added using the playbook in this repo)
  • camera (some sort of bug and it does not work currently, but the support is there)

This Has An Unknown Status

  • Fingerprint Sensor
  • NFC (should work, does so on pmOS)

This Does Not Work Yet (Soon™)

  • GPS
  • Speaker (the loud one, the other one for calls works... this means that you cannot annoy others with loud music yet, sorry :p)
  • USB host mode (no Kernel support yet, but apparently this is being worked on)
  • Verified Boot (first need to do research)

This Is Missing And Will Come Later

  • accelerometer
  • magnetometer
  • ambient light sensor
  • barometer

The Sources (Use The Source, Luke)

Thanks For All The Fish

Huge thanks to be sdm670-linux project and flamingradian who did and still does an awful lot of work to make sure the Kernel works on those devices! :)

I dont know how Kernel development works, so I would have never started porting without this project.

Find that here: https://gitlab.com/sdm670-mainline/linux