Re: Pinephone Issue in 2.13
Adam Pigg <[email protected]> Mon, 23 Dec 2024 09:05:18 +0000
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <2735105.vuYhMxLoTh@adam-laptop-hp> |
Hi Dennis Apologies for the long delay.... On Monday 2 December 2024 17:55:18 Greenwich Mean Time Denis Kenzior wrote: > Hi Adam, > > On 11/28/24 11:41 AM, Adam Pigg wrote: > > 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. > > > 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> > 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' > 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. > [root@PinePhonePro defaultuser]# cat /sys/class/net/wwan0/qmi/raw_ip Y [root@PinePhonePro defaultuser]# cat /sys/class/net/wwan0/qmi/pass_through N > Regards, > -Denis
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEr1aGel3+a3VM67n3d+rfHu07OYAFAmdpJ84ACgkQd+rfHu07 OYBXqQf/SH6JHxKAE5AfF1nbMauMjLty6LZSApLgzPAxChXnmF5iKBfwsUgpjzE9 o4PMyADXcpnwIOOfozcNrpDlbFbO29qRoFYAObWblY+AtqYSsfwUxwdnvbdESuWv IexsTUDrNQ735msjFhxAOoPaauq5nrHv1cZBrCZ58hXTL5HFQWTnVJ1zN59zSQnz KsAo0gFM5jqjyNcfrHCDztYkNxvtGjdITNS1JH4BkcQXn38Xvo8NoEKZEVuNAJYU iIruRUdS1evncrixlv/Trc3xdo4+AFXFBHNJjtkht0KcB8R6AA/ErT1hwNdWfRpg DowMmpq9Na+S7BDzBnmEkHTkCdROCA== =RW98 -----END PGP SIGNATURE-----