树莓派Zero设置USB网络通讯(Ethernet Gadget)





参考
Last updated





Last updated
dtoverlay=dwc2dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=5e878358-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ethermount /dev/sdb2 /mntallow-hotplug usb0
iface usb0 inet static
address 192.168.7.10
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255
gateway 192.168.7.254interface usb0
static ip_address=192.168.7.10/24
static routers=192.168.7.1
static domain_name_servers=192.168.7.1