MC7430 modem issue

dailijin dailijin126 at 126.com
Wed Dec 30 21:26:35 PST 2015


Hi Aleksander,


Thanks your help, I have merged all patchs into my qmi_wwan source code, also merged the usbnet patch, and now I can compile qmi_wwan driver successfully based on kernel 3.8.0.


After implemented the new driver, I can fetch QMI command response and do QMI connection successfully via qmi-network. but always can't get IP. currently I use the libqmi version is 1.10.2, Should I need to upgrade it to the newest one?


below is the log:


tvupack ~ # qmi-network  /dev/cdc-wdm3 start
state file:/tmp/qmi-network-state_cdc-wdm3
Starting network with 'qmicli -d /dev/cdc-wdm3 --wds-start-network=  --client-no-release-cid'...
Saving state... (CID: 35)
Saving state... (PDH: 63042816)
Network started successfully
tvupack ~ # dhclient -v wwan2
Internet Systems Consortium DHCP Client 4.2.5-P1 Gentoo-r2
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/


Listening on LPF/wwan2/56:a2:2c:2a:7c:b4
Sending on   LPF/wwan2/56:a2:2c:2a:7c:b4
Sending on   Socket/fallback
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 4
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 4
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 7
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 7
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 8
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 8


Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 12


Trying medium "link0 link1" 0
DHCPDISCOVER on wwan2 to 255.255.255.255 port 67 interval 10
^C
tvupack ~ # qmi-network  /dev/cdc-wdm3 stop
state file:/tmp/qmi-network-state_cdc-wdm3
Loading previous state...
    Previous CID: 35
    Previous PDH: 63042816
Stopping network with 'qmicli -d /dev/cdc-wdm3 --wds-stop-network=63042816 --client-cid=35'...
Network stopped successfully
Clearing state...
tvupack ~ # qmi-network  /dev/cdc-wdm4 start
state file:/tmp/qmi-network-state_cdc-wdm4
Starting network with 'qmicli -d /dev/cdc-wdm4 --wds-start-network=  --client-no-release-cid'...
Saving state... (CID: 35)
Saving state... (PDH: 63042816)
Network started successfully
tvupack ~ # dhclient -v wwan3
Internet Systems Consortium DHCP Client 4.2.5-P1 Gentoo-r2
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/


Listening on LPF/wwan3/56:a2:2c:2a:7c:b4
Sending on   LPF/wwan3/56:a2:2c:2a:7c:b4
Sending on   Socket/fallback
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 2
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 2
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 5
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 5
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 7
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 7
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 10
Trying medium "link0 link1" 0
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 10
Trying medium "-link0 -link1 -link2" 1
DHCPDISCOVER on wwan3 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.




Thanks very much.



--

Best Regards,
Dai,Lijin



At 2015-12-30 17:59:26, "Aleksander Morgado" <aleksander at aleksander.es> wrote:
>On Wed, Dec 30, 2015 at 10:24 AM, dailijin <dailijin126 at 126.com> wrote:
>> I only need to add patch for qmi_wwan driver,  not need to modify others in
>> kernel , Am I right?
>
>There's also a patch for usbnet needed at least.
>
>I personally backported all these (from davem's net-next) to my 4.2.5
>kernel, which include some unrelated to the raw-ip issue, but which
>also wanted to have:
>
>34a55d5 net: qmi_wwan: ignore bogus CDC Union descriptors
>6c73008 net: qmi_wwan: should hold RTNL while changing netdev type
>32f7adf net: qmi_wwan: support "raw IP" mode
>81e0ce7 usbnet: allow mini-drivers to consume L2 headers
>544c8f6 net: qmi_wwan: remove 1199:9070 device id
>9372514 net: qmi_wwan: MDM9x30 specific power management
>68242a5 net: qmi_wwan: add XS Stick W100-2 from 4G Systems
>b3d8cf0 USB: qmi_wwan: Add quirk for Quectel EC20 Mini PCIe module
>7091079 qmi_wwan: fix entry for HP lt4112 LTE/HSPA+ Gobi 4G Module
>0db65fc qmi_wwan: add Sierra Wireless MC74xx/EM74xx
>e704059 net: qmi_wwan: Sierra Wireless MC73xx -> Sierra Wireless MC7304/MC7354
>
>
>-- 
>Aleksander
>https://aleksander.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20151231/a1afec73/attachment.html>


More information about the libqmi-devel mailing list