udev rule unable to rename network interface name

Dear Balena dev,

I’m using Resin OS 2.9.7+rev4 (I have to use this particular version) on SKX2. I would like to rename wifi dongle network interface from wlan1 to my custom name. The udev rule worked fine if I insert the wifi dongle before I turn the TX2 on. However, if I didn’t insert wifi dongle before I turn TX2 on, then I insert it after, the renaming will fail. I dig deeper and it seems to be problem that udev cannot change the name because networkd has a hold of the network interface.

I tested with udevadm test /sys/class/net/wlx000f0201fd9b and found this error below

NAME 'ralinkwifi' /lib/udev/rules.d/81-ralinkwifi.rules:1
RUN '/lib/systemd/systemd-sysctl --prefix=/net/ipv4/conf/$name --prefix=/net/ipv4/neigh/$name --prefix=/net/ipv6/conf/$name --prefix=/net/ipv6/neigh/$name' /lib/udev/rules.d/99-systemd.rules:51
Error changing net interface name 'wlx000f0201fd9b' to 'ralinkwifi': Device or resource busy
could not rename interface '15' from 'wlx000f0201fd9b' to 'ralinkwifi': Device or resource busy

I also test udev rule on jetson nano and it worked fine if I insert the wifi dongle after boot.

Thank you in advance,
Tin-tin

Hi
Can you try taking the network interface down and then making the changes, before bringing it back again?
One other thing that you could potentially do is change up the sequence in which these are called by changing the number at the start of the filename (lower gets called first). So you can move the network rules file to a number higher than the rules file where you change the name of the interface.

Hi Tin-tan,

Where you able to get the network interface renamed via either of the options provided by Anuj? Let us know if that worked, thanks!

Hey David,

Thanks for the following up. I now have the opposite problem. The wifi dongle wont be renamed when it is inserted before boot. But if I insert it after boot, it will rename.

Best regards,

Tin-tin

Just to confirm Tin-tin, this is after you reordered the rules in udev right? What order do you follow now?

I did 70 (lower than network rules) then change to 81 (higher than network rules) but still seeing the same behavior: it only renames if I insert wifi dongle after boot, if insert before boot, it will be name wlan1.

Hi Tin-tin
Can you share the content of the udev rules file that you are using? Would like to take a closer look.

Yes,

'SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="148f", ATTRS{idProduct}=="5370", NAME="ralinkwifi"'

Hey @gh_tintinp,

It seems like the order in which the rules are loaded is causing some conflicts. Can you try to boot the device with the dongle attached and running

udevadm control --reload-rules && udevadm trigger to see if the interface name changes?

Thanks

Hey Rahul,

Thanks for the suggestions. When the interface show up, it show up as wlan1 (I have another wifi at wlan0). Running udevadm control --reload-rules && udevadm trigger doesn’t change wlan1 to ralinkwifi

Thanks

Hi Tin-tin, you could try to increase udev’s logging verbosity by modifying /etc/udev/udev.conf and adding:

udev_log=debug

You will need to re-mount the file system read-write with:

mount -o remount,rw /

Before doing the change.
After booting, doing:

journalctl -u systemd-udevd

Might give us some clues.

I’m not sure what is useful for here. Let me know what I should grep

Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: handling device node '/dev/nvhost-vic', devnum=c241:0, mode=0600, uid=0, gid=0
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4257 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: preserve permissions /dev/nvhost-vic, 020600, uid=0, gid=0
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: preserve already existing symlink '/dev/char/241:0' to '../nvhost-vic'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: created empty file '/run/udev/data/c241:0' for '/devices/13e10000.host1x/15340000.vic/13e10000.host1x/nvhost-vic'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564f9f250
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4237 processed
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:15
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' returned non-zero
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4258 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: Execute 'load' 'of:NnvdisplayT<NULL>Cnvidia,tegra186-dc'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: No module matches 'of:NnvdisplayT<NULL>Cnvidia,tegra186-dc'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564fa3e70
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4233 processed
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4220 running
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed 207 byte device to netlink monitor 0x5564f8c860
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed 230 byte device to netlink monitor 0x5564f8c860
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4259 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: handling device node '/dev/nvhost-ctrl-nvdec', devnum=c242:1, mode=0600, uid=0, gid=0
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: preserve permissions /dev/nvhost-ctrl-nvdec, 020600, uid=0, gid=0
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: preserve already existing symlink '/dev/char/242:1' to '../nvhost-ctrl-nvdec'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: created empty file '/run/udev/data/c242:1' for '/devices/13e10000.host1x/15480000.nvdec/13e10000.host1x/nvhost-ctrl-nvdec'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564fa2930
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4241 processed
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4260 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: Inserted 'pci_tegra'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564fbf180
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4206 processed
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed 420 byte device to netlink monitor 0x5564f8c860
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed 305 byte device to netlink monitor 0x5564f8c860
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4261 queued, 'add' 'devfreq'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4262 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4263 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4264 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4265 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4266 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4267 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4268 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4269 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4207 running
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:15
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4270 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4215 running
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564fbf180
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4215 processed
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4271 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed 236 byte device to netlink monitor 0x5564f8c860
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4272 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4273 queued, 'add' 'gpio'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4274 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4275 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4235 running
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4231 running
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4276 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:15
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: handling device node '/dev/tegra_dc_0', devnum=c238:1, mode=0600, uid=0, gid=0
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: preserve permissions /dev/tegra_dc_0, 020600, uid=0, gid=0
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: preserve already existing symlink '/dev/char/238:1' to '../tegra_dc_0'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4277 queued, 'add' 'platform'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: created empty file '/run/udev/data/c238:1' for '/devices/13e10000.host1x/15210000.nvdisplay/tegra_dc_ext/tegra_dc_0'
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' returned non-zero
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564f9f250
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: seq 4235 processed
Jan 21 19:09:57 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: seq 4234 running
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: Execute 'load' 'of:NtsecbT<NULL>Cnvidia,tegra186-tsec'
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: No module matches 'of:NtsecbT<NULL>Cnvidia,tegra186-tsec'
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: passed 323 byte device to netlink monitor 0x5564f8c860
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564fa12c0
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: maximum number (20) of children reached
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: seq 4231 processed
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: GROUP 44 /lib/udev/rules.d/50-udev-default.rules:34
Jan 21 19:09:58 28f6f6a systemd-udevd[54]: maximum number (20) of children reached

Hi, did you run udevadm control --reload-rules && udevadm trigger whilst the debug logging was enabled? udev is not my forte but I suspect that may produce interesting logs. Otherwise, grepping for ralink from the boot logs may yield something more interesting. Thanks.

Could you show me the output of dmesg too, please?

This is when i grep ralink (+/- 50 lines before/after)

Jan 21 19:28:23 28f6f6a systemd-udevd[54]: === trie on-disk ===
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: tool version:          232
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: file size:         8440991 bytes
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: header size             80 bytes
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: strings            1846911 bytes
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: nodes              6594000 bytes
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Load module index
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: timestamp of '/etc/systemd/network' changed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: timestamp of '/lib/systemd/network' changed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Parsed configuration file /lib/systemd/network/99-default.link
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Created link configuration context.
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: timestamp of '/etc/udev/rules.d' changed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: timestamp of '/lib/udev/rules.d' changed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/40-i2c-tools.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/50-firmware.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/50-udev-default.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/55-dm.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-block.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-cdrom_id.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-drm.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-evdev.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-fuse.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-i2c-tools.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-persistent-alsa.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-persistent-input.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-persistent-storage.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-persistent-v4l.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/60-serial.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/64-btrfs.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-debian-uaccess.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-mouse.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-piksi.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-power-switch.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-sdcard-mount.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-touchpad.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-uaccess.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/70-ubloxlte.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/71-seat.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/73-seat-late.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/73-special-net-names.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/73-usb-net-by-mac.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/75-net-description.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/75-probe_mtd.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/78-sound-card.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/80-debian-compat.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/80-drivers.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/80-ifupdown.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/80-net-setup-link.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/81-ralinkwifi.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/85-hdparm.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/85-hwclock.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/97-hid2hci.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/99-systemd.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Reading rules file: /lib/udev/rules.d/usbmount.rules
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: rules contain 24576 bytes tokens (2048 * 12 bytes), 12382 bytes strings
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: 1755 strings (21927 bytes), 1127 de-duplicated (10174 bytes), 629 trie nodes used
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5989 forked new worker [9922]
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5990 queued, 'change' 'pci'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5991 queued, 'change' 'pci_express'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5992 queued, 'change' 'pci_express'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5993 queued, 'change' 'pci'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5994 queued, 'change' 'nvme'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5995 queued, 'change' 'block'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5996 queued, 'change' 'block'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5997 queued, 'change' 'pci_bus'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5998 queued, 'change' 'pci_bus'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5999 queued, 'change' 'platform'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5989 running
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5999 forked new worker [9923]
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:15
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 6000 queued, 'change' 'platform'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' returned non-zero
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Execute 'load' 'of:Npcie-controllerTpciCnvidia,tegra186-pcie'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Inserted 'pci_tegra'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 6000 forked new worker [9924]
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564f89aa0
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5989 processed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 6001 queued, 'change' '13e10000.host1x'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5990 running
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5999 running
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:15
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:15
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: IMPORT builtin 'hwdb' returned non-zero
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: created db file '/run/udev/data/+pci:0000:00:01.0' for '/devices/10003000.pcie-controller/pci0000:00/0000:00:01.0'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Execute 'load' 'pci:v000010DEd000010E5sv000010DEsd00000000bc06sc04i00'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: No module matches 'pci:v000010DEd000010E5sv000010DEsd00000000bc06sc04i00'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564f89aa0
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5990 processed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: passed 425 byte device to netlink monitor 0x5564f8c860
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5998 forked new worker [9925]
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 6002 queued, 'change' 'platform'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5991 running
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: Execute 'load' 'of:NiommuT<NULL>Carm,mmu-500'
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: passed device to netlink monitor 0x5564f89aa0
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: seq 5991 processed
Jan 21 19:28:23 28f6f6a systemd-udevd[54]: passed 218 byte device to netlink monitor 0x5564f8c860

dmesg

[    8.140022] dhd_module_init in
[    8.143272] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.143451] tegra_net_perf_init: cannot get wifi sclk
[    8.151859] found wifi platform device bcmdhd_wlan
[    8.160198] gpio tegra-gpio-aon wake69 for gpio=59(FF:3)
[    8.165539] wifi_platform_get_country_code_map: could not get country_code_map
[    8.172770] wifi_plat_dev_drv_probe:platform country code map is not available
[    8.172781] Power-up adapter 'DHD generic adapter'
[    8.172788] wifi_platform_set_power = 1
[    8.204333] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.240528] usb 1-3.3: New USB device found, idVendor=148f, idProduct=5370
[    8.241662] gpio tegra-gpio-aon wake30 for gpio=60(FF:4)
[    8.252870] usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.260198] usb 1-3.3: Product: 802.11 n WLAN
[    8.264568] usb 1-3.3: Manufacturer: Ralink
[    8.268756] usb 1-3.3: SerialNumber: 1.0
[    8.374721] wifi_platform_bus_enumerate device present 1
[    8.397949] wifi_platform_bus_enumerate device present 0
[    8.403794] F1 signature read @0x18000000=0x17214354
[    8.415984] F1 signature OK, socitype:0x1 chip:0x4354 rev:0x1 pkg:0x2
[    8.423009] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[    8.430039] wifi_platform_prealloc: failed to alloc static mem section 7
[    8.436767] wifi_platform_get_mac_addr
[    8.442153] CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211
[    8.446746] wl_create_event_handler(): thread:wl_event_handler:30f started
[    8.446751] CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0xffffffc1e2181a70
[    8.446866] dhd_attach(): thread:dhd_watchdog_thread:310 started
[    8.446896] dhd_attach(): thread:dhd_dpc:311 started
[    8.446948] dhd_attach(): thread:dhd_rxf:312 started
[    8.446953] dhd_deferred_work_init: work queue initialized 
[    8.484984] Dongle Host Driver, version 1.201.82 (r)
           Compiled in drivers/net/wireless/bcmdhd on Jan 25 2018 at 00:51:44
[    8.497820] tegra_sysfs_register
[    8.504323] Register interface [wlan0]  MAC: 00:04:4b:c6:ec:c3

[    8.504727] tegra-pcie 10003000.pcie-controller: link 2 down, retrying
[    8.515635] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
[    8.515639] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
[    8.536268] dhd_prot_ioctl : bus is down. we have nothing to do
[    8.543590] sdhci-tegra 3440000.sdhci: Tuning already done, restoring the best tap value : 65
[    8.553162] wifi_platform_set_power = 0
[    8.585671] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.591362] EXT4-fs (mmcblk0p14): mounted filesystem with ordered data mode. Opts: (null)
[    8.613658] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.625252] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.637816] cfg80211: World regulatory domain updated:
[    8.643005] cfg80211:  DFS Master region: unset
[    8.643005] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    8.643010] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.643014] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.643020] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    8.643023] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.643026] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    8.643029] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    8.643031] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    8.643034] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    8.735916] FAT-fs (mmcblk0p12): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.787792] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.798280] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.851286] systemd-journald[614]: Successfully sent stream file descriptor to service manager.
[    8.927441] EXT4-fs (mmcblk0p16): mounted filesystem with ordered data mode. Opts: (null)
[    8.984796] tegra-pcie 10003000.pcie-controller: link 2 down, retrying

Hi, can you please paste the full output of journalctl. The error you see usually indicates a racing problem between udev and other service - possibly NetworkManager. The full output will provide insight into this.

Also can you please paste the fragment of usb-devices which is for the dongle. Also please provide its model.

I see numerous errors in the kernel logs related to WiFi and this could also be related.

Thanks,
Zahari