Pinephone Issue in 2.13
Hi Dennis
Myself and some users have an issue since upgrading from 2.12 to 2.13.
The logs on my own PP and PPP, and from another users PPP show the following code path, with the device being shut down:
Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:discover_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:create_wda_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_device() 0x2088ba20 Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_cb()
I think this would point to this commit in the 2.13 series:
https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?
id=1b4d985787795414319fe6170c4600c84bac6746
Issue happens with or without a SIM installed.
Is there any advice you can give, or can I provide anything to aid debugging?
Kind Regards
Adam
Hi Adam,
Quoted 4 lines · Adam Pigg
Hi Dennis
Myself and some users have an issue since upgrading from 2.12 to 2.13.
2.13 added multiple simultaneous data bearer support, but they should have been backwards compatible with those devices that don't support them. Guess I broke something :) Sorry about that.
Quoted 14 lines
The logs on my own PP and PPP, and from another users PPP show the following code path, with the device being shut down:
Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:discover_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:create_wda_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_device() 0x2088ba20 Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_cb()
What oFono tries to do is to cycle through three currently supported data formats:
- RAW_IP + QMAPv5 -> this enables multiple simultaneous bearer support. There's also in theory RAW_IP + QMAPv4, but I don't have any devices that only support this format.
- RAW_IP -> Single context, no 802.3 framing overhead
- 802.3 -> Supported by really old Qualcomm devices.
Looks like the firmware is rejecting every single format we try to set it into. Do you know what format PinePhone uses? Do you have libqmi / qmicli installed on the PinePhone to run some commands? Something like:
qmicli --device=/dev/cdc-wdm0 --wda-get-data-format=ep-type=hsusb,ep-iface-number=<InterfaceNumber>
where InterfaceNumber is what is being passed to gobi plugin from udevng inside the "InterfaceNumber" modem property.
For oFono 2.12, what do the contents of
/sys/class/net/<netif>/qmi/raw_ip
and
/sys/class/net/<netif>/qmi/pass_through
look like? <netif> in this case is the QMI wwan network device, something like wwan0.
Regards,
-Denis
Hi Dennis
Quoted 11 lines · On Monday 2 December 2024 17:55:18 Greenwich Mean Time Denis Kenzior wrote:
Hi Adam,
Quoted 3 lines · Adam Pigg
Hi Dennis
Myself and some users have an issue since upgrading from 2.12 to 2.13.
2.13 added multiple simultaneous data bearer support, but they should have been backwards compatible with those devices that don't support them. Guess I broke something :) Sorry about that.
No problem, its hard to debug devices you dont have access to, I know the feeling! (i support an app that interfaces with various "smart" watches)
Quoted 29 lines
Quoted 11 lines
The logs on my own PP and PPP, and from another users PPP show the following code path, with the device being shut down:
Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:discover_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:create_wda_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]:plugins/gobi.c:set_data_format_cb()
Quoted 8 lines
Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_device() 0x2088ba20 Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_cb()What oFono tries to do is to cycle through three currently supported data formats:
-
RAW_IP+ QMAPv5 -> this enables multiple simultaneous bearer support. There's also in theoryRAW_IP+ QMAPv4, but I don't have any devices that only support this format.
-RAW_IP-> Single context, no 802.3 framing overhead
- 802.3 -> Supported by really old Qualcomm devices.
Quoted 4 lines
Looks like the firmware is rejecting every single format we try to set it into. Do you know what format PinePhone uses? Do you have libqmi / qmicli installed on the PinePhone to run some commands? Something like:
I dont have these packaged, but I can look into that if needed, or ask around
Quoted 11 lines
qmicli --device=/dev/cdc-wdm0 --wda-get-data-format=ep-type=hsusb,ep-iface-number=<InterfaceNumber>
where InterfaceNumber is what is being passed to gobi plugin from udevng inside the "InterfaceNumber" modem property.
For oFono 2.12, what do the contents of
/sys/class/net/<netif>/qmi/raw_ip
and
/sys/class/net/<netif>/qmi/pass_through
[root@PinePhone defaultuser]# cat /sys/class/net/wwan0/qmi/pass_through N
[root@PinePhone defaultuser]# cat /sys/class/net/wwan0/qmi/raw_ip Y
Quoted 5 lines
look like? <netif> in this case is the QMI wwan network device, something like wwan0.
Regards,
-Denis
Adam
Hi Dennis
Apologies for the long delay....
Quoted 40 lines · On Monday 2 December 2024 17:55:18 Greenwich Mean Time Denis Kenzior wrote:
Hi Adam,
Quoted 3 lines · Adam Pigg
Hi Dennis
Myself and some users have an issue since upgrading from 2.12 to 2.13.
2.13 added multiple simultaneous data bearer support, but they should have been backwards compatible with those devices that don't support them. Guess I broke something :) Sorry about that.
Quoted 11 lines
The logs on my own PP and PPP, and from another users PPP show the following code path, with the device being shut down:
Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:discover_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:create_wda_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]:plugins/gobi.c:set_data_format_cb()
Quoted 8 lines
Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Trying next data format Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:set_data_format_cb() Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_device() 0x2088ba20 Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_cb()What oFono tries to do is to cycle through three currently supported data formats:
-
RAW_IP+ QMAPv5 -> this enables multiple simultaneous bearer support. There's also in theoryRAW_IP+ QMAPv4, but I don't have any devices that only support this format.
-RAW_IP-> Single context, no 802.3 framing overhead
- 802.3 -> Supported by really old Qualcomm devices.
Quoted 7 lines
Looks like the firmware is rejecting every single format we try to set it into. Do you know what format PinePhone uses? Do you have libqmi / qmicli installed on the PinePhone to run some commands? Something like:
qmicli --device=/dev/cdc-wdm0 --wda-get-data-format=ep-type=hsusb,ep-iface-number=<InterfaceNumber>
I checked the interface number from the ofono logs and got 04
Dec 22 22:14:48 PinePhonePro ofonod[1346]: plugins/udevng.c:setup_qmi_qmux()
qmi: /dev/cdc-wdm0 net: wwan0 kernel_driver: qmi_wwan interface_number: 04
But when I run the above command all i get is
[root@PinePhonePro defaultuser]# qmicli --device=/dev/cdc-wdm0 --wda-get-data- format=ep-type=hsusb,ep-iface-number=4
error: couldn't get data format: QMI protocol error (48): 'InvalidArgument' [root@PinePhonePro defaultuser]# qmicli --device=/dev/cdc-wdm0 --wda-get-data- format=ep-type=hsusb,ep-iface-number=04
error: couldn't get data format: QMI protocol error (48): 'InvalidArgument'
Quoted 11 lines
where InterfaceNumber is what is being passed to gobi plugin from udevng inside the "InterfaceNumber" modem property.
For oFono 2.12, what do the contents of
/sys/class/net/<netif>/qmi/raw_ip
and
/sys/class/net/<netif>/qmi/pass_throughlook like? <netif> in this case is the QMI wwan network device, something like wwan0.
[root@PinePhonePro defaultuser]# cat /sys/class/net/wwan0/qmi/raw_ip Y
[root@PinePhonePro defaultuser]# cat /sys/class/net/wwan0/qmi/pass_through N
Quoted 2 lines
Regards,
-Denis