MC7430 Connection problem
aleksander at aleksander.es
Mon Oct 2 20:17:21 UTC 2017
On Mon, Oct 2, 2017 at 8:16 PM, Alexandru Ardelean
<ardeleanalex at gmail.com> wrote:
> On Mon, Oct 2, 2017 at 7:36 PM, Aleksander Morgado
> <aleksander at aleksander.es> wrote:
>>>> However when I try to connect with the modem to the LTE network it looks as
>>>> if the modem is successfully attached to the cell but I don't get an IP
>>>> address on any of my interfaces wwan0 or wwan1.
>>>> When i run the qmi-network tool I get the following output
>>>> sudo qmi-network /dev/cdc-wdm0 start
>>>> Loading profile at /etc/qmi-network.conf...
>>>> APN: internet
>>>> APN user: unset
>>>> APN password: unset
>>>> qmi-proxy: no
>>>> Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format
>>>> Device link layer protocol retrieved: raw-ip
>>>> Getting expected data format with 'qmicli -d /dev/cdc-wdm0
>>>> Expected link layer protocol retrieved: 802-3
>>>> Updating kernel link layer protocol with 'qmicli -d /dev/cdc-wdm0
>>>> error: cannot set expected data format: Expected data format not updated
>>>> properly to 'raw-ip': got '802-3' instead
>>> This is weird.
>>> AFAIK, 802-3 does not work on MC7430 ; just raw-ip.
>> There are 2 things we do here in the qmi-network script (same thing is
>> done in ModemManager):
>> * the first one is asking the modem which is the link layer protocol
>> it expects, and in this case the modem is telling us it expects
>> "raw-ip" (MC74xx only support raw-ip)
>> * the second one is asking the kernel which is the link layer
>> protocol it expects, and in this case the kernel is telling us it
>> expects "802.3" (the default one).
>> So, we try to tell the kernel it should use raw-ip and that fails.
>> Which kernel version are you using? The Linux kernel must be >= 4.5
>> for the raw-ip support to work!
> So, from the report, it seems the kernel is 4.9.52, which should have
> the raw-ip support.
> That's why it seemed weird to me.
Ah, true... then no idea why it didn't allow updating that... first
time I've seen this.
Erik, can you manually run this?
$ sudo -s
# echo Y > /sys/class/net/wwan0/qmi/raw_ip
More information about the libqmi-devel