[SOLVED] UDOObuntu 2.1: wpa_supplicant doesn't work

Discussion in 'UDOO NEO' started by Gorgo, Nov 14, 2016.

  1. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hi guys! I've just bought my Udoo Neo and I'm trying to connect to a WPA2 Enterprise network.
    I've flashed UDOObuntu 2.1 (NOT minimal).
    First kernel image: Linux udooneo 3.14.56-udooneo-02023-g8d371df

    I set the current date (otherwise I can't update any packages because of certificate verification errors), then update && upgrade.
    Updated kernel image: Linux udooneo 3.14.56-udooneo-02041-g77702fa

    wpa_supplicant.conf:
    Code:
    
    network={
      ssid="eduroam"
      key_mgmt=WPA-EAP
      pairwise=CCMP
      group=CCMP TKIP
      eap=TTLS
      ca_cert="/home/udooer/.cat_installer/ca.pem"
      identity="USER@upmc.fr"
      domain_suffix_match="radius.upmc.fr"
      phase2="auth=PAP"
      password="******"
      anonymous_identity="anonymous@upmc.fr"
    }
    
    If I try to connect it tries to read a p2p-dev-wlan0 interface that doesn't exist.

    Code:
    udooer@udooneo:~$ sudo wpa_supplicant -B -iwlan0 -c/home/udooer/.cat_installer/cat_installer.conf
    Successfully initialized wpa_supplicant
    Could not read interface p2p-dev-wlan0 flags: No such device
    nl80211: Could not set interface 'p2p-dev-wlan0' UP
    nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
    p2p-dev-wlan0: Failed to initialize driver interface
    P2P: Failed to enable P2P Device interface
    
    Setting the conf header with p2p_disabled=1 doesn't solve the problem.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I have no Neo with Wifi so cannot help you directly. I see you are editing files directly.
    What if you try the folllowing from the manual:

    Connecting to Wi-Fi networks

    You can connect to wireless networks by:

    • using the Web Control Panel, in Configuration/Network settings;
    • using the network utility in the UDOObuntu desktop environment (in the bottom-right corner).
     
  3. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hi Waltervl :)
    I'm not a masochist :) I need to connect via terminal instead of NetworkManager gui.
    The web control panel doesn't support Eduroam (It wants a specific AP but in my case the university is a ESS network) since it shows multiple networks with the same SSID.

    I succeded in connect to eduroam (WPA2 802.1X) with my Udoo QUAD (Arch) and I must do the same with the quad.
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I see :) Perhaps one of other (italian?) Universtity users with an Eduroam network on campus can help?
     
  5. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    It doesn't have to be eduroam. I'd like a working wpa_supplicant to start. In this case the package in Udoobuntu seems broken since It doesn't detect wlan0 as interface. An expert friend of mine told me this should be a broken version of wpa_supplicant but I let the devs to check it.
     
  6. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    SEMI-SOLVED:

    Interfaces:
    Code:
    udooer@Pizzicottina:~$ less /etc/network/interfaces
    # Loopback network interface
    auto lo
    iface lo inet loopback
    
    # Wifi eduroam
    auto wlan0
    iface wlan0 inet dhcp
    wpa-driver nl80211
    wpa-conf /etc/wpa_supplicant.conf
    
    # Primary network interface
    #auto eth0
    #iface eth0 inet dhcp
    
    # USB OTG connection
    allow-hotplug usb0
    iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.252
    
    wpa_supplicant.conf
    Code:
    udooer@Pizzicottina:~$ cat /etc/wpa_supplicant.conf
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
      ssid="eduroam"
      key_mgmt=WPA-EAP
      pairwise=CCMP
      group=CCMP TKIP
      eap=TTLS
      ca_cert="/home/udooer/.cat_installer/ca.pem"
      identity="USER@upmc.fr"
      domain_suffix_match="radius.upmc.fr"
      phase2="auth=PAP"
      password="*********"
      anonymous_identity="anonymous@upmc.fr"
    }
    
    When I reboot there's a working wpa_supplicant:
    Code:
    udooer@Pizzicottina:~$ ps -aux | grep wpa
    root       840  0.1  0.2   5256  2284 ?        Ss    2015   0:00 /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf
    
    ifconfig
    Code:
    udooer@Pizzicottina:~$ ifconfig wlan0
    wlan0     Link encap:Ethernet  HWaddr 5c:31:3e:28:22:56 
              inet6 addr: fe80::5e31:3eff:fe28:2256/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:18 errors:0 dropped:0 overruns:0 frame:0
              TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:10410 (10.4 KB)  TX bytes:1320 (1.3 KB)
    
    At this moment I wonder why the dhcp doesn't work dynamically (It's in the interface file) but if I type:

    Code:
    sudo dhclient wlan0 -v
    Listening on LPF/wlan0/5c:31:3e:28:22:56
    Sending on   LPF/wlan0/5c:31:3e:28:22:56
    Sending on   Socket/fallback
    DHCPREQUEST of MYIP on wlan0 to 255.255.255.255 port 67 (xid=0x610f477f)
    DHCPREQUEST of MYIP on wlan0 to 255.255.255.255 port 67 (xid=0x610f477f)
    DHCPREQUEST of MYIP on wlan0 to 255.255.255.255 port 67 (xid=0x610f477f)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14 (xid=0xa608f045)
    DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19 (xid=0xa608f045)
    DHCPREQUEST of MYIP on wlan0 to 255.255.255.255 port 67 (xid=0x45f008a6)
    DHCPOFFER of MYIP from 2.2.2.2
    DHCPACK of MYIP from 2.2.2.2
    bound to MYIP -- renewal in 1407 seconds.
    
    And it works.
     
    Francesco and waltervl like this.

Share This Page