the-modem-distro / pinephone_modem_sdk

Pinephone Modem SDK: Tools to build your own bootloader, kernel and rootfs
GNU General Public License v3.0
595 stars 64 forks source link

android-adp #99

Open pratriciap opened 2 years ago

pratriciap commented 2 years ago

Hi: This may not be the best place for my question but I am new to git hub and dont know my way around yet. I have been trying to update the modem for a p pro using biktorgis flashall, runing both mobian and manjaro from minicom.

fllashall failed, as well as adp --help with a can not load shared libraries error. I tried two versions of adp, one a snap, and the other a manjaro package. Manjaro was missing libprotobuf.so.30, and the snap was missing libcrypto.so.1.0.0. Both of these libraries are antiquated and I could not find them anywhere. Neither am I aware of any other available arm version of adp.

So far as I know adp must consist of an arm phone resident version. Could someone please tell me where I can get a version of android-adb which works on either manjaro or mobian, how to get traction on this problem, or what I am missing. What do you guys do that I dont know about ?

Biktorgj commented 2 years ago

Hi!

If you're using Mobian, fastest way to get both adb and fastboot will be to simply run apt install adb fastboot In Arch / Manjaro, this should install both applications too: pacman -S android-tools

Those will install all dependencies and the binaries you might need, no need to do anything else

Let me know if it works for you!

pratriciap commented 2 years ago

Hi, I tried both suggestions, manjara/pacman and mobian/apt early on and neither worked, but this time apt did install adb correctly in mobian, many thanks! Manjaro however, is still broken with
root@manjaro-arm bin]# adb --help

adb: error while loading shared libraries: libprotobuf.so.30: cannot open shared object file: No such file or directory

Name : android-tools Version : 31.0.3-3

Mobian is less sastifactory to work on using minicom, because it dumps system messages to the screen. whereas manjaro does not. By chance, do you know the switch to turn this off ?

Biktorgj commented 2 years ago

Manjaro currently has some issue with the adb package, apparently an incorrect version of a library is installed with adb so it fails. We'll have to wait for them to fix that

About the serial port, I assume you are running minicom over the Pinephone serial port? By default most distros dump the console log there, so it will be constantly nagging. You can remove console=... parameter from /boot/extlinux/extlinux.conf and reboot to disable console logging, but maybe easier and more confortable to just start SSH and run minicom over ssh :)

pratriciap commented 2 years ago

Modem flash attempt

5-28-22

Having obtained a good version of android-tools, adb, I attempted to flash it, but I think the modem got lunched from an earlier attempt that resulted from trying to use flashall on manjaro, with a broken adb package. (I wish somebody would have told me)

Assumming a modem boot failure I went to your TROUBLE SHOOTING section and did the following:

I went through this a couple of times, and only invoked adb about the third time through to get journal data when nothing else made any sense

Finally, so far as I know, there exists a valid ting card in the sim slot, and as I remember, there was a modem or mobile entry in the settings menu. Now I see no such thing, no way to get the imei num, nothing.

The modem gets recognized as a USB device and the adb deamon starts, but adb and fastboot fail to communicate with it. modem-manager gui fails to indicate any devices.

Am I missing something, or do I need to go down to the bottom of the sewer with EDB and qfirehose ? I am not sure what state of the universe I am in.

I have attached a description for some of the journal messages, if per chance you can make some sense out of them.

I would really like to see the PPro through, but my time is limited. We are building a home on Orcas Island, and I only have about one day a week available at home to do anything with it, So if I delay in getting back with you, it is not for lack of interest.


MODEM LOG INFO PINEPHONE PRO FLASH ATTEMPT 5-28-22

these are taken from kkeijzer's script

mobian/modem/messages.sh (kkeijzers script)

● eg25-manager.service - Quectel EG25 modem Loaded: loaded (/lib/systemd/system/eg25-manager.service; enabled; vendor > Active: active (running) since Sat 2022-05-28 21:44:02 UTC; 5min ago Main PID: 562 (eg25-manager) Tasks: 3 (limit: 4309) Memory: 5.8M CPU: 169ms CGroup: /system.slice/eg25-manager.service └─562 /usr/bin/eg25-manager lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 004: ID 0fe6:9900 ICS Advent 10/100M LAN Bus 005 Device 003: ID 0639:7210 Chrontel, Inc. Billboard Bus 005 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@mobian:/home/mobian/modem#

eg25-manager.log

May 28 21:44:02 mobian systemd[1]: Started Quectel EG25 modem. May 28 21:44:04 mobian eg25-manager[562]: Opening config file: /usr/share/eg25-manager/pine64,pinephone-prol May 28 21:44:04 mobian eg25-manager[562]: STATUS is low, modem already powered May 28 21:44:04 mobian eg25-manager[562]: taking systemd sleep inhibitor May 28 21:44:04 mobian eg25-manager[562]: oFono vanished from D-Bus May 28 21:44:04 mobian eg25-manager[562]: inhibitor sleep fd is 20 May 28 21:44:06 mobian eg25-manager[562]: ModemManager appeared on D-Bus May 28 21:44:34 mobian eg25-manager[562]: Rescheduling upload since modem isn't online yet, in 30s May 28 21:45:04 mobian eg25-manager[562]: Rescheduling upload since modem isn't online yet, in 30s " " " " theres many more entries all stating isn't online yet, in 30s

modemmanager.log

May 28 21:44:04 mobian systemd[1]: Starting Modem Manager... May 28 21:44:05 mobian ModemManager[638]: ModemManager (version 1.18.6) starting in system bus... May 28 21:44:06 mobian systemd[1]: Started Modem Manager. May 28 21:44:08 mobian ModemManager[638]: [/dev/cdc-wdm0] Opening device with flags 'version-info, proxy'... May 28 21:44:08 mobian ModemManager[638]: [/dev/cdc-wdm0] created endpoint May 28 21:44:08 mobian ModemManager[638]: cannot connect to proxy: Could not connect: Connection refused May 28 21:44:08 mobian ModemManager[638]: spawning new qmi-proxy (try 1)... May 28 21:44:08 mobian ModemManager[638]: [/dev/cdc-wdm0] Checking version info (45 retries)... May 28 21:44:09 mobian ModemManager[638]: [base-manager] couldn't check support for device '/sys/den May 28 21:44:09 mobian ModemManager[638]: [base-manager] couldn't check support for device '/sys/den May 28 21:44:09 mobian ModemManager[638]: transaction 0x2 aborted, but message is not abortable May 28 21:44:10 mobian ModemManager[638]: transaction 0x3 aborted, but message is not abortable May 28 21:44:11 mobian ModemManager[638]: transaction 0x4 aborted, but message is not abortable May 28 21:44:12 mobian ModemManager[638]: transaction 0x5 aborted, but message is not abortable May 28 21:44:13 mobian ModemManager[638]: transaction 0x6 aborted, but message is not abortable May 28 21:44:14 mobian ModemManager[638]: transaction 0x7 aborted, but message is not abortable May 28 21:44:15 mobian ModemManager[638]: transaction 0x8 aborted, but message is not abortable May 28 21:44:16 mobian ModemManager[638]: transaction 0x9 aborted, but message is not abortable May 28 21:44:17 mobian ModemManager[638]: transaction 0xa aborted, but message is not abortable May 28 21:44:18 mobian ModemManager[638]: transaction 0xb aborted, but message is not abortable May 28 21:44:19 mobian ModemManager[638]: transaction 0xc aborted, but message is not abortable May 28 21:44:20 mobian ModemManager[638]: transaction 0xd aborted, but message is not abortable May 28 21:44:21 mobian ModemManager[638]: transaction 0xe aborted, but message is not abortable May 28 21:44:22 mobian ModemManager[638]: transaction 0xf aborted, but message is not abortable May 28 21:44:23 mobian ModemManager[638]: transaction 0x10 aborted, but message is not abortable May 28 21:44:24 mobian ModemManager[638]: transaction 0x11 aborted, but message is not abortable May 28 21:44:25 mobian ModemManager[638]: transaction 0x12 aborted, but message is not abortable May 28 21:44:26 mobian ModemManager[638]: transaction 0x13 aborted, but message is not abortable May 28 21:44:27 mobian ModemManager[638]: transaction 0x14 aborted, but message is not abortable May 28 21:44:28 mobian ModemManager[638]: transaction 0x15 aborted, but message is not abortable May 28 21:44:29 mobian ModemManager[638]: transaction 0x16 aborted, but message is not abortable May 28 21:44:30 mobian ModemManager[638]: transaction 0x17 aborted, but message is not abortable May 28 21:44:31 mobian ModemManager[638]: transaction 0x18 aborted, but message is not abortable May 28 21:44:32 mobian ModemManager[638]: transaction 0x19 aborted, but message is not abortable May 28 21:44:33 mobian ModemManager[638]: transaction 0x1a aborted, but message is not abortable May 28 21:44:34 mobian ModemManager[638]: transaction 0x1b aborted, but message is not abortable May 28 21:44:35 mobian ModemManager[638]: transaction 0x1c aborted, but message is not abortable May 28 21:44:36 mobian ModemManager[638]: transaction 0x1d aborted, but message is not abortable May 28 21:44:37 mobian ModemManager[638]: transaction 0x1e aborted, but message is not abortable May 28 21:44:38 mobian ModemManager[638]: transaction 0x1f aborted, but message is not abortable May 28 21:44:39 mobian ModemManager[638]: transaction 0x20 aborted, but message is not abortable May 28 21:44:40 mobian ModemManager[638]: transaction 0x21 aborted, but message is not abortable May 28 21:44:41 mobian ModemManager[638]: transaction 0x22 aborted, but message is not abortable May 28 21:44:42 mobian ModemManager[638]: transaction 0x23 aborted, but message is not abortable May 28 21:44:43 mobian ModemManager[638]: transaction 0x24 aborted, but message is not abortable May 28 21:44:44 mobian ModemManager[638]: transaction 0x25 aborted, but message is not abortable May 28 21:44:45 mobian ModemManager[638]: transaction 0x26 aborted, but message is not abortable May 28 21:44:46 mobian ModemManager[638]: transaction 0x27 aborted, but message is not abortable May 28 21:44:47 mobian ModemManager[638]: transaction 0x28 aborted, but message is not abortable May 28 21:44:48 mobian ModemManager[638]: transaction 0x29 aborted, but message is not abortable May 28 21:44:49 mobian ModemManager[638]: transaction 0x2a aborted, but message is not abortable May 28 21:44:50 mobian ModemManager[638]: transaction 0x2b aborted, but message is not abortable May 28 21:44:51 mobian ModemManager[638]: transaction 0x2c aborted, but message is not abortable May 28 21:44:52 mobian ModemManager[638]: transaction 0x2d aborted, but message is not abortable May 28 21:44:53 mobian ModemManager[638]: transaction 0x2e aborted, but message is not abortable May 28 21:44:53 mobian ModemManager[638]: [device /sys/devices/platform/fe3c0000.usb/usb1/1-1] creas May 28 21:44:53 mobian ModemManager[638]: [plugin/quectel] could not grab port cdc-wdm0: Cannot adde May 28 21:44:53 mobian ModemManager[638]: [plugin/quectel] could not grab port ttyUSB3: Cannot add e May 28 21:44:53 mobian ModemManager[638]: [plugin/quectel] could not grab port ttyUSB2: Cannot add e May 28 21:44:53 mobian ModemManager[638]: [base-manager] couldn't create modem for device '/sys/devt root@mobian:/home/mobian/modem# [ 1205.021096] rk818-bat: changed: dsoc=19, rsoc=50, v=3548, ov=3812 c=-1180 [ 1205.032958] rk818-bat: dl=48, rl=64, v=3733, halt=0, halt_n=2, max=0, init=0, sw=0, calib=0, below0=0, f0

sudo dmesg | grep modem

[ 1.141474] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 30.401717] usbserial: USB Serial support registered for GSM modem (1-port) [ 30.402791] option 1-1:1.0: GSM modem (1-port) converter detected [ 30.404010] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0 [ 30.405116] option 1-1:1.1: GSM modem (1-port) converter detected [ 30.409880] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1 [ 30.410999] option 1-1:1.2: GSM modem (1-port) converter detected [ 30.412138] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2 [ 30.413189] option 1-1:1.3: GSM modem (1-port) converter detected [ 30.419600] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3

Biktorgj commented 2 years ago

So, you never managed to get into fastboot mode, and I'm not really sure what's the state of the modem right now.

Are you still running stock? If you are, the fastboot oem stay & trick is not going to work (that is a custom firmware trick that the stock firmware doesn't have)

There are only two ways to enter fastboot mode from the stock firmware. One would be from ADB, but you need to unlock it and enable it, and the other, much faster way, is with an AT command.

From a root terminal, try to run this: echo -ne "AT+QFASTBOOT\r\n" > /dev/ttyUSB2

If this works, after running lsusb you should see the fastboot device listed. The modem doesn't connect anymore, probably because of the timeouts it's showing in ModemManager, but since I'm unsure if you managed to flash anything I'm unsure on which advice to give... If you never really managed to flash anything onto it, you can try to set power/control to on in the udev rules file as explained here: https://github.com/Biktorgj/pinephone_modem_sdk/blob/kirkstone/docs/SETTINGS.md#pinephone-pro

NOTE: If you're running stock, only change the power/control line, don't set persist to 1 as this breaks modem functionality on suspend

Hope it helps!

pratriciap commented 2 years ago

OK, so heres what I tried to do:

BTW no NON-HLOS.ubi file was included in your 6.5 package as there was with earlier ones.

pratriciap commented 2 years ago

Ok, so here's what I tried to do:

BTW no NON-HLOS.ubi file was included in your 6.5 package as there was with earlier ones.

pratriciap commented 2 years ago

Correction: sorry about the two entries:

NON-HLOS.ubi file was not included in package 6.5

fabertawe commented 2 years ago

@pratriciap - did you get any further resolving this?

@Biktorgj - I'm in the same situation as pratriciap. I think I'm at the point of trying the "recovery" but how exactly do I short the two points? With something like a paperclip?

Biktorgj commented 2 years ago

As I don't know in which situation each one of you are anymore, and I feel @pratriciap got some things mixed up, let's start from the beginning so I can understand where each of you are at:

  1. Are you still running stock, or are you already using the custom firmware?
  2. The modem still boots?

If any of the answers is true, you shouldn't need to use the testpoint method to reflash anything.

Also, are you using a Pinephone or a Pinephone Pro? If you open a root terminal, and you run echo -ne "AT+QFASTBOOT\r\n" > /dev/ttyUSB2, does the modem icon disappear from the topbar, at least for a few seconds?

fabertawe commented 2 years ago

@Biktorgj - The reason I didn't start a new issue is because my logs were, as far as I could tell, very similar to pratriciap! Would you prefer I move this to a new issue? I have a Pinephone 1.2 (very recent purchase) running stock (.001). I only wanted to flash as the PP wiki suggests this.

I did read as much as I could regarding this before attempting it but I think I may have done things in the wrong order... because of the warning about having a recent enough baseband version before installing the firmware, I tried updating the ADSP first, to .003.

echo -ne "AT+QFASTBOOT\r" > /dev/ttyUSB2 worked but fastboot flash modem NON-HLOS.ubi && fastboot reboot failed at some point. Apologies, I should have noted the exact error message but suffice to say, any attempt now at entering fastboot just says "waiting for device". The modem does not boot (no icon/greyed). I have tried all troubleshooting I can find, including reading all open and closed issues here. This is on Arch Phosh btw.

lsusb

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ls -la /dev

total 4
drwxr-xr-x  19 root  root       4320 Jun 26 12:46 .
drwxr-xr-x  17 root  root       4096 May  2 12:15 ..
lrwxrwxrwx   1 root  root         26 Jun 26 12:46 anbox-binder -> /dev/binderfs/anbox-binder
lrwxrwxrwx   1 root  root         28 Jun 26 12:46 anbox-hwbinder -> /dev/binderfs/anbox-hwbinder
lrwxrwxrwx   1 root  root         29 Jun 26 12:46 anbox-vndbinder -> /dev/binderfs/anbox-vndbinder
crw-r--r--   1 root  root    10, 235 Jun 26 12:46 autofs
lrwxrwxrwx   1 root  root         20 Jun 26 12:46 binder -> /dev/binderfs/binder
lrwxrwxrwx   1 root  root         28 Jun 26 12:46 binder-control -> /dev/binderfs/binder-control
drwxr-xr-x   3 root  root          0 Jun 26 12:46 binderfs
drwxr-xr-x   2 root  root        320 Jun 26 12:46 block
crw-------   1 root  root    10, 234 Jun 26 12:46 btrfs-control
drwxr-xr-x   3 root  root         60 Jun 26 12:45 bus
crw-------   1 root  root   180, 176 Jun 26 12:46 cdc-wdm0
drwxr-xr-x   2 root  root       3760 Jun 26 12:46 char
crw-------   1 root  root     5,   1 Jun 26 12:46 console
crw-------   1 root  root    10, 127 Jun 26 12:46 cpu_dma_latency
crw-------   1 root  root    10, 203 Jun 26 12:46 cuse
drwxr-xr-x   8 root  root        160 Jun 26 12:46 disk
drwxr-xr-x   3 root  root        120 Jun 26 12:46 dri
crw-rw----   1 root  video   29,   0 Jun 26 12:46 fb0
lrwxrwxrwx   1 root  root         13 Jun 26 12:46 fd -> /proc/self/fd
lrwxrwxrwx   1 root  root         22 Jun 26 12:46 features -> /dev/binderfs/features
crw-rw-rw-   1 root  root     1,   7 Jun 26 12:46 full
crw-rw-rw-   1 root  root    10, 229 Jun 26 12:46 fuse
crw-------   1 root  root   254,   0 Jun 26 12:46 gpiochip0
crw-------   1 root  root   254,   1 Jun 26 12:46 gpiochip1
drwxr-xr-x   2 root  root          0 Jun 26 12:46 hugepages
lrwxrwxrwx   1 root  root         22 Jun 26 12:46 hwbinder -> /dev/binderfs/hwbinder
crw-------   1 root  root    10, 183 Jun 26 12:46 hwrng
crw-------   1 root  root    89,   0 Jun 26 12:46 i2c-0
crw-------   1 root  root    89,   1 Jun 26 12:46 i2c-1
crw-------   1 root  root    89,   2 Jun 26 12:46 i2c-2
crw-------   1 root  root    89,   3 Jun 26 12:46 i2c-3
crw-------   1 root  root    89,   4 Jun 26 12:46 i2c-4
crw-------   1 root  root    89,   5 Jun 26 12:46 i2c-5
crw-------   1 root  root   250,   1 Jun 26 12:46 iio:device1
crw-------   1 root  root   250,   3 Jun 26 12:46 iio:device3
drwxr-xr-x   3 root  root        180 Jun 26 12:46 input
crw-r--r--   1 root  root     1,  11 Jun 26 12:46 kmsg
crw-rw-rw-   1 root  kvm     10, 232 Jun 26 12:46 kvm
lrwxrwxrwx   1 root  root         28 Jun 26 12:46 log -> /run/systemd/journal/dev-log
brw-rw----   1 root  disk     7,   0 Jun 26 12:46 loop0
brw-rw----   1 root  disk     7,   1 Jun 26 12:46 loop1
brw-rw----   1 root  disk     7,   2 Jun 26 12:46 loop2
brw-rw----   1 root  disk     7,   3 Jun 26 12:46 loop3
brw-rw----   1 root  disk     7,   4 Jun 26 12:46 loop4
brw-rw----   1 root  disk     7,   5 Jun 26 12:46 loop5
brw-rw----   1 root  disk     7,   6 Jun 26 12:46 loop6
brw-rw----   1 root  disk     7,   7 Jun 26 12:46 loop7
crw-rw----   1 root  disk    10, 237 Jun 26 12:46 loop-control
drwxr-xr-x   2 root  root         60 Jun 26 12:45 mapper
crw-rw----+  1 root  video  251,   0 Jun 26 12:46 media0
crw-rw----+  1 root  video  251,   1 Jun 26 12:46 media1
crw-r-----   1 root  kmem     1,   1 Jun 26 12:46 mem
brw-rw----   1 root  disk   179,   0 Jun 26 12:46 mmcblk2
brw-rw----   1 root  disk   179,  32 Jun 26 12:46 mmcblk2boot0
brw-rw----   1 root  disk   179,  64 Jun 26 12:46 mmcblk2boot1
brw-rw----   1 root  disk   179,   1 Jun 26 12:46 mmcblk2p1
brw-rw----   1 root  disk   179,   2 Jun 26 12:46 mmcblk2p2
drwxrwxrwt   2 root  root         40 Jan  1  1970 mqueue
drwxr-xr-x   2 root  root         60 Jan  1  1970 net
crw-rw-rw-   1 root  root     1,   3 Jun 26 12:46 null
crw-------   1 root  root   108,   0 Jun 26 12:46 ppp
crw-rw-rw-   1 root  tty      5,   2 Jun 26 12:52 ptmx
drwxr-xr-x   2 root  root          0 Jun 26 12:46 pts
crw-------   1 root  root     2,   0 Jun 26 12:46 ptyp0
crw-------   1 root  root     2,   1 Jun 26 12:46 ptyp1
crw-------   1 root  root     2,   2 Jun 26 12:46 ptyp2
crw-------   1 root  root     2,   3 Jun 26 12:46 ptyp3
crw-------   1 root  root     2,   4 Jun 26 12:46 ptyp4
crw-------   1 root  root     2,   5 Jun 26 12:46 ptyp5
crw-------   1 root  root     2,   6 Jun 26 12:46 ptyp6
crw-------   1 root  root     2,   7 Jun 26 12:46 ptyp7
crw-------   1 root  root     2,   8 Jun 26 12:46 ptyp8
crw-------   1 root  root     2,   9 Jun 26 12:46 ptyp9
crw-------   1 root  root     2,  10 Jun 26 12:46 ptypa
crw-------   1 root  root     2,  11 Jun 26 12:46 ptypb
crw-------   1 root  root     2,  12 Jun 26 12:46 ptypc
crw-------   1 root  root     2,  13 Jun 26 12:46 ptypd
crw-------   1 root  root     2,  14 Jun 26 12:46 ptype
crw-------   1 root  root     2,  15 Jun 26 12:46 ptypf
crw-rw-rw-   1 root  root     1,   8 Jun 26 12:46 random
crw-rw-r--+  1 root  rfkill  10, 242 Jun 26 12:46 rfkill
lrwxrwxrwx   1 root  root          4 Jun 26 12:46 rtc -> rtc0
crw-------   1 root  root   252,   0 Jun 26 12:46 rtc0
drwxr-xr-x   4 root  root         80 Jun 26 12:46 serial
drwxrwxrwt   2 root  root         40 Jun 26 12:48 shm
crw-------   1 root  root    10, 231 Jun 26 12:46 snapshot
drwxr-xr-x   3 root  root        160 Jun 26 12:46 snd
lrwxrwxrwx   1 root  root         15 Jun 26 12:46 stderr -> /proc/self/fd/2
lrwxrwxrwx   1 root  root         15 Jun 26 12:46 stdin -> /proc/self/fd/0
lrwxrwxrwx   1 root  root         15 Jun 26 12:46 stdout -> /proc/self/fd/1
crw-rw-rw-   1 root  tty      5,   0 Jun 26 12:48 tty
crw--w----   1 root  tty      4,   0 Jun 26 12:46 tty0
crw--w----   1 root  tty      4,   1 Jun 26 12:46 tty1
crw--w----   1 root  tty      4,  10 Jun 26 12:46 tty10
crw--w----   1 root  tty      4,  11 Jun 26 12:46 tty11
crw--w----   1 root  tty      4,  12 Jun 26 12:46 tty12
crw--w----   1 root  tty      4,  13 Jun 26 12:46 tty13
crw--w----   1 root  tty      4,  14 Jun 26 12:46 tty14
crw--w----   1 root  tty      4,  15 Jun 26 12:46 tty15
crw--w----   1 root  tty      4,  16 Jun 26 12:46 tty16
crw--w----   1 root  tty      4,  17 Jun 26 12:46 tty17
crw--w----   1 root  tty      4,  18 Jun 26 12:46 tty18
crw--w----   1 root  tty      4,  19 Jun 26 12:46 tty19
crw--w----   1 root  tty      4,   2 Jun 26 12:46 tty2
crw--w----   1 root  tty      4,  20 Jun 26 12:46 tty20
crw--w----   1 root  tty      4,  21 Jun 26 12:46 tty21
crw--w----   1 root  tty      4,  22 Jun 26 12:46 tty22
crw--w----   1 root  tty      4,  23 Jun 26 12:46 tty23
crw--w----   1 root  tty      4,  24 Jun 26 12:46 tty24
crw--w----   1 root  tty      4,  25 Jun 26 12:46 tty25
crw--w----   1 root  tty      4,  26 Jun 26 12:46 tty26
crw--w----   1 root  tty      4,  27 Jun 26 12:46 tty27
crw--w----   1 root  tty      4,  28 Jun 26 12:46 tty28
crw--w----   1 root  tty      4,  29 Jun 26 12:46 tty29
crw--w----   1 root  tty      4,   3 Jun 26 12:46 tty3
crw--w----   1 root  tty      4,  30 Jun 26 12:46 tty30
crw--w----   1 root  tty      4,  31 Jun 26 12:46 tty31
crw--w----   1 root  tty      4,  32 Jun 26 12:46 tty32
crw--w----   1 root  tty      4,  33 Jun 26 12:46 tty33
crw--w----   1 root  tty      4,  34 Jun 26 12:46 tty34
crw--w----   1 root  tty      4,  35 Jun 26 12:46 tty35
crw--w----   1 root  tty      4,  36 Jun 26 12:46 tty36
crw--w----   1 root  tty      4,  37 Jun 26 12:46 tty37
crw--w----   1 root  tty      4,  38 Jun 26 12:46 tty38
crw--w----   1 root  tty      4,  39 Jun 26 12:46 tty39
crw--w----   1 root  tty      4,   4 Jun 26 12:46 tty4
crw--w----   1 root  tty      4,  40 Jun 26 12:46 tty40
crw--w----   1 root  tty      4,  41 Jun 26 12:46 tty41
crw--w----   1 root  tty      4,  42 Jun 26 12:46 tty42
crw--w----   1 root  tty      4,  43 Jun 26 12:46 tty43
crw--w----   1 root  tty      4,  44 Jun 26 12:46 tty44
crw--w----   1 root  tty      4,  45 Jun 26 12:46 tty45
crw--w----   1 root  tty      4,  46 Jun 26 12:46 tty46
crw--w----   1 root  tty      4,  47 Jun 26 12:46 tty47
crw--w----   1 root  tty      4,  48 Jun 26 12:46 tty48
crw--w----   1 root  tty      4,  49 Jun 26 12:46 tty49
crw--w----   1 root  tty      4,   5 Jun 26 12:46 tty5
crw--w----   1 root  tty      4,  50 Jun 26 12:46 tty50
crw--w----   1 root  tty      4,  51 Jun 26 12:46 tty51
crw--w----   1 root  tty      4,  52 Jun 26 12:46 tty52
crw--w----   1 root  tty      4,  53 Jun 26 12:46 tty53
crw--w----   1 root  tty      4,  54 Jun 26 12:46 tty54
crw--w----   1 root  tty      4,  55 Jun 26 12:46 tty55
crw--w----   1 root  tty      4,  56 Jun 26 12:46 tty56
crw--w----   1 root  tty      4,  57 Jun 26 12:46 tty57
crw--w----   1 root  tty      4,  58 Jun 26 12:46 tty58
crw--w----   1 root  tty      4,  59 Jun 26 12:46 tty59
crw--w----   1 root  tty      4,   6 Jun 26 12:46 tty6
crw--w----   1 root  tty      4,  60 Jun 26 12:46 tty60
crw--w----   1 root  tty      4,  61 Jun 26 12:46 tty61
crw--w----   1 root  tty      4,  62 Jun 26 12:46 tty62
crw--w----   1 root  tty      4,  63 Jun 26 12:46 tty63
crw--w----   1 alarm tty      4,   7 Jun 26 12:46 tty7
crw--w----   1 root  tty      4,   8 Jun 26 12:46 tty8
crw--w----   1 root  tty      4,   9 Jun 26 12:46 tty9
crw-------   1 root  root     3,   0 Jun 26 12:46 ttyp0
crw-------   1 root  root     3,   1 Jun 26 12:46 ttyp1
crw-------   1 root  root     3,   2 Jun 26 12:46 ttyp2
crw-------   1 root  root     3,   3 Jun 26 12:46 ttyp3
crw-------   1 root  root     3,   4 Jun 26 12:46 ttyp4
crw-------   1 root  root     3,   5 Jun 26 12:46 ttyp5
crw-------   1 root  root     3,   6 Jun 26 12:46 ttyp6
crw-------   1 root  root     3,   7 Jun 26 12:46 ttyp7
crw-------   1 root  root     3,   8 Jun 26 12:46 ttyp8
crw-------   1 root  root     3,   9 Jun 26 12:46 ttyp9
crw-------   1 root  root     3,  10 Jun 26 12:46 ttypa
crw-------   1 root  root     3,  11 Jun 26 12:46 ttypb
crw-------   1 root  root     3,  12 Jun 26 12:46 ttypc
crw-------   1 root  root     3,  13 Jun 26 12:46 ttypd
crw-------   1 root  root     3,  14 Jun 26 12:46 ttype
crw-------   1 root  root     3,  15 Jun 26 12:46 ttypf
crw-rw----   1 root  uucp     4,  64 Jun 26 12:46 ttyS0
crw-rw----   1 root  uucp     4,  66 Jun 26 12:46 ttyS2
crw-rw----   1 root  uucp     4,  67 Jun 26 12:46 ttyS3
crw-rw----   1 root  uucp   188,   0 Jun 26 12:46 ttyUSB0
crw-rw----   1 root  uucp   188,   1 Jun 26 12:46 ttyUSB1
crw-rw----   1 root  uucp   188,   2 Jun 26 12:46 ttyUSB2
crw-rw----   1 root  uucp   188,   3 Jun 26 12:46 ttyUSB3
crw-------   1 root  root    10, 239 Jun 26 12:46 uhid
crw-------   1 root  root    10, 223 Jun 26 12:46 uinput
crw-rw-rw-   1 root  root     1,   9 Jun 26 12:46 urandom
drwxr-xr-x   3 root  root         60 Jun 26 12:46 v4l
crw-rw----+  1 root  video   81,   2 Jun 26 12:46 v4l-subdev0
crw-rw----+  1 root  video   81,   3 Jun 26 12:46 v4l-subdev1
crw-rw----   1 root  tty      7,   0 Jun 26 12:46 vcs
crw-rw----   1 root  tty      7,   1 Jun 26 12:46 vcs1
crw-rw----   1 root  tty      7,   2 Jun 26 12:46 vcs2
crw-rw----   1 root  tty      7,   3 Jun 26 12:46 vcs3
crw-rw----   1 root  tty      7,   4 Jun 26 12:46 vcs4
crw-rw----   1 root  tty      7,   5 Jun 26 12:46 vcs5
crw-rw----   1 root  tty      7,   6 Jun 26 12:46 vcs6
crw-rw----   1 root  tty      7,   7 Jun 26 12:46 vcs7
crw-rw----   1 root  tty      7, 128 Jun 26 12:46 vcsa
crw-rw----   1 root  tty      7, 129 Jun 26 12:46 vcsa1
crw-rw----   1 root  tty      7, 130 Jun 26 12:46 vcsa2
crw-rw----   1 root  tty      7, 131 Jun 26 12:46 vcsa3
crw-rw----   1 root  tty      7, 132 Jun 26 12:46 vcsa4
crw-rw----   1 root  tty      7, 133 Jun 26 12:46 vcsa5
crw-rw----   1 root  tty      7, 134 Jun 26 12:46 vcsa6
crw-rw----   1 root  tty      7, 135 Jun 26 12:46 vcsa7
crw-rw----   1 root  tty      7,  64 Jun 26 12:46 vcsu
crw-rw----   1 root  tty      7,  65 Jun 26 12:46 vcsu1
crw-rw----   1 root  tty      7,  66 Jun 26 12:46 vcsu2
crw-rw----   1 root  tty      7,  67 Jun 26 12:46 vcsu3
crw-rw----   1 root  tty      7,  68 Jun 26 12:46 vcsu4
crw-rw----   1 root  tty      7,  69 Jun 26 12:46 vcsu5
crw-rw----   1 root  tty      7,  70 Jun 26 12:46 vcsu6
crw-rw----   1 root  tty      7,  71 Jun 26 12:46 vcsu7
drwxr-xr-x   2 root  root         60 Jan  1  1970 vfio
crw-rw----+  1 root  video   81,   0 Jun 26 12:46 video0
crw-rw----+  1 root  video   81,   1 Jun 26 12:46 video1
lrwxrwxrwx   1 root  root         23 Jun 26 12:46 vndbinder -> /dev/binderfs/vndbinder
crw-rw-rw-   1 root  root     1,   5 Jun 26 12:46 zero
brw-rw----   1 root  disk   254,   0 Jun 26 12:46 zram0

systemctl status ModemManager

● ModemManager.service - Modem Manager
     Loaded: loaded (]8;;file://pine64/usr/lib/systemd/system/ModemManager.service/usr/lib/systemd/system/ModemManager.service]8;;; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2022-06-26 12:46:07 BST; 2min 5s ago
   Main PID: 3021 (ModemManager)
      Tasks: 5 (limit: 3273)
     Memory: 13.2M
        CPU: 1.004s
     CGroup: /system.slice/ModemManager.service
             ├─3021 /usr/bin/ModemManager --test-quick-suspend-resume
             └─3615 /usr/lib/qmi-proxy

Jun 26 12:47:05 pine64 ModemManager[3021]: transaction 0x2a aborted, but message is not abortable
Jun 26 12:47:06 pine64 ModemManager[3021]: transaction 0x2b aborted, but message is not abortable
Jun 26 12:47:07 pine64 ModemManager[3021]: transaction 0x2c aborted, but message is not abortable
Jun 26 12:47:08 pine64 ModemManager[3021]: transaction 0x2d aborted, but message is not abortable
Jun 26 12:47:09 pine64 ModemManager[3021]: transaction 0x2e aborted, but message is not abortable
Jun 26 12:47:09 pine64 ModemManager[3021]: <info>  [device /sys/devices/platform/soc/1c1b000.usb/usb2/2-1] creating modem with plugin 'quectel' and '6' ports
Jun 26 12:47:09 pine64 ModemManager[3021]: <warn>  [plugin/quectel] could not grab port ttyUSB2: Cannot add port 'tty/ttyUSB2', unhandled port type
Jun 26 12:47:09 pine64 ModemManager[3021]: <warn>  [plugin/quectel] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type
Jun 26 12:47:09 pine64 ModemManager[3021]: <warn>  [plugin/quectel] could not grab port ttyUSB3: Cannot add port 'tty/ttyUSB3', unhandled port type
Jun 26 12:47:09 pine64 ModemManager[3021]: <warn>  [base-manager] couldn't create modem for device '/sys/devices/platform/soc/1c1b000.usb/usb2/2-1': Failed to find primary AT port

systemctl status eg25-manager

● eg25-manager.service - Quectel EG25 modem
     Loaded: loaded (]8;;file://pine64/usr/lib/systemd/system/eg25-manager.service/usr/lib/systemd/system/eg25-manager.service]8;;; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2022-06-26 12:46:05 BST; 2min 13s ago
   Main PID: 2921 (eg25-manager)
      Tasks: 3 (limit: 3273)
     Memory: 7.8M
        CPU: 202ms
     CGroup: /system.slice/eg25-manager.service
             └─2921 /usr/bin/eg25-manager

Jun 26 12:46:05 pine64 eg25-manager[2921]: Starting modem...
Jun 26 12:46:06 pine64 eg25-manager[2921]: Executed power-on/off sequence
Jun 26 12:46:06 pine64 eg25-manager[2921]: taking systemd sleep inhibitor
Jun 26 12:46:06 pine64 eg25-manager[2921]: oFono vanished from D-Bus
Jun 26 12:46:06 pine64 eg25-manager[2921]: inhibitor sleep fd is 20
Jun 26 12:46:07 pine64 eg25-manager[2921]: ModemManager appeared on D-Bus
Jun 26 12:46:35 pine64 eg25-manager[2921]: Rescheduling upload since modem isn't online yet, in 30s
Jun 26 12:47:04 pine64 eg25-manager[2921]: Rescheduling upload since modem isn't online yet, in 30s
Jun 26 12:47:34 pine64 eg25-manager[2921]: Rescheduling upload since modem isn't online yet, in 30s
Jun 26 12:48:04 pine64 eg25-manager[2921]: Rescheduling upload since modem isn't online yet, in 30s

If I can supply anything else then please advise, thanks.

fabertawe commented 2 years ago

I went ahead and shorted the pins and carried out the recovery. I successfully booted into EDL mode (lsusb showing "(QDL mode)") on my first attempt (phew!) but firehosing failed a few times...

[000.000]: QFirehose Version: Quectel_LTE&5G_QFirehose_Linux&Android_V1.2.3
[000.000]: Builded: Oct 21 2020 19:13:31
[000.000]: Find md5 check file <./md5.txt>
[000.001]: md5 checking: ./contents.xml pass
[000.014]: md5 checking: ./update/appsboot.mbn pass
[000.017]: md5 checking: ./update/ENPRG9x07.mbn pass
[000.018]: md5 checking: ./update/firehose/partition_complete_p2K_b128K.mbn pass
[000.018]: md5 checking: ./update/firehose/patch_p2K_b128K.xml pass
[000.022]: md5 checking: ./update/firehose/prog_nand_firehose_9x07.mbn pass
[000.022]: md5 checking: ./update/firehose/rawprogram_nand_p2K_b128K_update.xml pass
[000.198]: md5 checking: ./update/mdm9607-boot.img pass
[000.488]: md5 checking: ./update/mdm9607-recovery.ubi pass
[002.056]: md5 checking: ./update/mdm9607-sysfs.ubi pass
[003.213]: md5 checking: ./update/NON-HLOS.ubi pass
[003.216]: md5 checking: ./update/NPRG9x07.mbn pass
[003.217]: md5 checking: ./update/partition.mbn pass
[003.217]: md5 checking: ./update/partition_nand.xml pass
[003.221]: md5 checking: ./update/rpm.mbn pass
[003.228]: md5 checking: ./update/sbl1.mbn pass
[003.243]: md5 checking: ./update/tz.mbn pass
[003.303]: md5 checking: ./update/usrdata.ubi pass
[003.303]: Totals checking 18 files md5 value, 0 file fail!
[003.303]: [1] /sys/bus/usb/devices/2-1 5c6/9008/0
[003.304]: P: /dev/bus/usb/002/002 idVendor=05c6 idProduct=9008
[003.304]: C: /dev/bus/usb/002/002 bNumInterfaces: 1
[003.304]: I: If#= 0 Alt= 0 #EPs= 2 Cls=ff Sub=ff Prot=ff
[003.304]: E: Ad=81 Atr=02 MxPS= 512 Ivl=0ms
[003.304]: E: Ad=01 Atr=02 MxPS= 512 Ivl=0ms
[003.304]: usbfs_is_kernel_driver_alive ioctl USBDEVFS_GETDRIVER failed, kernel driver may be inactive
[003.304]: dir=./update/firehose
[003.304]: d_name=prog_nand_firehose_9x07.mbn
[003.304]: prog_nand_firehose_filename = prog_nand_firehose_9x07.mbn
[003.304]: STATE <-- SAHARA_WAIT_HELLO
[003.308]: inf[0] ep_in -1/4096, errno = 71 (Protocol error)
[003.309]: qusb_noblock_read read=-1, errno: 71 (Protocol error)
[003.309]: qusb_noblock_read cur=0, min_size=1
[003.313]: qusb_noblock_write write=-1, errno: 71 (Protocol error)
[003.313]: qusb_noblock_write cur=0, min_size=1
[003.317]: inf[0] ep_in -1/4096, errno = 71 (Protocol error)
[003.317]: qusb_noblock_read read=-1, errno: 71 (Protocol error)
[003.317]: qusb_noblock_read cur=0, min_size=1
[003.317]: Sahara protocol error
[003.317]: Upgrade module failed.

But after toggling the modem hardware switch and restarting eg25-manager.service, the update succeeded!

I'm now running .002. Thanks.