5G:RM500U-CN 5G模组调试

本文详细介绍了如何对RM500U-CN 5G模组进行内核配置与修改,包括拨号上网步骤、获取IP地址的方法、设置默认路由的过程,以及参考代码和资料链接,为5G网络连接提供操作指导。
摘要由CSDN通过智能技术生成
一、内核配置与修改
  • 打开内核以下配置
CONFIG_USB_SERIAL=y 
CONFIG_USB_SERIAL_WWAN=y 
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USBNET=y 
  • 将以下补丁打入内核
diff --git a/kernel/drivers/usb/serial/option.c b/kernel/drivers/usb/serial/option.c
old mode 100644
new mode 100755
index a47eac02f..d3849f84b
--- a/kernel/drivers/usb/serial/option.c
+++ b/kernel/drivers/usb/serial/option.c
@@ -1983,6 +1983,7 @@ static const struct usb_device_id option_ids[] = {
   
          .driver_info = RSVD(4) | RSVD(5) },
        {
    USB_DEVICE_INTERFACE_CLASS(0x2cb7, 0x0105, 0xff),                     /* Fibocom NL678 series */
          .driver_info = RSVD(6) },
+       {
    USB_DEVICE_AND_INTERFACE_INFO(0x2c7c, 0x0900, 0xff, 0x00, 0x00) },
        {
    } /* Terminating entry */
 };
 MODULE_DEVICE_TABLE(usb, option_ids);
@@ -2017,6 +2018,7 @@ static struct usb_serial_driver option_1port_device = {
   
 #ifdef CONFIG_PM
        .suspend           = usb_wwan_suspend,
        .resume            = usb_wwan_resume,
+       .reset_resume      = usb_wwan_resume,
 #endif
 };
 
diff --git a/kernel/drivers/usb/serial/usb_wwan.c b/kernel/drivers/usb/serial/usb_wwan.c
old mode 100644
new mode 100755
index 802249072..b4ef55799
--- a/kernel/drivers/usb/serial/usb_wwan.c
+++ b/kernel/drivers/usb/serial/usb_wwan.c
@@ -508,7 +508,8 @@ static struct urb *usb_wwan_setup_urb(struct usb_serial_port *port,
 
        if (dir == USB_DIR_OUT) {
   
                if ((desc-
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值