- 在内核配置中(make menuconfig)中将usb2.0和usb3.0的驱动选中.
- 需要修改内核中的hi3559av100.dtsi linux-4.9.y\arch\arm64\boot\dts\hisilicon\hi3559av100.dtsi
- wifi驱动编译需要选择ARCH := arm64
#WIFI配置内核
选择【device driver】→【Networking support】→【Wireless LAN】→【Wireless LAN drivers & Wireless Extensions】
重新编译内核即可。
--- Networking support
-*- Wireless --->
<*> cfg80211 - wireless configuration API
<*> Generic IEEE 802.11 Networking Stack (mac80211)
│ │ --- Wireless │ │
│ │ <*> cfg80211 - wireless configuration API │ │
│ │ [ ] nl80211 testmode command │ │
│ │ [ ] enable developer warnings │ │
│ │ [ ] cfg80211 certification onus │ │
│ │ [*] enable powersave by default │ │
│ │ [ ] cfg80211 DebugFS entries │ │
│ │ [ ] use statically compiled regulatory rules database │ │
│ │ [*] cfg80211 wireless extensions compatibility │ │
│ │ <*> Generic IEEE 802.11 Networking Stack (mac80211)
上面有关于usb方面的错误应该配置usb驱动
<*> Support for Host-side USB
<*> USB Monitor
<*> USB Wireless Device Management support
USB2.0无法使用需要配置
make menuconfig将usb2.0和usb3.0的驱动选中
linux-4.9.y\arch\arm64\boot\dts\hisilicon\hi3559av100.dtsi
#if 1
xhci_0:xhci_0@0x12300000 {
compatible = "generic-xhci";
reg = <0x12300000 0x10000>;
interrupts = <0 84 4>;
};
#endif
#if 1
xhci_1:xhci_1@0x12310000 {
compatible = "generic-xhci";
reg = <0x12310000 0x10000>;
interrupts = <0 85 4>;
};
#endif
#if 0
hidwc3_0:hiudc3_0@0x12300000 {
compatible = "snps,dwc3";
reg = <0x12300000 0x10000>;
interrupts = <0 84 4>;
port_speed = <0>;
interrupt-names = "peripheral";
maximum-speed = "super-speed";
dr_mode = "peripheral";
};
#endif
#if 0
hidwc3_1:hiudc3_1@0x12310000 {
compatible = "snps,dwc3";
reg = <0x12310000 0x10000>;
interrupts = <0 85 4>;
port_speed = <1>;
interrupt-names = "peripheral";
maximum-speed = "super-speed";
dr_mode = "peripheral";
};
#endif