Hi, experts,
I'm Katsuayama.
My udev rules does not work on usb0 otg.
Contidions
SDK version: 08_02_00_24
Kernel version: 5.10.100+
Board: custom board
USB port : USB0 otg mode
USB LAN device: Elecom EDC-FUA2-B(ASIX AX88772B) (idVendor=0b95, idProduct=772b)
I want to use an USB-LAN-dongle with network-interface-name as "usb1".
So, I deployed the following udev rule file in /etc/udev/rules.d,
then reboot the system and insert the dongle.
70-persistent-net.rules
SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="0b95",ATTRS{idProduct}=="772b",NAME="usb1"
But, it does not work.
Following is shown in "dmesg".
[ 203.203462] usb 1-1: New USB device found, idVendor=0b95, idProduct=772b, bcdDevice= 0.02
[ 203.215420] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 203.222634] usb 1-1: Product: AX88772B
[ 203.230326] usb 1-1: Manufacturer: ASIX Elec. Corp.
[ 203.236942] usb 1-1: SerialNumber: F9C62D
[ 203.824369] asix 1-1:1.0 eth1: register 'asix' at usb-musb-hdrc.0-1, ASIX AX88772B USB 2.0 Ethernet, 04:ab:18:f9:c6:2d
[ 203.865137] usbcore: registered new interface driver asix
[ 205.766913] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 205.779900] asix 1-1:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0xC5E1
"eth1" is assigned!
("eth0" is already assigned by usb1 host port, so, "eth1" may be assigned.)
Please show me how to write a right udev rules file, or how to fix.
Regards,