MC7430 modem issue

dailijin dailijin126 at 126.com
Thu Dec 24 18:38:34 PST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20151225/fe84d3aa/attachment.html>


More information about the libqmi-devel mailing list