使用带有USB OTG的RaspberryPi模型B 1(Broadcom BCM2835)作为从属以太网

时间:2018-01-15 21:17:51

标签: raspberry-pi usb-otg

我尝试使用Broadcom BCM2835 OTG功能将RPi用作以太网小工具,以便与主机建立网络连接(我发现这与RPi Zero一起使用)。 正如您在Broadcom BCM2835 specification中所看到的那样,RPI B1支持OTG。

我尝试用模块重新编译内核:

integer

我将usb0接口配置添加到2

data.table::month(Tdf$date) == 2L

我在Device Drivers > USB support > OTG support CONFIG_USB_OTG: The most notable feature of USB OTG is support for a "Dual-Role" device, which can act as either a device or a host. The initial role is decided by the type of plug inserted and can be changed later when two dual role devices talk to each other. Select this only if your board has Mini-AB/Micro-AB connector. Symbol: USB_OTG [=y] Type : boolean Prompt: OTG support Location: -> Device Drivers -> USB support (USB_SUPPORT [=y]) -> Support for Host-side USB (USB [=y]) Defined at drivers/usb/core/Kconfig:44 Depends on: USB_SUPPORT [=y] && USB [=y] && PM [=y] 文件中添加了行/etc/network/interfaces

我将allow-hotplug usb0 mapping hotplug script grep map usb0 iface usb0 inet static address 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255 dtoverlay=dwc2添加到/boot/config.tx

没有任何效果。 dwc2的输出是:

g_ether

主机在插拔时无法识别任何USB设备。

可以使用USB A作为奴隶吗?有什么想法解决它?

0 个答案:

没有答案