BBGW wlan0 setup: wlan0/softAp0 missing and can't connect

Hi guys,
I’m facing a problem with wlan0. Basically I can’t make it work anymore. I used to connect to my wlan in the past week (https://beagleboard.org/discuss?place=topic%2Fbeagleboard%2Fz7_EdRpFL1M%2Fdiscussion) but I made changes/reflash and I can’t figure why It’s not working now.

It’s easier to list what I’ve done.

Current config:

Image: Debian 8.6 2016-11-06 4GB SD SeeedStudio IoT (bone-debian-8.6-seeed-iot-armhf-2016-11-06-4gb.img)

Kernel: Linux beaglebone 4.4.30-ti-r64 #1 SMP Fri Nov 4 21:23:33 UTC 2016 armv7l GNU/Linux

  • Flash it in a sd card

sudo dd if=/media/gorgo/Windows/bone-debian-8.6-iot-armhf-2016-12-09-4gb.img of=/dev/mmcblk0 bs=4M sudo sync

  • Insert into the board and it boots.

  • ifconfig

`
eth0 Link encap:Ethernet HWaddr 00:50:b6:17:b2:cb
inet addr:192.168.1.245 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:b6ff:fe17:b2cb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6827 (6.6 KiB) TX bytes:24771 (24.1 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:12960 (12.6 KiB) TX bytes:12960 (12.6 KiB)

usb0 Link encap:Ethernet HWaddr 88:c2:55:80:f2:5d
inet addr:192.168.7.2 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::8ac2:55ff:fe80:f25d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:53 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7650 (7.4 KiB) TX bytes:12775 (12.4 KiB)

`

Dmesg: http://pastebin.com/U7FLMmGH

No wlan0 or softAp0. So I tried to hold USER btn on boot.

  • Try to boot the board holding USER Button for 4/5 seconds.

Boot: http://pastebin.com/fX0hwstd

  • I edited /boot/uEnv.txt uncommenting and reboot

dtb=am335x-bonegreen-overlay.dtb

Boot: http://pastebin.com/5e67fApnStill no wlan0 or SoftAp0.

Dmesg: http://pastebin.com/RUgKNnN1

Journactl: http://pastebin.com/F5mCDewp

The journal is full of:

Feb 22 14:43:04 beaglebone wifidog_server[1081]: [3][Wed Feb 22 14:43:04 2017][1089](util.c:218) get_iface_mac ioctl(SIOCGIFHWADDR): No such device Feb 22 14:43:04 beaglebone wifidog_server[1081]: [3][Wed Feb 22 14:43:04 2017][1089](gateway.c:388) Could not get MAC address information of SoftAp0, exiting... Feb 22 14:43:04 beaglebone wifidog_pre[1077]: command failed: No such file or directory (-2) Feb 22 14:43:05 beaglebone systemd[1]: wifidog-pre-startup.service: Main process exited, code=exited, status=254/n/a Feb 22 14:43:05 beaglebone systemd[1]: wifidog-pre-startup.service: Unit entered failed state. Feb 22 14:43:05 beaglebone systemd[1]: wifidog-pre-startup.service: Failed with result 'exit-code'. Feb 22 14:43:05 beaglebone systemd[1]: wifidog-gateway.service: Main process exited, code=exited, status=1/FAILURE Feb 22 14:43:05 beaglebone systemd[1]: wifidog-gateway.service: Unit entered failed state. Feb 22 14:43:05 beaglebone systemd[1]: wifidog-gateway.service: Failed with result 'exit-code'.

  • Apt-get update and upgrade. It has upgraded bb-wl18xx-firmware, c9-core, PRU and other lots of pckgs. Reboot
  • No wlan0 or SoftAp0. Neither with iwconfig. wifidog-gateway.service errors still present in joruanctl
    `
    root@beaglebone:~# ifconfig wlan0 up
    wlan0: ERROR while getting interface flags: No such device
    root@beaglebone:~# ifup wlan0
    Unknown interface wlan0

`

Boot: U-Boot SPL 2016.11-rc3-00002-g73df7f7 (Nov 04 2016 - 15:20:36)Trying to boot f - Pastebin.com

I edited /boot/uEnv.txt uncommenting and reboot

dtb=am335x-bonegreen-overlay.dtb

For the BBGW, you don't need to do ^ that, as that "setup" is pretty
much the default.. You just want to disable eMMC, use the new U-Boot
Overlays..

http://elinux.org/Beagleboard:BeagleBone_Debian_Image_Migration#U-Boot_Overlays

enable_uboot_overlays=1

disable_uboot_overlay_emmc=1

Use this latest image:

https://rcn-ee.net/rootfs/bb.org/testing/2017-02-19/iot/

Regards,

Hi RobertCNelson,

are you sure about the uEnv.txt?
I put # in front of dtb=am335x-bonegreen-overlay.dtb and uncommented the two lines you told.
I rebooted and:

  • I lost my univ-all slot:

debian@beaglebone:~$ cat /sys/devices/platform/bone_capemgr/slots 0: PF---- -1 1: PF---- -1 2: PF---- -1 3: PF---- -1

  • I’m not able to read P8 gpio anymore.

I had this problem last week (https://forums.adafruit.com/viewtopic.php?f=49&t=111784&p=559590#p559590) and we fixed that uncommented the line I told you.

For the image:
In the second part of the topic I showed you a nightly build test with bone-debian-8.7-iot-armhf-2017-02-19-4gb.img. Is it not the one you told me? Should I try BBB-blank, BBBL-blank or debian-8.7 instead?

Thank you

You can manually add that overlay to /boot/uEnv.txt

Regards,

Did you mean with adding:
enable_uboot_cape_universal=1 ?

It doesn’t work.
And I have set too:
cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable

This is my current uEnv.txt: http://pastebin.com/0Jv0qGxM

This is the boot from the debug serial: http://pastebin.com/Bdhq0XvG

The wifi problem is still present though :frowning: