1.lsusb要看到设备
2.驱动部分要打开usb识别,rndis支持
diff --git a/kernel/arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig b/kernel/arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig
index e6a2e43b6..b0a60f4ee 100755
--- a/kernel/arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig
+++ b/kernel/arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig
@@ -1150,7 +1150,14 @@ CONFIG_SLHC=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y
# CONFIG_SLIP is not set
-# CONFIG_USB_NET_DRIVERS is not set
+CONFIG_USB_NET_DRIVERS=y
+# CONFIG_USB_CATC is not set
+# CONFIG_USB_KAWETH is not set
+# CONFIG_USB_PEGASUS is not set
+# CONFIG_USB_RTL8150 is not set
+# CONFIG_USB_RTL8152 is not set
+# CONFIG_USB_LAN78XX is not set
+CONFIG_USB_USBNET=y
CONFIG_WLAN=y
CONFIG_WLAN_VENDOR_ADMTEK=y
CONFIG_WLAN_VENDOR_ATH=y
@@ -1174,7 +1181,7 @@ CONFIG_WLAN_VENDOR_ST=y
CONFIG_WLAN_VENDOR_TI=y
CONFIG_WLAN_VENDOR_ZYDAS=y
# CONFIG_USB_ZD1201 is not set
-# CONFIG_USB_NET_RNDIS_WLAN is not set
+CONFIG_USB_NET_RNDIS_WLAN=y
#
# Enable WiMAX (Networking options) to see the WiMAX drivers
@@ -2055,14 +2062,21 @@ CONFIG_USB_SERIAL_PL2303=y
#
# USB Physical Layer drivers
#
-# CONFIG_USB_PHY is not set
-# CONFIG_NOP_USB_XCEIV is not set
-# CONFIG_USB_GPIO_VBUS is not set
-# CONFIG_USB_ISP1301 is not set
-# CONFIG_USB_ULPI is not set
-# CONFIG_USB_GADGET is not set
-# CONFIG_USB_ULPI_BUS is not set
-# CONFIG_UWB is not set
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_VBUS_DRAW=2
+CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
+CONFIG_USB_LIBCOMPOSITE=y
+CONFIG_SS_GADGET=y
+CONFIG_USB_U_ETHER=y
+CONFIG_USB_F_ECM=y
+CONFIG_USB_F_SUBSET=y
+CONFIG_USB_F_RNDIS=y
+CONFIG_USB_CONFIGFS=y
+CONFIG_USB_CONFIGFS_RNDIS=y
+CONFIG_USB_ETH=y
+CONFIG_USB_ETH_RNDIS=y
+CONFIG_MMC=y
+CONFIG_SS_FAST_MMC=y
CONFIG_MMC=y
CONFIG_SS_FAST_MMC=y
# CONFIG_MMC_DEBUG is not set
diff --git a/kernel/drivers/hv/vmbus_drv.c b/kernel/drivers/hv/vmbus_drv.c
index 0276d2ef0..0f44fc1ae 100644
--- a/kernel/drivers/hv/vmbus_drv.c
+++ b/kernel/drivers/hv/vmbus_drv.c
@@ -34,9 +34,9 @@
#include <linux/kernel_stat.h>
#include <linux/clockchips.h>
#include <linux/cpu.h>
-#include <asm/hyperv.h>
-#include <asm/hypervisor.h>
-#include <asm/mshyperv.h>
+//#include <asm/hyperv.h>
+//#include <asm/hypervisor.h>
+//#include <asm/mshyperv.h>
#include <linux/notifier.h>
#include <linux/ptrace.h>
#include <linux/screen_info.h>
diff --git a/kernel/drivers/usb/serial/option.c b/kernel/drivers/usb/serial/option.c
old mode 100644
new mode 100755
index 1799aa058..dd2ca8dc3
--- a/kernel/drivers/usb/serial/option.c
+++ b/kernel/drivers/usb/serial/option.c
@@ -93,6 +93,9 @@ static void option_instat_callback(struct urb *urb);
#define QUANTA_PRODUCT_GKE 0xEA05
#define QUANTA_PRODUCT_GLE 0xEA06
+#define HUAHONG_VENDOR_ID 0x2C7C
+#define HUAHONG_PRODUCT_PID_X6002 0x6002
+
#define NOVATELWIRELESS_VENDOR_ID 0x1410
/* YISO PRODUCTS */
@@ -692,7 +695,13 @@ static const struct option_blacklist_info yuga_clm920_nc5_blacklist = {
.reserved = BIT(1) | BIT(4),
};
+static const struct option_blacklist_info huahong_pid6002_blacklist = {
+ .reserved = BIT(0) | BIT(1),
+};
+
static const struct usb_device_id option_ids[] = {
+ { USB_DEVICE(HUAHONG_VENDOR_ID, HUAHONG_PRODUCT_PID_X6002),
+ .driver_info = (kernel_ulong_t)&huahong_pid6002_blacklist },
{ 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) },
diff --git a/kernel/include/linux/hyperv.h b/kernel/include/linux/hyperv.h
index 8cc99de27..49c19d1e8 100644
--- a/kernel/include/linux/hyperv.h
+++ b/kernel/include/linux/hyperv.h
@@ -26,7 +26,7 @@
#define _HYPERV_H
#include <uapi/linux/hyperv.h>
-#include <uapi/asm/hyperv.h>
+//#include <uapi/asm/hyperv.h>
#include <linux/types.h>
#include <linux/scatterlist.h>
3.进行拨号:
ifconfig eth1 192.168.43.100 up
//打开eth1网卡
udhcpc -i eth1
//分配IP
route add default eth1
//设置默认网关
microcom -t 5000 -s 115200 /dev/ttyUSB2
//打开AT串口
AT+QNETDEVCTL=1,1,1
//拨号连接
AT+QNETDEVCTL=3,1,1
//开机自动拨号