MC7430 modem issue

dailijin dailijin126 at 126.com
Tue Dec 29 19:31:30 PST 2015


Hi Markus,


I completely use the qmi_wwan driver source code from http://lists.freedesktop.org/archives/libqmi-devel/attachments/20150702/f35f05a0/attachment.obj, the issue back to that the device can't respond QMI command now.
if I also merge the patch, compile also fail. Right?


I noticed libqmi added some changes for MC7455 modem yesterday, and I know the MC7430 and MC7455  based on 9X30, so they are similar, if MC7455 can't work via libqmi now, the MC7430 should also can't work via libqmi till now. Am I right?


If anyone have made MC7430 or MC7455  worked now. I appreciate you very much if you can share the method.


Note:
   My host is  Intel x86_64,  system and kernel is gentoo + ubuntu's kernel 3.8.0-23-generic

Thanks


--

Best Regards,
Dai,Lijin



在 2015-12-26 09:56:04,"Markus Gothe" <nietzsche at lysator.liu.se> 写道:
>Try using this driver: http://lists.freedesktop.org/archives/libqmi-devel/attachments/20150702/f35f05a0/attachment.obj
>
>//M
>
>Den 25 dec 2015 03:38 skrev dailijin <dailijin126 at 126.com>:
>>
>> Hi Bjorn,
>>
>> It seems that the MC7430 hardware  is different with MC7304, so the work mode is also different, we should modify qmi_wwan driver to support raw-ip for MC7430 modem dialing, Right?
>>
>> I have merged the three patchs, but compile qmi_wwan always fail based on kernel 3.8, the error as below:
>> tvupack qmi_wwan # make
>> make -C /lib/modules/3.8.0-23-generic/build M=/data/danner/qmi/qmi/driver/qmi_wwan modules
>> make[1]: Entering directory `/data/danner/current_kernel_source/linux-source-3.8.0'
>>   CC [M]  /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.o
>> /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:138:8: warning: type defaults to ‘int’ in declaration of ‘DEVICE_ATTR_RW’ [-Wimplicit-int]
>> /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:138:1: warning: parameter names (without types) in function declaration [enabled by default]
>> /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:141:6: error: ‘dev_attr_raw_ip’ undeclared here (not in a function)
>> /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:83:16: warning: ‘raw_ip_show’ defined but not used [-Wunused-function]
>> /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:91:16: warning: ‘raw_ip_store’ defined but not used [-Wunused-function]
>> /data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.c:138:8: warning: ‘DEVICE_ATTR_RW’ declared ‘static’ but never defined [-Wunused-function]
>> make[2]: *** [/data/danner/qmi/qmi/driver/qmi_wwan/qmi_wwan.o] Error 1
>> make[1]: *** [_module_/data/danner/qmi/qmi/driver/qmi_wwan] Error 2
>> make[1]: Leaving directory `/data/danner/current_kernel_source/linux-source-3.8.0'
>> make: *** [all] Error 2
>>
>> I notice the structure "dev_attr_raw_ip" actually is not in the three patchs,  which file define it?
>>
>> Thanks
>>
>>
>>
>> --
>> Best Regards,
>> Dai,Lijin
>>
>>
>> At 2015-12-24 18:22:43, "Bjørn Mork" <bjorn at mork.no> wrote:
>> >dailijin <dailijin126 at 126.com> writes:
>> >
>> >> Hi All,
>> >>
>> >>
>> >> Refer to https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/qmi_wwan.c?id=93725149794d3d418cf1eddcae60c7b536c5faa1 , I have added the patch into my qmi_wwan driver, and now I can get QMI response now, and also do QMI connection successfully  via command "qmi-network  /dev/cdc-wdm14 start", but can not fetch IP via dhclient now. I check the data format which is 'raw-ip', and can't be changed via qmi command, this maybe why I can't get IP. because I remember MC7304 and MC7354  can work before only after I set '802-3' as data format for them. 
>> >>
>> >>
>> >> Is there anyone have made MC7430 work?  I will appreciate you very much if you can give me some suggestions?
>> >
>> >Did you patch the driver for raw-ip support as well?  You'll need at
>> >least these 3 patches:
>> >
>> > https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/usbnet.c?id=81e0ce79f2919dbd5f025894d29aa806af8695c7
>> > https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/qmi_wwan.c?id=6c730080e663b1d629f8aa89348291fbcdc46cd9
>> > https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/drivers/net/usb/qmi_wwan.c?id=32f7adf633b9f99ad5089901bc7ebff57704aaa9
>> >
>> >Switch the netdev to raw-ip by
>> >
>> > echo Y >/sys/class/net/wwan0/qmi/raw_ip
>> >
>> >etc.
>> >
>> >If you want to do DHCP, then your choices of DHCP clients are limited at
>> >the moment.  But I found that the busybox DHCP client (udhcpc) works
>> >fine without any changes (although it still claims the interface is
>> >"ethernet").
>> >
>> >And finally, if you want kernel SLAAC, you'll either need to set a link
>> >local address manually, configure the interface for "stable-privacy"
>> >addresses, or get this patch for fully automatic addressing:
>> >
>> > https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/net/ipv6/addrconf.c?id=cc9da6cc4f56e05cc9e591459fe0192727ff58b3
>> >
>> >
>> >
>> >Bjørn
>> >_______________________________________________
>> >libqmi-devel mailing list
>> >libqmi-devel at lists.freedesktop.org
>> >http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
>>
>>
>>
>>  
>_______________________________________________
>libqmi-devel mailing list
>libqmi-devel at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20151230/76ccf792/attachment.html>


More information about the libqmi-devel mailing list