linux开启RNDIS,实现虚拟网卡

共需要配置两块内容:Networking support 和 Device Drivers

首先要 `make clean`,清空之前的编译结果。由于之前还 用了` make linux-licheepi_nano_defconfig`,这里直接将使用源码的.config。

Networking support部分:

 Networking support --->  Networking options分别勾选:

        <*> Packet socket

         <*> Unix domain sockets 

         [*] TCP/IP networking

         [*]   IP: kernel level autoconfiguration 

         [*]     IP: DHCP support 

        [*]     IP: BOOTP support  

        -*- DNS Resolver support

 Device Drivers 部分:

 [*] Network device support   进入,勾选:

         [*]   Network core driver support 

         [*]   Ethernet driver support  ---> 

        <*>   USB Network Adapters  --->

[*] USB support  --->  进入,勾选:

        <*>   Support for Host-side USB

        [*]   Enable USB persist by default 

        [*]   Dynamic USB minor allocation

        [*]   OTG support

         <*>   EHCI HCD (USB 2.0) support

         <*>     Generic EHCI driver for a platform device

        <*>   OHCI HCD (USB 1.1) support

        <*>     Generic OHCI driver for a platform device

        <*>   USB Mass Storage support

         <*>   Inventra Highspeed Dual Role Controller

        MUSB Mode Selection (Dual Role mode)  ---> (X) Dual Role mode 

        <*>     Allwinner (sunxi)

         USB Physical Layer drivers  ---> <*> NOP USB Transceiver Driver 

        <*>   USB Gadget Support  ---> 

                        [*]   Serial gadget console support

                         <*>   USB Gadget functions configurable through configfs

                                        [*]     Generic serial bulk in/out

                                        [*]     Abstract Control Model (CDC ACM) 

                                        [*]     Object Exchange Model (CDC OBEX)

                                        [*]     Network Control Model (CDC NCM) 

                                        [*]     Ethernet Control Model (CDC ECM)

                                        [*]     Ethernet Control Model (CDC ECM) subset

                                        [*]     RNDIS

                                        [*]     Ethernet Emulation Model (EEM)

                                        [*]     Function filesystem (FunctionFS)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值