WIFI wlan0 interface - no such a device

Hi Robert,

I have wifi problem with our new rev boards. Please take a look the following messages for me:
//===== sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[46d33928c4a396ef472829bcf22761546e550a6f]
eeprom:[A335BNLTBWA51900BBWG0001]
model:[TI_AM335x_BeagleBone_Black_Wireless]
dogtag:[BeagleBoard.org Debian Image 2019-07-07]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-g31a8ae0206]:[location: dd MBR]
kernel:[4.19.50-ti-r20]
nodejs:[v10.15.2]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.4.20190610.0-0rcnee0~buster+20190610]
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~buster+20190227]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.4-git20190227.1-0rcnee0~buster+20190327]
pkg:[firmware-ti-connectivity]:[20190114-1]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 cape_universal=enable quiet]
dmesg | grep remote
[ 1.582094] remoteproc remoteproc0: wkup_m3 is available
[ 1.584109] remoteproc remoteproc1: 4a334000.pru is available
[ 1.584551] remoteproc remoteproc2: 4a338000.pru is available
[ 1.967108] remoteproc remoteproc0: powering up wkup_m3
[ 1.967232] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 1.970787] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
[ 1.584109] remoteproc remoteproc1: 4a334000.pru is available
[ 1.584254] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
[ 1.584551] remoteproc remoteproc2: 4a338000.pru is available
[ 1.584647] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
dmesg | grep pinctrl-single
[ 1.139936] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 1.152996] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

//=====sudo dmesg|egrep ‘wlan|iwl|firm’
[ 1.967232] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 1.979504] wlan-en-regulator: disabling

//======sudo ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device

//=======sudo systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-07-07 16:36:47 UTC; 25min ago
Docs: man:interfaces(5)
Process: 5160 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 5160 (code=exited, status=1/FAILURE)

Jul 07 16:36:47 beaglebone dhclient[5189]: than a configuration issue please read the section on submitting
Jul 07 16:36:47 beaglebone dhclient[5189]: bugs on either our web page at www.isc.org or in the README file
Jul 07 16:36:47 beaglebone ifup[5160]: ifup: failed to bring up ppp0
Jul 07 16:36:47 beaglebone dhclient[5189]: before submitting a bug. These pages explain the proper
Jul 07 16:36:47 beaglebone dhclient[5189]: process and the information we find helpful for debugging.
Jul 07 16:36:47 beaglebone dhclient[5189]:
Jul 07 16:36:47 beaglebone dhclient[5189]: exiting.
Jul 07 16:36:47 beaglebone systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 16:36:47 beaglebone systemd[1]: networking.service: Failed with result ‘exit-code’.
Jul 07 16:36:47 beaglebone systemd[1]: Failed to start Raise network interfaces.
debian@beaglebone:/etc/init.d$

//======sudo hcitool scan
Scanning …
A0:AF:BD:72:A6:A9 Alden
D0:7F:A0:18:58:B6 Galaxy J7 Refine

The Bluetooth works.

Thank you for your support,
David

Hi Robert,

Is it possible that the ifup command fails to bring up ppp0 interface, then dropped to bring up wlan0:

//===from sudo systemctl status networking.service
ifup: failed to bring up ppp0

Best Regards,
David

Hi Robert,

I commented out the following line in the interfaces file:
#auto ppp0
#allow-hotplug ppp0
#iface ppp0 inet dhcp

Now
sudo systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: active (exited) since Sun 2019-07-07 17:41:02 UTC; 22min ago
Docs: man:interfaces(5)
Process: 8413 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
Main PID: 8413 (code=exited, status=0/SUCCESS)

Jul 07 17:41:02 beaglebone systemd[1]: Starting Raise network interfaces…
Jul 07 17:41:02 beaglebone systemd[1]: Started Raise network interfaces.

But it still has no wlan0.

Best Regards,

David

Hi @dzhou , what do you see thru dmesg/journalctl…

journalctl | grep wl
dmesg | grep wl
debian@bbbw-pwr13-ser21:~$ journalctl | grep wl
Feb 03 16:10:12 bbbw-pwr13-ser21 kernel: wlan-en-regulator: disabling
Feb 03 16:10:16 bbbw-pwr13-ser21 systemd[1]: Starting BB WL18xx wlan0 Service...
Feb 03 16:10:17 bbbw-pwr13-ser21 bb-wl18xx-wlan0[1347]: wlan_0_mac=[00:00:00:00:00:00], this forces internal wl18xx mac address...
Feb 03 16:10:19 bbbw-pwr13-ser21 bb-wl18xx-wlan0[1347]: /lib/firmware/ti-connectivity/wl1271-nvs.bin=[00:00:00:00:00:00]
Feb 03 16:10:19 bbbw-pwr13-ser21 connmand[1344]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536
Feb 03 16:10:19 bbbw-pwr13-ser21 connmand[1344]: lo {newlink} index 1 operstate 0 <UNKNOWN>
Feb 03 16:10:19 bbbw-pwr13-ser21 connmand[1344]: can0 {newlink} index 2 address 00:00:00:00:00:00 mtu 16
Feb 03 16:10:19 bbbw-pwr13-ser21 connmand[1344]: can0 {newlink} index 2 operstate 2 <DOWN>
Feb 03 16:10:19 bbbw-pwr13-ser21 connmand[1344]: can1 {newlink} index 3 address 00:00:00:00:00:00 mtu 16
Feb 03 16:10:19 bbbw-pwr13-ser21 connmand[1344]: can1 {newlink} index 3 operstate 2 <DOWN>
Feb 03 16:10:23 bbbw-pwr13-ser21 systemd[1]: bb-wl18xx-wlan0.service: Succeeded.
Feb 03 16:10:23 bbbw-pwr13-ser21 systemd[1]: Started BB WL18xx wlan0 Service.
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb0 {newlink} index 4 address 00:00:00:00:00:00 mtu 1500
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb0 {newlink} index 4 operstate 2 <DOWN>
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb0 {newlink} index 4 address EC:11:27:BF:87:60 mtu 1500
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb0 {newlink} index 4 operstate 2 <DOWN>
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 address 00:00:00:00:00:00 mtu 1500
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 operstate 2 <DOWN>
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 address EC:11:27:BF:87:64 mtu 1500
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 operstate 2 <DOWN>
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb0 {newlink} index 4 address EC:11:27:BF:87:60 mtu 1500
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb0 {newlink} index 4 operstate 2 <DOWN>
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 address EC:11:27:BF:87:64 mtu 1500
Feb 03 16:10:25 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 operstate 0 <UNKNOWN>
Feb 03 16:10:26 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 address EC:11:27:BF:87:64 mtu 1500
Feb 03 16:10:26 bbbw-pwr13-ser21 connmand[1344]: usb1 {newlink} index 5 operstate 2 <DOWN>
Feb 03 16:11:10 bbbw-pwr13-ser21 bb-wl18xx-bluetooth[3153]: Found a Texas Instruments' chip!
Feb 03 16:11:10 bbbw-pwr13-ser21 bb-wl18xx-bluetooth[3153]: Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts
Feb 03 16:11:10 bbbw-pwr13-ser21 bb-wl18xx-bluetooth[3153]: Loaded BTS script version 1
Feb 03 16:11:10 bbbw-pwr13-ser21 bb-wl18xx-bluetooth[3153]: texas: changing baud rate to 3000000, flow control to 1
Feb 03 16:11:12 bbbw-pwr13-ser21 bb-wl18xx-bluetooth[3153]: Device setup complete
Feb 03 16:11:13 bbbw-pwr13-ser21 kernel: wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
Feb 03 16:11:13 bbbw-pwr13-ser21 connmand[1344]: wlan0 {create} index 6 type 1 <ETHER>
Feb 03 16:11:13 bbbw-pwr13-ser21 connmand[1344]: wlan0 {update} flags 4098 <DOWN>
Feb 03 16:11:13 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 address 5C:31:3E:E2:24:6A mtu 1500
Feb 03 16:11:13 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 operstate 2 <DOWN>
Feb 03 16:11:13 bbbw-pwr13-ser21 kernel: wlcore: loaded
Feb 03 16:11:14 bbbw-pwr13-ser21 kernel: wlcore: PHY firmware version: Rev 8.2.0.0.242
Feb 03 16:11:14 bbbw-pwr13-ser21 kernel: wlcore: firmware booted (Rev 8.9.0.0.79)
Feb 03 16:11:14 bbbw-pwr13-ser21 kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: Adding interface wlan0 [ wifi ]
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {update} flags 36931 <UP,RUNNING>
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 address 5C:31:3E:E2:24:6A mtu 1500
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 operstate 0 <UNKNOWN>
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {update} flags 36867 <UP>
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 address 5C:31:3E:E2:24:6A mtu 1500
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 operstate 2 <DOWN>
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 address 5C:31:3E:E2:24:6A mtu 1500
Feb 03 16:11:14 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 operstate 2 <DOWN>
Feb 03 16:11:15 bbbw-pwr13-ser21 wpa_supplicant[1348]: wlan0: SME: Trying to authenticate with b6:fb:e4:f4:7a:ad (SSID='XA10-WiFi-X1' freq=2412 MHz)
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlan0: authenticate with b6:fb:e4:f4:7a:ad
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlan0: send auth to b6:fb:e4:f4:7a:ad (try 1/3)
Feb 03 16:11:15 bbbw-pwr13-ser21 wpa_supplicant[1348]: wlan0: Trying to associate with b6:fb:e4:f4:7a:ad (SSID='XA10-WiFi-X1' freq=2412 MHz)
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlan0: authenticated
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlan0: associate with b6:fb:e4:f4:7a:ad (try 1/3)
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlan0: RX AssocResp from b6:fb:e4:f4:7a:ad (capab=0x431 status=0 aid=3)
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {RX} 1 packets 113 bytes
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {TX} 0 packets 0 bytes
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 address 5C:31:3E:E2:24:6A mtu 1500
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlan0: associated
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 operstate 5 <DORMANT>
Feb 03 16:11:15 bbbw-pwr13-ser21 wpa_supplicant[1348]: wlan0: Associated with b6:fb:e4:f4:7a:ad
Feb 03 16:11:15 bbbw-pwr13-ser21 wpa_supplicant[1348]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Feb 03 16:11:15 bbbw-pwr13-ser21 wpa_supplicant[1348]: wlan0: WPA: Key negotiation completed with b6:fb:e4:f4:7a:ad [PTK=CCMP GTK=CCMP]
Feb 03 16:11:15 bbbw-pwr13-ser21 wpa_supplicant[1348]: wlan0: CTRL-EVENT-CONNECTED - Connection to b6:fb:e4:f4:7a:ad completed [id=0 id_str=]
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {RX} 2 packets 282 bytes
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {TX} 2 packets 288 bytes
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 address 5C:31:3E:E2:24:6A mtu 1500
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {newlink} index 6 operstate 6 <UP>
Feb 03 16:11:15 bbbw-pwr13-ser21 kernel: wlcore: Association completed.
Feb 03 16:11:15 bbbw-pwr13-ser21 avahi-daemon[1346]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.3.33.
Feb 03 16:11:15 bbbw-pwr13-ser21 avahi-daemon[1346]: New relevant interface wlan0.IPv4 for mDNS.
Feb 03 16:11:15 bbbw-pwr13-ser21 avahi-daemon[1346]: Registering new address record for 192.168.3.33 on wlan0.IPv4.
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} address 192.168.3.33/22 label wlan0 family 2
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} route 192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} route 192.168.1.1 gw 0.0.0.0 scope 253 <LINK>
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} route 8.8.8.8 gw 192.168.1.1 scope 0 <UNIVERSE>
Feb 03 16:11:15 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} route 0.0.0.0 gw 192.168.1.1 scope 0 <UNIVERSE>
Feb 03 16:12:03 bbbw-pwr13-ser21 connmand[1344]: wlan0 {add} route 212.227.81.55 gw 192.168.1.1 scope 0 <UNIVERSE>
Feb 03 16:12:04 bbbw-pwr13-ser21 connmand[1344]: wlan0 {del} route 212.227.81.55 gw 192.168.1.1 scope 0 <UNIVERSE>
Feb 03 16:12:04 bbbw-pwr13-ser21 avahi-daemon[1346]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::5e31:3eff:fee2:246a.
Feb 03 16:12:04 bbbw-pwr13-ser21 avahi-daemon[1346]: New relevant interface wlan0.IPv6 for mDNS.
Feb 03 16:12:04 bbbw-pwr13-ser21 avahi-daemon[1346]: Registering new address record for fe80::5e31:3eff:fee2:246a on wlan0.*.
Feb 03 16:15:02 bbbw-pwr13-ser21 sudo[3235]:   debian : TTY=unknown ; PWD=/home/debian ; USER=root ; COMMAND=/sbin/dhclient wlan0
Feb 03 16:15:02 bbbw-pwr13-ser21 dhclient[3237]: DHCPREQUEST for 192.168.3.33 on wlan0 to 255.255.255.255 port 67
debian@bbbw-pwr13-ser21:~$ dmesg | grep wl
[    3.182319] wlan-en-regulator: disabling
[   92.634551] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[   92.673128] wlcore: loaded
[   93.148677] wlcore: PHY firmware version: Rev 8.2.0.0.242
[   93.205808] wlcore: firmware booted (Rev 8.9.0.0.79)
[   93.225945] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   94.263774] wlan0: authenticate with b6:fb:e4:f4:7a:ad
[   94.279380] wlan0: send auth to b6:fb:e4:f4:7a:ad (try 1/3)
[   94.310526] wlan0: authenticated
[   94.318963] wlan0: associate with b6:fb:e4:f4:7a:ad (try 1/3)
[   94.335091] wlan0: RX AssocResp from b6:fb:e4:f4:7a:ad (capab=0x431 status=0 aid=3)
[   94.359716] wlan0: associated
[   94.528623] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   94.555457] wlcore: Association completed.

Hi Robert,

There are a lot of messages from the commands you posted. I guess I have auto-start of ppp0. It failed and tried several times. So there are a lot of messages with 'grep wl | grep wlan0 ’
I believe it is caused by ppp0 failure during initialization. Our board has a separate power enabling circuit for cellular module. I am going to disable that to bring wifi up first.

Best Regards,

David

Hi Robert,

I run your commands: journalctl | grep wl returns the same except:

I have the line ( between the line : lo and can0 { newlink } )
wl18xx:tether waiting for /sys/class/net/wlan0
Because of the above line, I didn’t have
bb-wl18xx-wlan0.service: Succeeded

The dmesg | grep wl only returns :
wlan-en-regulator: disabling

Thank you,
David

This means the kernel has not detected the wl18xx device on the sdio bus.

Regards,

Hi Robert,

Is possible no power to wifi? (Well, Bluetooth works, input power to the chip is there)
Or UART3 (the number may not be 3) as sdio bus problem?

Best Regards,
David

Hi Robert,

We follow your leads and found a missing resistant on one of the SDIO lines. Now, wifi works. Thank you for your help.

Best Regards,
David

awesome glad it works!!!