默认Jetson NX Xavier BSP 不支持Intel8265 WIFI/BT
由于WIFI-Disable Pin 默认状态为高,导致WIFI 一直处于Hardware blocked 状态,即WIFI 不可用而BT可以继续用,需修改dts中的wifi-disable 状态才可以正常使用。
查看dmesg 和 syslog (/var/log/syslog) 信息如下
nx kernel: [ 7.152622] iwlwifi 0004:01:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
nx kernel: [ 7.156735] iwlwifi 0004:01:00.0: L1 Disabled - LTR Enabled
nx kernel: [ 7.157490] iwlwifi 0004:01:00.0: L1 Disabled - LTR Enabled
nx bluetoothd[6080]: src/rfkill.c:rfkill_event() RFKILL event idx 1 type 1 op 0 soft 0 hard 1
nx kernel: [ 7.211363] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
nx kernel: [ 7.212333] thermal thermal_zone6: failed to read out thermal zone (-5)
nx kernel: [ 7.212497] thermal thermal_zone6: Registering thermal zone thermal_zone6 for type iwlwifi
nx NetworkManager[4492]: <info> [1588221565.3954] wifi-nl80211: (wlan0): using nl80211 for WiFi device control
nx NetworkManager[4492]: <info> [1588221565.3967] device (wlan0): driver supports Access Point (AP) mode
nx systemd-udevd[6168]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
nx NetworkManager[4492]: <info> [1588221565.4095] manager: (wlan0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/7)
nx NetworkManager[4492]: <info> [1588221565.4155] rfkill1: found WiFi radio killswitch (at /sys/devices/14160000.pcie/pci0004:00/0004:00:00.0/0004:01:00.0/ieee80211/phy0/rfkill1) (driver iwlwifi)
nx NetworkManager[4492]: <info> [1588221565.4170] manager: rfkill: WiFi now disabled by radio killswitch
nx NetworkManager[4492]: <info> [1588221565.4271] supplicant: wpa_supplicant running
nx NetworkManager[4492]: <info> [1588221565.4529] devices added (path: /sys/devices/14160000.pcie/pci0004:00/0004:00:00.0/0004:01:00.0/net/wlan0, iface: wlan0)
nx NetworkManager[4492]: <info> [1588221565.4530] device added (path: /sys/devices/14160000.pcie/pci0004:00/0004:00:00.0/0004:01:00.0/net/wlan0, iface: wlan0): no ifupdown configuration found.
nx NetworkManager[4492]: <info> [1588221565.4537] device (wlan0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
nx kernel: [ 7.276007] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
image.png
DTSI 修改参考:
--- a/l4t-r32.4.2.src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-fixed-regulator-p3668.dtsi
+++ b/l4t-r32.4.2.src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-fixed-regulator-p3668.dtsi
@@ -50,8 +50,25 @@
regulator-name = "vdd-usb2-5v";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
- gpio = <&tegra_aon_gpio TEGRA194_AON_GPIO(CC, 2) GPIO_ACTIVE_HIGH>;
- enable-active-high;
+ gpio = <&tegra_aon_gpio TEGRA194_AON_GPIO(CC, 2) GPIO_ACTIVE_LOW>;
+ enable-active-low;
};
--- a/l4t-r32.4.2.src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3668-common.dtsi
+++ b/l4t-r32.4.2.src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3668-common.dtsi
@@ -296,6 +334,13 @@
label = "pex_refclk_sel_high";
status = "disabled";
};
+ wifi-disable {
+ gpio-hog;
+ output-low;
+ gpios = <TEGRA194_AON_GPIO(CC, 2) 0>;
+ label = "wifi-disable";
+ status = "okay";
+ };
网友评论