Latest firmware for PinePhone modem!
I'm providing an updated copy of the firmware for the PinePhone's Quectel EG25-G modem.

The flashing utility was provided to me by Quectel support, and the modem firmware from a forum link for another device that uses this modem.

As they don't have an easy download link, perhaps the only way you're going to get it is from me or megous.

NOTE: If compiling C programs, or the idea of modem firmware, or any of these concepts seem alien to you, you should NOT attempt this. This is only for the brave and the wise.

This assumes some knowledge of Linux command lines, as well as having played with the modem previously.

I am attempting to help as this significantly improved my phone's reliability, but if you follow these instructions, you do so at your own risk. I am not responsible for anything that may happen as a result of attempting this, including the destruction of your phone.

For me, this fixed call audio not working at random times, as well as losing control of an outgoing call in progress.

Here is the flashing utility, and here is the modem firmware.

Extract both archives, possibly with "tar xf" if you don't have a good GUI for that.

I pre-compiled the flashing utility for AArch64 Linux, but dynamically linked for glibc. That means it should work on Mobian, Fedora, etc, but not other, weirder systems.
If you can't run the precompiled version, there is a makefile included with the source code, so type "make" to compile it after installing gcc and make from your package manager.

!! DANGER !!: This resets some modem configuration options, and you will probably need to reset them manually before calls work correctly, if you don't use megous' new modem power manager in kernel 5.8 or later. You should update to such a kernel BEFORE proceeeding.


Put the extracted qfirehose_good and newfw folders in the same location.
Next, cd to the qfirehose_good folder, and run:

sudo ./QFirehose -f ../newfw

It should take about a minute or a little longer.
Afterwards, if it says upgrade succeeded, you're good.

If it fails, try a couple more times. If it says something about no such file or directory, you're probably fine, you just have the wrong path specified for newfw.

Lastly, if you're unable to use a newer kernel, here's a dump of good settings from megous' kernel driver. QDAI is the most important and probably the only one you really need to change. Try changing that one first and see if things work normally.

[   41.248670] modem-power serial1-0: QDAI is '1,1,0,1,0,0,1,1'
[   41.264677] modem-power serial1-0: QCFG 'risignaltype' is '"physical"'
[   41.288660] modem-power serial1-0: QCFG 'urc/ri/ring' is '"pulse",1,1000,5000,"off",1'
[   41.304783] modem-power serial1-0: QCFG 'urc/ri/smsincoming' is '"pulse",1,1'
[   41.324645] modem-power serial1-0: QCFG 'urc/ri/other' is '"off",1,1'
[   41.340632] modem-power serial1-0: QCFG 'urc/ri/pin' is 'uart_ri'
[   41.356644] modem-power serial1-0: QCFG 'urc/delay' is '0'
[   41.372625] modem-power serial1-0: QCFG 'sleepind/level' is '0'
[   41.388666] modem-power serial1-0: QCFG 'wakeupin/level' is '0,0' (changing to '0')
[   41.440653] modem-power serial1-0: QCFG 'ApRstLevel' is '0'
[   41.456689] modem-power serial1-0: QCFG 'ModemRstLevel' is '0'
[   41.472673] modem-power serial1-0: QCFG 'apready' is '0,0,500'
[   41.488913] modem-power serial1-0: QCFG 'airplanecontrol' is '1,0'
[   41.512699] modem-power serial1-0: QCFG 'fast/poweroff' is '1'

And, the QFirehose source code will make you cry. I'm surprised it works. Just warning you.
what is included in the update? i dont have the know how of ho to do this stuff, i have a pinetime watch coming soon and hopefully infinitime update the watch enough.
(10-13-2020, 10:02 AM)Markdanni123 Wrote: what is included in the update? i dont have the know how of ho to do this stuff, i have a pinetime watch coming soon and hopefully infinitime update the watch enough.
There is a release notes file included in newfw that tells you a lot, but this is useless for PineTime and should not be used.
Thank you! Everyone should download a copy of this for emergency at least. You're a hero! Similarly i don't recommend anyone do this if they are not comfortable, but there was that issue about our quectel modem firmware getting corrupted in instances of sudden battery removal or improper shutdown. This could well revive any phones unfortunate enough to have gone through that and might be worth posting as a possible fix in some of those threads. That aside,for a normal update without need for emergency revival, pehaps one of the OS dev teams could build this into an update so it can be done safely along with a regular update and not require the risks of doing it manually.
Thank you very much for this highly interesting piece of the PhonePuzzle.

Who else has dared to go that way and what are the results?
85 MB for compressed firmware? What the...
(10-14-2020, 12:29 PM)TimotheeLF Wrote: 85 MB for compressed firmware? What the...
Well it contains the entire armv7 linux OS for the modem, so.
(10-14-2020, 05:21 PM)Subsentient Wrote:
(10-14-2020, 12:29 PM)TimotheeLF Wrote: 85 MB for compressed firmware? What the...
Well it contains the entire armv7 linux OS for the modem, so.
To be clear, I'm not disappointing with your work, thank you a lot for working to getting it!

It's just that it feels quite unoptimized.

Also do you need megous kernel specifically, or is an up to date upstream kernel good enough?
(10-14-2020, 06:37 PM)TimotheeLF Wrote: It's just that it feels quite unoptimized.

Oh, it is, believe me. Wish Quectel had some semblance of quality control in their software division.
Great work! Flashed just now via Mobian (SD card) on my PostmarketOS CE PinePhone. Needed sudo before the command, and had to chown and chmod the directories since I extracted the files on Windows and copied them over via USB. Aside from initial permission issues due to no sudo, all went well as far as I can tell. The modem info displays properly in the settings, calls work. The Phone app does occasionally crash on me, but that's probably an issue with Mobian, or more specifically, Mobian with all the things I've installed and changed on my end. Haven't switched over to my PinePhone just yet as my daily driver, and won't until MMS is supported, so I don't have much data to compare this firmware to the previous, but I can at least confirm calling and data work. Will need to test SMS.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Struggle to install LibreOffice on the PinePhone Peter Gamma 10 332 5 hours ago
Last Post: Peter Gamma
  Trouble building pinephone-keyboard tools 64_Tesseract 0 30 05-22-2022, 12:18 AM
Last Post: 64_Tesseract
  openSUSE for Pinephone Alefnode 71 61,743 05-15-2022, 10:44 AM
Last Post: flembcke
  Slack on PinePhone Adam Seline 2 1,099 05-01-2022, 04:04 AM
Last Post: nickolas
  Amazfish on Pinephone pagesix1536 9 4,951 04-11-2022, 12:50 PM
Last Post: thomzane
  AVMultiphone on Pinephone Juergen 8 6,647 04-04-2022, 12:47 PM
Last Post: Juergen
  Beta support: MMS on chatty/mmsd on Modem Manager - help/testing wanted! kop316 203 93,391 03-24-2022, 03:16 AM
Last Post: as365n4
  What is the best firmware to use an external screen with? Scary Guy 4 870 02-16-2022, 01:36 PM
Last Post: Avisando
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 19 6,891 01-19-2022, 03:03 PM
Last Post: acid andy
  HowTo: Get a passcode from DUO Mobile working on the Pinephone kop316 2 1,835 01-16-2022, 03:46 PM
Last Post: michel_luc

Forum Jump:

Users browsing this thread: 5 Guest(s)