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

919 views
Skip to first unread message

Davide Aguiari

unread,
Feb 22, 2017, 11:03:27 AM2/22/17
to BeagleBoard
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)

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.


  • I edited /boot/uEnv.txt uncommenting and reboot
dtb=am335x-bonegreen-overlay.dtb

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



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


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Test with a IoT night-build:

Image: bone-debian-8.7-iot-armhf-2017-02-19-4gb.img
Kernel: 
  • Flash it in a sd card
sudo dd if=/media/gorgo/Windows/bone-debian-8.7-iot-armhf-2017-02-19-4gb.img of=/dev/mmcblk0 bs=4M
sudo sync
  • Insert into the board, holding USER btn and it boots.
  • No wlan0 or SoftAp0 

  • I edited /boot/uEnv.txt uncommenting and reboot
dtb=am335x-bonegreen-overlay.dtb

Dmesg: http://pastebin.com/7vwAXZqT

  • Edit /etc/network/interfaces and wpa_supplicant.conf
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).


# The loopback network interface
auto lo
iface lo inet loopback


# The primary network interface
#auto eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE


##connman: ethX static config
#connmanctl services
#Using the appropriate ethernet service, tell connman to setup a static IP address for that service:
#sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> <gateway> --nameservers <dns_server>


##connman: WiFi
#
#connmanctl
#connmanctl> tether wifi disable
#connmanctl> enable wifi
#connmanctl> scan wifi
#connmanctl> services
#connmanctl> agent on
#connmanctl> connect wifi_*_managed_psk
#connmanctl> quit


# Ethernet/RNDIS gadget (g_ether)
# Used by: /opt/scripts/boot/autoconfigure_usb0.sh
iface usb0 inet
static
    address
192.168.7.2
    netmask
255.255.255.252
    network
192.168.7.0
    gateway
192.168.7.1


auto wlan0
iface wlan0 inet dhcp
wpa
-conf /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant


network
={
  ssid
="ssid"
  proto
=RSN
  key_mgmt
=WPA-PSK
  pairwise
=CCMP TKIP
 
group=CCMP TKIP
  psk
="password"
}

debian@beaglebone:~$ sudo ifup wlan0
wpa_supplicant
: /sbin/wpa_supplicant daemon failed to start
run
-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0.

And the journal shows:
Feb 22 16:00:59 beaglebone sudo[2054]:   debian : TTY=pts/0 ; PWD=/home/debian ; USER=root ; COMMAND=/sbin/ifup wlan0
Feb 22 16:00:59 beaglebone sudo[2054]: pam_unix(sudo:session): session opened for user root by debian(uid=0)
Feb 22 16:00:59 beaglebone wpa_supplicant[2066]: Successfully initialized wpa_supplicant
Feb 22 16:01:00 beaglebone systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
-- Subject: Unit systemd-rfkill.socket has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-rfkill.socket has finished starting up.
--
-- The start-up result is done.
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: Could not read interface wlan0 flags: No such device
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: nl80211: Driver does not support authentication/association or connect commands
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: Could not read interface wlan0 flags: No such device
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: Could not read interface wlan0 flags: No such device
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: WEXT: Could not set interface 'wlan0' UP
Feb 22 16:01:00 beaglebone wpa_supplicant[2066]: wlan0: Failed to initialize driver interface


debian@beaglebone
:~$ sudo ifconfig wlan0 up
wlan0
: ERROR while getting interface flags: No such device


Sorry for the long post but I can't figure it out :/

Thank you for the support

Robert Nelson

unread,
Feb 22, 2017, 11:46:00 AM2/22/17
to Beagle Board, gorg...@gmail.com
> Boot: http://pastebin.com/fX0hwstd
>
> 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,

--
Robert Nelson
https://rcn-ee.com/

Davide Aguiari

unread,
Feb 22, 2017, 12:00:40 PM2/22/17
to BeagleBoard, gorg...@gmail.com
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

Robert Nelson

unread,
Feb 22, 2017, 12:08:30 PM2/22/17
to Beagle Board


On Feb 22, 2017 9:00 AM, "Davide Aguiari" <gorg...@gmail.com> wrote:
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:


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

Regards,


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/46c318df-300d-45ec-8111-1928243fc810%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Davide Aguiari

unread,
Feb 22, 2017, 12:20:44 PM2/22/17
to BeagleBoard
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 :(
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages