概述
Multifunction Composite Gadget(或g_multi)是一种复合gadget,它广泛使用复合框架来提供一个…多功能gadget。
在它的标准配置中,它提供了一个单一的USB配置与RNDIS[1](即以太网),USB CDC[2] ACM(即串行)和USB大容量存储功能。
可以通过Kconfig选项打开CDC ECM(以太网)功能,并关闭RNDIS。如果它们都启用了,那么gadget将具有两种配置—一种是RNDIS配置,另一种是CDC ECM[3]配置。
请注意,如果您使用非标准配置(即启用CDC ECM),您可能需要更改供应商和/或产品ID。
主机驱动程序
要想使用这个gadget,就需要让它在主机端工作——否则这个gadget就没有实现任何目标的希望。正如人们所期望的,每个系统都需要做一些事情。
Linux主机驱动程序
由于该gadget使用标准的组合框架,并且在Linux主机上显示为标准的组合框架,因此在Linux主机端不需要任何额外的驱动程序。所有的功能都由各自的驱动程序来处理。
对于两种配置设置也是如此,第一种是RNDIS配置。Linux主机将使用CDC ECM的第二种配置,它应该在Linux下工作得更好。
Windows主机驱动程序
要让这个gadget在Windows下工作,必须满足两个条件:
一、检测为复合gadget
首先,Windows需要将gadget检测为USB复合gadget,它本身有一些条件[4]。如果它们被满足,Windows让USB通用父驱动[5]处理设备,然后尝试为每个单独的接口匹配驱动(sort,不要进入太多的细节)。
好消息是:你不必担心大部分的条件!
唯一需要担心的是这个gadget必须只有一个配置,因此双重RNDIS和CDC ECM gadget将无法工作,除非您创建了正确的INF—当然,如果您提交了它!
二、为每个功能安装驱动程序
另一件棘手的事情是让Windows为每个单独的功能安装驱动程序。
对于大容量存储,这是微不足道的,因为Windows检测它是一个实现USB大容量存储类的接口,并选择适当的驱动程序。
RDNIS和CDC ACM的事情更困难。
RNDIS
要使Windows为gadget中的第一个功能选择RNDIS驱动程序,需要使用[[file:linux.inf]]。随本文档提供的文件。它将windows的RNDIS驱动程序“附加”到gadget的第一个接口上。
请注意,在测试时,当RNDIS不是第一个接口时,我们遇到了[6]问题。您不需要担心它,除非您试图开发自己的gadget,在这种情况下,请注意这个bug。
CDC ACM
同样,[[file:linux-cdc-acm.inf]] 为CDC ACM提供。
定制 gadget
如果您打算破解g_multi gadget,请注意重新排列函数显然会改变每个功能的接口编号。作为一种效果,inf无法工作,因为它们有硬编码的接口编号(通过[7]更改这些编号并不困难)。
这也意味着,在试用g_multi并更改提供的功能后,应该更改gadget的供应商和/或产品ID,这样就不会与其他定制gadget或原始gadget发生冲突。
在意识到Windows已经缓存了一些驱动程序信息(改变USB端口有时可能会有帮助,而且你可能会尝试使用USBDeview[8]来移除幻影设备)之前,如果不遵守可能会导致cpu损伤。
INF testing
提供的INF文件已在Windows XP SP3, Windows Vista和Windows 7上测试,所有32位版本。它应该也可以在64位版本上工作。它很可能无法在Windows XP SP2之前的Windows上运行。
Other systems
目前,任何其他系统的驱动程序都还没有经过测试。知道MacOS是如何基于BSD的,并且BSD是一个开源的,人们相信它应该(读:“我不知道它是否会”)开箱即用。
对于更奇特的系统,我甚至没有什么可说的……
欢迎任何测试和驱动程序!
over the counter atarax
zoloft tablets
effexor xr 300 mg
buy levitra canada
amoxicillin uk prescription
azithromycin 500mg tablets for sale
can you buy albuterol in mexico
fildena buy online
cialis 100mg cost
0.5 tretinoin cream
neurontin singapore
xenical tablets online
lyrica 225 mg capsule
brand name clonidine prescription
fildena in india
levitra online no prescription
can i buy prozac in mexico
zoloft brand name price
plaquenil 500
inderal uk
pharmacy online uae
prinivil 10 mg tablet
metformin cost 1000mg
suhagra 100 buy
propecia over the counter
ventolin inhaler
accutane price in india
sildenafil soft tablets 100mg
order accutane online
buy allopurinol tablets
bactrim prescription cost
levitra 20 mg tablet
can you buy propecia over the counter
cost of augmentin 625 mg
where can i purchase diflucan
order accutane from india
colchicine brand
diflucan otc uk
atarax 25 mg
buy amoxicillin 875 mg online
diflucan cost uk
medical pharmacy west
propecia cost nz
fildena 100 india
robaxin 750 mg pill
amoxicillin 1000 mg price
cheap diflucan online
baclofen online pharmacy
buy orlistat online uk
where can you buy orlistat
buy inderal online
generic levitra from india
atarax for insomnia
buy synthroid 137 mcg
1 clonidine
baclofen 25 mg india
soma overseas pharmacy
buy levothyroxine online
albuterol
baclofen tablets
buy amoxicillin from mexico online
lyrica 2
generic allopurinol 300 mg
baclofen 100mg cost
buy doxycycline uk
zoloft 150 mg
wegovy 7mg
semaglutide australia
wegovy 21 mg
semaglutide medicine
semaglutide without prescription
rybelsus online prescription
ozempic semaglutide
wegovy 14mg
buy rybelsus
rybelsus 3mg
wegovy 3mg
buy semaglutide from india
rybelsus over the counter
[url=http://semaglutide.company/]semaglutide oral medication[/url]
buy semaglutide from india
semaglutide australia
ozempic semaglutide tablets 3mg
wegovy tab 14mg
generic semaglutide
[url=http://rybelsussemaglutide.online/]rybelsus rx[/url]
rybelsus oral medication
[url=https://rybelsus.trade/]semaglutide canada pharmacy prices[/url]
rybelsus
buy ozempic from canada online
semaglutide canada pharmacy
buy rybelsus canada
semaglutide for sale
wegovy buy uk
order semaglutide online
semaglutide online
semaglutide
rybelsus 3 mg
wegovy 14
buy wegovy online from india
semaglutide 14
order wegovy online
rybelsus 3mg
semaglutide pills
semaglutide tab 14mg
generic ozempic cost
wegovy buy from canada
semaglutide buy uk
ozempic tablets for weight loss
wegovy oral medication
glucophage risks
wegovy 3 mg
buy wegovy from canada
buy wegovy in canada
cephalexin 500mg capsule antibiotic
ozempic pill form
rybelsus order
semaglutide online uk
buy semaglutide
semaglutide for weight loss
rybelsus tablets cost
[url=https://ozempic.cfd/]semaglutide lose weight[/url]
wegovy 3 mg
synthroid 88 mcg
synthroid 1.25 mg
where to purchase cialis
trusted canadian pharmacy
lisinopril 5
generic lisinopril 5 mg
prinivil 20mg tabs
cost of synthroid
how much is azithromycin over the counter
[url=https://lisinoprilgp.online/]zestril 20 mg cost[/url]
lisinopril metoprolol
lisinopril drug
where to buy cheap synthroid
[url=https://synthroidsl.online/]average cost of synthroid[/url]
synthroid cost comparison
synthroid 0.112 mcg
reputable online pharmacy no prescription
synthroid pill
diltiazem 360mg
lisinopril 10 mg tablets price
synthroid online coupon
cheap cialis fast shipping
reputable online pharmacy
20 mg lisinopril tablets
aripiprazole 50 mg
metformin buy online usa
synthroid 0.175 mg
lisinopril over the counter
lisinopril 10 mg prices
lisinopril 5mg cost
synthroid 50 mcg cost
[url=http://olisinopril.online/]buy lisinopril uk[/url]
zithromax tablets price
synthroid 25 mcg price
buy lisinopril
metformin without a prescription
buspar dose
synthroid cheapest price
synthroid 112 mcg tab
synthroid 50 mcg cost
buy online pharmacy uk
online pharmacy synthroid
where can i order lisinopril online
tadalafil brand name
synthroid 25 mcg cost
online pharmacy no prescription
lisinopril cheap price
lisinopril 5 mg buy online
synthroid online no prescription
lisinopril 10 mg price in india
synthroid 500 mcg
happy family store pharmacy
drug lisinopril 5 mg
best online pharmacy reddit
buy lisinopril 20 mg online usa
over the counter synthroid
mexican online mail order pharmacy
valtrex script online
buy cheap synthroid
lisinopril medication prescription
how much is lisinopril 10 mg
canadian pharmacy 24 com
pharmacy online australia free shipping
[url=https://tadalafilu.online/]how to get tadalafil[/url]
how to get synthroid
tadalafil prescription canada
prednisone prescriptions
tadalafil tablets cost in india
top mail order pharmacies
prednisone brand
glucophage tab 1000mg
online pharmacy bc
cheap pharmacy no prescription
112 mg synthroid
synthroid online paypal
cialis uk 20mg
happy family drug store