<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>I am trying to get Quectel EC25-E working under OpenWRT (kernel 4.4.44). The modem was not recognized, so I "backported" Bjørn Mork's patches (just by copying qmi_wwan.c from 4.9) and recompiled OpenWRT image. Now I can see /dev/cdc-wdm0 device and wwan0 interface. I can talk to it using uqmi and get it connected to the LTE network. However it looks like the modem does not support 802.3 mode anymore. Changing mode using "<span style="font-family: 'Helvetica Neue';" class="">uqmi -d /dev/cdc-wdm0 --wda-set-data-format 802.3" have no effect. Result of "</span><font face="Helvetica Neue" class="">uqmi -d /dev/cdc-wdm0 --wda-get-data-format" is still "raw-ip</font><span style="font-family: 'Helvetica Neue';" class="">". So i changed </span><font face="Helvetica Neue" class="">/sys/class/net/wwan0/qmi/raw_ip to 'Y' and connect to LTE again. DHCP does not negotiate IP address but I am able to setup network manually, using values from "uqmi -d /dev/cdc-wdm0 --get-current-settings". When trying to ping remote server over LTE and Internet, funny things happen. ICMP echo request is sent correctly, reach remote server, reply is received by OpenWRT but packet is not recognized as IPv4. Using tcpdump on </font><span style="font-family: 'Helvetica Neue';" class="">OpenWRT</span><font face="Helvetica Neue" class=""> i can see this:</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class="">Echo request:</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class=""><div class="">0000 45 00 00 54 46 57 40 00 40 01 08 32 64 4a 3e 98 E..TFW@.@..2dJ>.</div><div class="">0010 59 66 ef d7 08 00 c6 f6 37 0b 00 00 5b da 9e 23 Yf......7...[..#</div><div class="">0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................</div><div class="">0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................</div><div class="">0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................</div><div class="">0050 00 00 00 00 ....</div><br class="">And received response:</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class=""><div class="">0000 ef d7 64 4a 3e 98 00 00 ce f6 37 0b 00 00 5b da ..dJ>.....7...[.</div><div class="">0010 9e 23 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .#..............</div><div class="">0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................</div><div class="">0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................</div><div class="">0040 00 00 00 00 00 00 ......</div><br class="">The first two bytes of packet ass seen by tcpdump are actually last two bytes of source IP address (</font><span style="font-family: 'Helvetica Neue';" class="">59 66 ef d7 - destination IP in request</span><span style="font-family: 'Helvetica Neue';" class="">). So the first 14 bytes of the IP packet is missing. It looks like something thinks there is ethernet header and decide to remove it. But there is no ethernet header and beginning of IP packet is removed instead. </span></div><div class=""><br class=""></div><div class=""><span style="font-family: 'Helvetica Neue';" class="">This is how it looks on the OpenWRT router:</span></div><div class=""><span style="font-family: 'Helvetica Neue';" class=""><br class=""></span></div><div class=""><font face="Helvetica Neue" class="">root@turris:~# uname -a<br class="">Linux turris 4.4.44-dabbb3f8c1f6d8bc106a968e85eb53e0-6 #1 SMP Sat Jan 28 13:04:31 UTC 2017 armv7l n</font><br class=""></div><div class=""><div class=""><font face="Helvetica Neue" class="">root@turris:~# cat /sys/class/net/wwan0/qmi/raw_ip <br class="">Y<br class=""></font></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: 'Helvetica Neue';" class="">root@turris:~# uqmi -d /dev/cdc-wdm0 --wda-get-data-format</span></div><div style="margin: 0px; line-height: normal;" class=""><font face="Helvetica Neue" class="">"raw-ip"</font><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: 'Helvetica Neue';" class="">root@turris:~# uqmi -d /dev/cdc-wdm0 --get-data-status</span></div><div style="margin: 0px; line-height: normal;" class=""><font face="Helvetica Neue" class="">"connected"<br class=""></font><span style="font-family: 'Helvetica Neue';" class="">root@turris:~# uqmi -d /dev/cdc-wdm0 --get-current-settings</span></div><div style="margin: 0px; line-height: normal;" class=""><font face="Helvetica Neue" class="">{<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"pdp-type": "ipv4",<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"ip-family": "ipv4",<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"mtu": 1500,<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"ipv4": {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"ip": "100.74.62.152",<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"dns1": "160.218.161.60",<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"dns2": "194.228.211.33",<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"gateway": "100.74.62.153",<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"subnet": "255.255.255.240"<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>},<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"ipv6": {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>},<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>"domain-names": {<br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><br class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>}<br class="">}<br class=""></font><span style="font-family: 'Helvetica Neue';" class="">root@turris:~# ifconfig wwan0</span></div><div style="margin: 0px; line-height: normal;" class=""><font face="Helvetica Neue" class="">wwan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 <br class=""> inet addr:100.74.62.152 P-t-P:100.74.62.152 Mask:255.255.255.240<br class=""> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1<br class=""> RX packets:26 errors:0 dropped:6 overruns:0 frame:0<br class=""> TX packets:91 errors:0 dropped:0 overruns:0 carrier:0<br class=""> collisions:0 txqueuelen:1000 <br class=""> RX bytes:2486 (2.4 KiB) TX bytes:8376 (8.1 KiB)<br class=""></font></div></div><div class=""><span style="font-family: 'Helvetica Neue';" class=""><br class=""></span></div><div class=""><font face="Helvetica Neue" class="">Where should I look? What can I check?</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class="">Thanks,</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class="">Tomas</font></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>