cannot get expected data format: Failed to open file '/sys/class/net/wwan1/qmi/raw_ip
Sebastian Sjoholm
sebastian.sjoholm at gmail.com
Thu Jun 30 16:44:27 UTC 2016
> On Jun 30, 2016, at 18:36 , Aleksander Morgado <aleksander at aleksander.es> wrote:
>
> On Thu, Jun 30, 2016 at 6:13 PM, Bjørn Mork <bjorn at mork.no> wrote:
>>> no qmi directory here. is this normal ?
>>>
>>> * question : why it doesn't connect ?
>>>
>>> system : debian 7
>>
>> It's not clear which kernel version you are using, but if it is the one
>> from Debian 7 then I'm afraid it is much too old for 'raw-ip'. This
>> feature was added as late as in Linux v4.5. There was no "raw_ip" sysfs
>> attribute before this, and therefore no "qmi" directory.
>
> But note that the lack of the raw-ip support isn't an issue in the
> MC7304; we can default to 802-3 just fine.
Hi,
I haven’t been able to get /dev/cdc-wdm0 to work with 802-3 on the MC7304, when using the /dev/cdc-wdm1 it works fine with 802-3. The /dev/cdc-wdm0 seems to need to raw-ip and later kernel as Björn mention.
Example:
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-start-network=ran3.dynamic.com --client-no-release-cid
[/dev/cdc-wdm0] Network started
Packet data handle: '1205778168'
[/dev/cdc-wdm0] Client ID not released:
Service: 'wds'
CID: ‘9'
# /sbin/udhcpc -q -f -S -n -i wwan0
udhcpc (v1.22.1) started Sending discover...
Sending discover...
Sending discover...
No lease, failing
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status
[/dev/cdc-wdm0] Connection status: ‘connected'
# ifconfig wwan0 down
# /usr/bin/qmicli -d /dev/cdc-wdm0 -e
802-3
# /usr/bin/qmicli -d /dev/cdc-wdm0 -E raw-ip
[/dev/cdc-wdm0] expected data format set to: raw-ip
# /usr/bin/qmicli -d /dev/cdc-wdm0 -e
raw-ip
# ifconfig wwan0 up
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status
[/dev/cdc-wdm0] Connection status: ‘connected'
# /sbin/udhcpc -q -f -S -n -i wwan0
udhcpc (v1.22.1) started Sending discover...
Sending select for 10.38.4.147...
Lease of 10.38.4.147 obtained, lease time 7200
ip: RTNETLINK answers: File exists
-Sebastian
More information about the libqmi-devel
mailing list