GithubHelp home page GithubHelp logo

doytsujin / pinephone_modem_sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from the-modem-distro/pinephone_modem_sdk

0.0 1.0 0.0 5.52 MB

Pinephone Modem SDK: Tools to build your own bootloader, kernel and rootfs

License: GNU General Public License v3.0

Shell 11.18% Python 81.92% Makefile 6.90%

pinephone_modem_sdk's Introduction

Pinephone Modem SDK

(nearly) Free custom firmware for your Pinephone's modem!

This repository contains all the tools you need use to make your own Modem userspace for your Pinephone.

Latest release: Version 0.4.2

Current Status:

  • LK Bootloader: Working

    • On reset, the bootloader enters into fastboot mode automatically for 2 seconds, and boots normally unless instructed to stay (leave the command fastboot oem stay running while rebooting the modem to make it stop at fastboot).
    • Custom fastboot commands:
    • fastboot reboot-bootlader: Reboot to fastboot
    • fastboot oem stay: Stay in fastboot instead of booting normally
    • fastboot oem reboot-recovery: Reboot to recovery mode
    • fastboot oem reboot-edl: Currently not working (investigating why)
    • fastboot oem getmfg: Try to identify the modem from the partition table
  • CAF Kernel: Working

  • Audio: Working, needs fine tunning (1-5 seconds of silence on call start)

  • Call volume: May need some tweaking to the ALSA UCM configuration file. You can do this by editing /usr/share/alsa/ucm2/PinePhone/VoiceCall.conf. These values seem to work well: * cset "name='AIF2 DAC Playback Volume' 90%" * cset "name='AIF2 ADC Capture Volume' 90%" * A reboot is required after changing this configuration file. * Feel free to play around with the values, default value is '160' for both items (without '%' sign). Mine sounds loud enough at both extremes with 90% and 80% respectively

  • GPS: Working

  • Sleep / Power management: Working (New current measurement and profiling required after latest changes)

  • System images:

    • root_fs: Default system image. Includes a minimal root filesystem and one application replacing the entire Qualcomm / Quectel stack. Some functions are not yet functional
    • recovery_fs: Minimal bootable image to be flashed into the recovery partitions to retrieve logs and make changes to the root image
  • Custom AT Commands: Please see this document

Features not available on stock firmware:

  • Non persistent storage: There's no way of corrupting your modem firmware from a bad shutdown
  • Automatic time synchronization from the carrier into the userspace
  • Minimum clock frequency is set to 100Mhz, either awake or sleeping (stock is 800MHz awake and 400Mhz sleep), making the modem run cooler
  • Different sampling rates available at runtime without requiring a reboot (missing companion app in the pinephone to make use of them)
  • 0 binary blobs in the userspace. Only closed source running on the modem are TZ Kernel and ADSP firmware

TODO

  1. Find and fix the last remaining USB port reset cause
  2. Find fixes to support dynamic rate settings in the Pinephone
  3. Finish and tidy up the AT command handling stuff
  4. Allow bootloader PIN lock to prevent accidental flashing
  5. Implement opensource ACDB loader?
  6. Fix fastboot reboot to EDL if possible
  7. Companion app to update the firmware / manage modem settings / retrieve logs

Contribution is always welcome! Feel free to share any issue or something that you think may be interesting to have!

Related Repositories

This project depends on the following repositories:

Make sure you have your recoveries ready just in case:

Documentation

I'm really bad at documentation, but you have some docs here, thanks @Zapeth for your help!

pinephone_modem_sdk's People

Contributors

biktorgj avatar dogtopus avatar kkeijzer avatar undef-a avatar victor-gj avatar zapeth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.