R500U-CNV PCIE 驱动

您好,可以发一下RM500U-CNV PCIE模式拨号的驱动吗,需求是windows和linux下的和相应指导文档

这个模组没有Windows的驱动。Linux 驱动是SPRD_PCIE. 请查收

非发log不要私聊。
6.8 的编译报错可以沟通下,没有windows 驱动。

解决对应的编译报错。

--- a/kernel/native_q/sprd_pcie/sipa/sipa_dummy.c
+++ b/kernel/native_q/sprd_pcie/sipa/sipa_dummy.c
@@ -441,8 +441,7 @@ static int sipa_dummy_probe(struct platform_device *pdev)

        netif_napi_add(netdev,
                       &sipa_dummy->napi,
-                      sipa_dummy_rx_poll_handler,
-                      SIPA_DUMMY_NAPI_WEIGHT);
+                      sipa_dummy_rx_poll_handler);

        /* Register new Ethernet interface */
        ret = register_netdev(netdev);
diff --git a/kernel/native_q/sprd_pcie/sipa/sipa_eth.c b/kernel/native_q/sprd_pcie/sipa/sipa_eth.c
index 67fd418..3be3a92 100644
--- a/kernel/native_q/sprd_pcie/sipa/sipa_eth.c
+++ b/kernel/native_q/sprd_pcie/sipa/sipa_eth.c
@@ -31,6 +31,7 @@
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
 #include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/interrupt.h>
 #include <linux/netdev_features.h>
 #include <linux/mutex.h>
@@ -711,7 +712,7 @@ static int sipa_eth_probe(struct platform_device *pdev)
        }
 #endif

-       strlcpy(ifname, pdata->name, IFNAMSIZ);
+       strscpy(ifname, pdata->name, IFNAMSIZ);
 #ifdef NET_NAME_PREDICTABLE
        netdev = alloc_netdev(
                sizeof(struct SIPA_ETH),
@@ -745,10 +746,14 @@ static int sipa_eth_probe(struct platform_device *pdev)
        eth_hw_addr_random(netdev);
         netdev->sysfs_groups[0] = &sipa_eth_attribute_group;

+#if 0
        netif_napi_add(netdev,
                       &sipa_eth->napi,
                       sipa_eth_rx_poll_handler,
                       SIPA_ETH_NAPI_WEIGHT);
+#endif
+
+       netif_napi_add(netdev, &sipa_eth->napi, sipa_eth_rx_poll_handler);

        /* Register new Ethernet interface */
        ret = register_netdev(netdev);
diff --git a/kernel/native_q/sprd_pcie/sipc/spipe.c b/kernel/native_q/sprd_pcie/sipc/spipe.c
index 6197487..359ea34 100644
--- a/kernel/native_q/sprd_pcie/sipc/spipe.c
+++ b/kernel/native_q/sprd_pcie/sipc/spipe.c
@@ -439,7 +439,8 @@ int spipe_init(void)
 {
        int ret;

-       spipe_class = class_create(THIS_MODULE, "spipe");
+//     spipe_class = class_create(THIS_MODULE, "spipe");
+       spipe_class = class_create("spipe");
        if (IS_ERR(spipe_class))
                return PTR_ERR(spipe_class);
 #ifndef SPRD_PCIE_USE_DTS
diff --git a/kernel/native_q/sprd_pcie/sipc/spool.c b/kernel/native_q/sprd_pcie/sipc/spool.c
index 724dc96..4bd96b6 100644
--- a/kernel/native_q/sprd_pcie/sipc/spool.c
+++ b/kernel/native_q/sprd_pcie/sipc/spool.c
@@ -501,7 +501,7 @@ int spool_init(void)
 {
        int ret;

-       spool_class = class_create(THIS_MODULE, "spool");
+       spool_class = class_create("spool");
        if (IS_ERR(spool_class))
                return PTR_ERR(spool_class);
 #ifndef SPRD_PCIE_USE_DTS

我们编译完驱动再次引导就无法进入系统了

建议先不要加上sprd_pcie, 先编译个一个内核版本吧。