Wind River Support Network

HomeDefectsLIN1019-3803
Fixed

LIN1019-3803 : stmmac debugfs entry shows incorrect device name after rename

Created: Dec 17, 2019    Updated: Apr 27, 2020
Resolved Date: Apr 27, 2020
Found In Version: 10.19.45.2
Fix Version: 10.19.45.6
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

BSP: intel-socfpga-64

stmmac debugfs entry shows incorrect device name after rename:

[    5.750792] socfpga-dwmac ff800000.ethernet etha0: renamed from eth0

root@intel-socfpga-64:~# ls /sys/kernel/debug/stmmaceth/ 
eth0

root@intel-socfpga-64:~# ifconfig
etha0     Link encap:Ethernet  HWaddr 6a:9c:f9:1e:b2:09  
          inet addr:128.224.124.188  Bcast:128.224.125.255  Mask:255.255.254.0
          inet6 addr: fe80::689c:f9ff:fe1e:b209/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

...

Steps to Reproduce

./wrlinux-x/setup.sh --machines intel-socfpga-64

setup env and boot the board

create permanent udev rule for renaming eth0 or use attached:

root@intel-socfpga-64:~# cat /etc/udev/rules.d/70-persistent-net.rules 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="socfpga-dwmac", KERNEL=="eth*", NAME="etha0"

reboot board

check that interface was renamed (dmesg | grep dwmac - look for renamed line)

check stmmac debugfs entry: (ls /sys/kernel/debug/stmmaceth/)
Live chat
Online