扩展板上直接连网线,系统中无法看到网络连接,用的ubuntu系统。
我如何才能不使用自带的千兆网而只使用百兆网口呢?
你需要修改dts,补丁如下:
diff --git a/arch/arm64/boot/dts/amlogic/kvim3_linux.dts b/arch/arm64/boot/dts/amlogic/kvim3_linux.dts
index 5183c62b27df..2a6b36696e34 100644
--- a/arch/arm64/boot/dts/amlogic/kvim3_linux.dts
+++ b/arch/arm64/boot/dts/amlogic/kvim3_linux.dts
@@ -1393,14 +1393,14 @@
ðmac {
status = "okay";
- pinctrl-names = "external_eth_pins";
- pinctrl-0 = <&external_eth_pins>;
- mc_val = <0x1629>;
-
- cali_val = <0x60000>;
- rx_delay = <1>;
- auto_cali_idx = <0>;
- internal_phy=<0>;
+
+// pinctrl-names = "internal_eth_pins";
+// pinctrl-0 = <&internal_eth_pins>;
+
+ mc_val = <0x4be04>;
+
+ internal_phy=<1>;
+
};
&uart_A {
参考这篇文档更新dtb:
百兆网口识别后log如下:
root@Khadas:~# dmesg | grep eth
[ 0.000000] psci: probing for conduit method from DT.
[ 0.757698] ee eth reset:Addr = ffffff8008638008
[ 0.768144] meson6-dwmac ff3f0000.ethernet: no reset control found
[ 0.775112] eth%d: PHY ID 01803301 at 8 IRQ POLL (stmmac-0:08) active
[ 0.776752] usbcore: registered new interface driver cdc_ether
[ 10.156172] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 26.831862] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.
[ 26.836993] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.767678] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 57.560429] meson6-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 57.560448] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
非常感谢您的回复