Quectel BG96

Sebastian Sjoholm sebastian.sjoholm at gmail.com
Sun Oct 22 14:36:39 UTC 2017


> 
> On Oct 22, 2017, at 11:26 , Aleksander Morgado <aleksander at aleksander.es> wrote:
> 
> Hey,
> 
>> 
>> I have tested Quectel BG96 (DevKit) with libqmi 1.16.5 and it seems to work, made some additions in qmi_wwan.c and option.c, modelled it after EC21/EC25. The chipset is MDM9206. I have no RF yet, so cannot test data connection, but I will get back on that.
>> 
>> I tried also libqmi 1.18 branch as well master branch but received “qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_uim_power_off_sim_input_unref” error, maybe it is my setup so I will dig further on that.
>> 
>> root at 6560b:/opt/libqmi-1-18# qmicli
>> qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_uim_power_off_sim_input_unref
>> root at 6560b:/opt/libqmi-1-18#
>> 
> 
> Yes, this is likely your setup. I assume you're running qmicli 1.18
> against libqmi 1.16, or something like that, because the path where
> you installed qmicli is in $PATH (e.g. /usr/local/bin) but the path
> where you installed libqmi-glib isn't automatically included in the
> library load paths.
> 
> If you didn't use any specifi --prefix when running configure, you
> probably installed everything in /usr/local, so just try:
> 
> $ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin qmicli …
> 

Yes, you are correct, forgot the ‘—libdir’ parameter in autogen, now works as well latest master branch.

> 
>> root at 6560b:~#
>> 
>> Kernel module: qmi_wwan.c
>> 
>> root at 6560b:~/linux-4.13.8/drivers/net/usb# diff -u qmi_wwan.c qmi_wwan.c_original
>> --- qmi_wwan.c  2017-10-21 16:21:59.595279857 +0200
>> +++ qmi_wwan.c_original 2017-10-21 16:21:22.335279277 +0200
>> @@ -1238,7 +1238,6 @@
>>        {QMI_FIXED_INTF(0x1e0e, 0x9001, 5)},    /* SIMCom 7230E */
>>        {QMI_QUIRK_SET_DTR(0x2c7c, 0x0125, 4)}, /* Quectel EC25, EC20 R2.0  Mini PCIe */
>>        {QMI_QUIRK_SET_DTR(0x2c7c, 0x0121, 4)}, /* Quectel EC21 Mini PCIe */
>> -       {QMI_QUIRK_SET_DTR(0x2c7c, 0x0296, 4)}, /* Quectel BG96 */
>> 
>>        /* 4. Gobi 1000 devices */
>>        {QMI_GOBI1K_DEVICE(0x05c6, 0x9212)},    /* Acer Gobi Modem Device */
>> root at 6560b:~/linux-4.13.8/drivers/net/usb#
>> 
>> Kernel module: option.c
>> 
>> root at 6560b:~/linux-4.13.8/drivers/usb/serial# diff -u option.c option.c_original
>> --- option.c    2017-10-21 16:40:19.595244661 +0200
>> +++ option.c_original   2017-10-21 16:39:07.655246787 +0200
>> @@ -241,7 +241,6 @@
>> /* These Quectel products use Quectel's vendor ID */
>> #define QUECTEL_PRODUCT_EC21                    0x0121
>> #define QUECTEL_PRODUCT_EC25                    0x0125
>> -#define QUECTEL_PRODUCT_BG96                   0x0296
>> 
>> #define CMOTECH_VENDOR_ID                       0x16d8
>> #define CMOTECH_PRODUCT_6001                    0x6001
>> @@ -1186,8 +1185,6 @@
>>          .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
>>        { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC25),
>>          .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
>> -        { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96),
>> -          .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
>>        { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) },
>>        { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },
>>        { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6003),
>> root at 6560b:~/linux-4.13.8/drivers/usb/serial#
>> 
> 
> Will you be sending these patches to the linux kernel mailing list yourself?
> 

Yes, I can try to do that.

Thanks.

-Sebastian


> Cheers!
> 
> -- 
> Aleksander
> https://aleksander.es



More information about the libqmi-devel mailing list