The officially official Devuan Forum!

You are not logged in.

#1 2021-11-25 19:35:56

vanfanel
Member
Registered: 2021-10-27
Posts: 3  

[Raspberry Pi 400] Why is wifi interface named wlan1 on the Pi400?

Hi there,

I use Devuan on both Pi4b and Pi400, in aarch64 mode.
In both cases, I manually load the bcrmfmac module when it's needed.
The problem is that the WIFI interface is named WLAN0 on the Pi4b but it's named WLAN1 on the Pi400, and that breaks some of my scripts.

So, what could be at play here? Any clues?

Thanks!

Offline

#2 2021-11-25 21:47:15

Altoid
Member
Registered: 2017-05-07
Posts: 1,581  

Re: [Raspberry Pi 400] Why is wifi interface named wlan1 on the Pi400?

Hello:

vanfanel wrote:

... Devuan on both Pi4b and Pi400, in aarch64 mode.
... WIFI interface is named WLAN0 on the Pi4b ...
... named WLAN1 on the Pi400 ...
Any clues?

Can't imagine why.

But check this and see if there's something there: https://wiki.debian.org/NetworkInterfaceNames
eg: the /etc/udev/rules.d/70-persistent-net.rules file in each one of the installations and compare them.

Best,

A.

Offline

#3 2021-11-25 23:41:09

c0rnelius
Member
Registered: 2020-06-13
Posts: 51  

Re: [Raspberry Pi 400] Why is wifi interface named wlan1 on the Pi400?

Well if you were using systemd you could just add net.ifnames=0 to the cmdline. But as this isn't an option on Devuan, you would need to play around with the udev rules.

sudo tee /etc/udev/rules.d/80-net-setup-link.rules <<EOF

SUBSYSTEM!="net", GOTO="net_setup_link_end"

IMPORT{builtin}="path_id"

ACTION!="add", GOTO="net_setup_link_end"

# IMPORT{builtin}="net_setup_link"

NAME=="", ENV{ID_NET_NAME}!="", NAME="wlan0"

LABEL="net_setup_link_end"
EOF

I use a rule like this to insure the ethernet interface comes up as eth0 on Pi3's.

Offline

Board footer