diff options
| author | Liangbin Lian | 2025-11-14 06:06:10 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-11-29 00:05:47 +0000 |
| commit | fbaf5271d21fdd9551c886c3121a7d04554ac84c (patch) | |
| tree | faa67a927ce3f1a2fd5aa4645675db64de728723 | |
| parent | c795a91579532e00de9abd2be4b97e62780610c5 (diff) | |
| download | openwrt-fbaf5271d21fdd9551c886c3121a7d04554ac84c.tar.gz | |
rockchip: make NIC name predictable for LinkEase EasePi R1
The probe order for PCIe buses and devices is non-deterministic,
making the names eth2 and eth3 unpredictable (they may be swapped).
This patch fixes the names by referencing the device path using
`ucidef_set_network_device_path`.
This patch ensures that the OpenWrt interface name matches the case label.
Fixes: 8ca4caacd039 ("rockchip: Add support for RK3568 LinkEase EasePi R1")
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20779
(cherry picked from commit d7530c1e5405cf93ecd0a38ef758cba5760dfd97)
Link: https://github.com/openwrt/openwrt/pull/20744
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/rockchip/armv8/base-files/etc/board.d/02_network | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network index 02c66b873e..606e77410b 100644 --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network @@ -34,6 +34,8 @@ rockchip_setup_interfaces() ucidef_set_interfaces_lan_wan 'eth0 eth2' 'eth1' ;; linkease,easepi-r1) + ucidef_set_network_device_path eth2 'platform/3c0400000.pcie/pci0001:10/0001:10:00.0/0001:11:00.0' + ucidef_set_network_device_path eth3 'platform/3c0000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0' ucidef_set_interfaces_lan_wan 'eth1 eth2 eth3' 'eth0' ;; sinovoip,rk3568-bpi-r2pro) |