Wwan0 changed to wwp1s0u1u1i2

Hi,
IOT newbie here.
I have my Sixfab hat with Telit modem working (w twilio supersim), however, bizzarely the wwan0 interface changed to wwp1s0u1u1i2 and for the absolute life of me I can’t figure out why.

❯ ifconfig -a
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether dc:a6:32:d7:8c:2c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.87.29  netmask 255.255.255.0  broadcast 192.168.87.255
        inet6 fe80::d6ba:17be:62f2:2e4a  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:d7:8c:2d  txqueuelen 1000  (Ethernet)
        RX packets 40187  bytes 47835926 (45.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16527  bytes 1949199 (1.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wwp1s0u1u1i2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.225.37  netmask 255.255.255.0  broadcast 192.168.225.255
        inet6 fe80::5dfa:da92:fca9:6155  prefixlen 64  scopeid 0x20<link>
        ether 22:d2:29:03:05:bf  txqueuelen 1000  (Ethernet)
        RX packets 66  bytes 4074 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 98  bytes 8476 (8.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I think this happened after messing with libqmi

from dmesg:

[    5.621230] usbcore: registered new interface driver usbserial_generic
[    5.621300] usbserial: USB Serial support registered for generic
[    5.631657] cdc_ether 1-1.1:1.2 wwan0: register 'cdc_ether' at usb-0000:01:00.0-1.1, Mobile Broadband Network Device, 22:d2:29:03:05:bf
[    5.632193] usbcore: registered new interface driver cdc_ether
[    5.670011] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.681583] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
[    5.696714] usbcore: registered new interface driver option
[    5.696823] usbserial: USB Serial support registered for GSM modem (1-port)
[    5.697423] option 1-1.1:1.0: GSM modem (1-port) converter detected
[    5.700257] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
[    5.700937] option 1-1.1:1.4: GSM modem (1-port) converter detected
[    5.701443] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
[    5.701846] option 1-1.1:1.5: GSM modem (1-port) converter detected
[    5.702283] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
[    5.702661] option 1-1.1:1.6: GSM modem (1-port) converter detected
[    5.703332] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
[    5.703715] option 1-1.1:1.7: GSM modem (1-port) converter detected
[    5.713992] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB4
[    5.918748] cdc_ether 1-1.1:1.2 wwp1s0u1u1i2: renamed from wwan0

Thoughts?

Hi @bdmorin,

Please try to set AT#USBCFG=0 to configure it to default composition and then reboot the module after 10 seconds AT#REBOOT.

Thanks for the suggestion. I tried it out; however same results.

I just realized I ommited a big piece. I went back to the original setup of at#usbcfg=4 after trying libqmi. I honestly am unsure of which I should use, so i was trying both.

So, this is how it went.

  • I setup the pi&hat&telit modem using the standard documentation.
  • Then I setup using ECM.
  • It worked great, but since I was testing the unit, I wanted to try libqmi, so I set that up.
  • During the implementation of libqmi, everything crapped out at udhcpc and, since time is a valuable commodity, I went back to ECM.

ECM works, even with the weird wwp1s0u1u1i2 interface. However I’d like to go back to wwan01 so I can have reliable scripts for the 3 other units I need to provision.

Are you aware of an uninstall procedure I should perform of libqmi? dmesg logs seem to indicate the interface was changed due to the qmicli setup /dev/cdc-wdm0.

I could just reinstall rasbian too. I’m awful curious how this works though.

Appreciate your response.

I’m starting from scratch, I feel like I was doing too many things. I’m going to try a fresh install with libqmi. Gotta say though, ECM was easy-peasy lemon squeezy.

Those names are something systemd use by default. It can be disabled in a number of ways. This page can help you find out: PredictableNetworkInterfaceNames

Thanks.

1 Like

Thank you, this was a new one to me.