|
楼主 |
发表于 2024-3-13 17:44:15
|
显示全部楼层
本帖最后由 agent 于 2024-3-13 18:13 编辑
1. 硬件方面:
```
1 块 mini PCIE 转 PCIE 接口转换接头
1 块 Quectel EC200U 4G 模块
将 4G 模块接上 PCIE 转换板,再接到开发板子上
```
2. 固件方面:
将 移远的 option PID:VID 添加到 option.c 中
```c
root@liuxb-199-119:~/TEMP/Quectel_Linux_USB_Serial_Option_Driver_20231211/20231211/v5.10.11/drivers/usb/serial# git diff option.c
diff --git a/v5.10.11/drivers/usb/serial/option.c b/v5.10.11/drivers/usb/serial/option.c
index 3fe9591..382c24b 100644
--- a/v5.10.11/drivers/usb/serial/option.c
+++ b/v5.10.11/drivers/usb/serial/option.c
@@ -580,6 +582,39 @@ static void option_instat_callback(struct urb *urb);
static const struct usb_device_id option_ids[] = {
+#if 1 //Added by Quectel
+ { USB_DEVICE(0x05C6, 0x9090) }, /* Quectel UC15 */
+ { USB_DEVICE(0x05C6, 0x9003) }, /* Quectel UC20 */
+ { USB_DEVICE(0x05C6, 0x9215) }, /* Quectel EC20(MDM9215) */
+ { USB_DEVICE(0x05C6, 0x9091) }, /* Quectel QCM6125 */
+ { USB_DEVICE(0x05C6, 0x90DB) }, /* Quectel QCM6490 */
+ { USB_DEVICE(0x2C7C, 0x0125) }, /* Quectel EC20(MDM9x07)/EC25/EG25 */
+ { USB_DEVICE(0x2C7C, 0x0121) }, /* Quectel EC21 */
+ { USB_DEVICE(0x2C7C, 0x030E) }, /* Quectel EM05G */
+ { USB_DEVICE(0x2C7C, 0x0191) }, /* Quectel EG91 */
+ { USB_DEVICE(0x2C7C, 0x0195) }, /* Quectel EG95 */
+ { USB_DEVICE(0x2C7C, 0x0306) }, /* Quectel EG06/EP06/EM06 */
+ { USB_DEVICE(0x2C7C, 0x030B) }, /* Quectel EG065K/EG060K */
+ { USB_DEVICE(0x2C7C, 0x0514) }, /* Quectel BL EG060K RNDIS Only */
+ { USB_DEVICE(0x2C7C, 0x0512) }, /* Quectel EG12/EP12/EM12/EG16/EG18 */
+ { USB_DEVICE(0x2C7C, 0x0296) }, /* Quectel BG96 */
+ { USB_DEVICE(0x2C7C, 0x0700) }, /* Quectel BG95/BG77/BG600L-M3/BC69 */
+ { USB_DEVICE(0x2C7C, 0x0435) }, /* Quectel AG35 */
+ { USB_DEVICE(0x2C7C, 0x0415) }, /* Quectel AG15 */
+ { USB_DEVICE(0x2C7C, 0x0452) }, /* Quectel AG520 */
+ { USB_DEVICE(0x2C7C, 0x0455) }, /* Quectel AG550 */
+ { USB_DEVICE(0x2C7C, 0x0620) }, /* Quectel EG20 */
+ { USB_DEVICE(0x2C7C, 0x0800) }, /* Quectel RG500/RM500/RG510/RM510 */
+ { USB_DEVICE(0x2C7C, 0x0801) }, /* Quectel RG520/RM520/SG520 */
+ { USB_DEVICE(0x2C7C, 0x0122) }, /* Quectel RG650 SDX7X */
+ { USB_DEVICE(0x2C7C, 0x0316) }, /* Quectel RG255 SDX35 */
+ { USB_DEVICE(0x2C7C, 0x6026) }, /* Quectel EC200 */
+ { USB_DEVICE(0x2C7C, 0x6120) }, /* Quectel UC200 */
+ { USB_DEVICE(0x2C7C, 0x6000) }, /* Quectel EC200/UC200 */
+ { USB_DEVICE(0x3763, 0x3C93) }, /* Quectel GW */
+ { USB_DEVICE(0x3C93, 0xFFFF) }, /* Quectel GW */
+ { .match_flags = USB_DEVICE_ID_MATCH_VENDOR, .idVendor = 0x2C7C }, /* Match All Quectel Modules */
+#endif
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) },
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA_LIGHT) },
```
编译固件并烧录进去,没有 4G 模块网卡。
换了一块 EC20 的4G模块,同样没有 4G 模块网卡。
请问如何才能使 4G 模块可用?或者板子如何使用 4G 模块,有没有这方面的教程wiki?
|
|