linux4sam/meta-atmel

WiFi clients can connect, but aren't offered an IP address

Closed this issue · 2 comments

huntc commented

I've built and flashed an image to my sama5d27-wlsom1-ek-sd, and note that the Start_AP.sh script attempts to start up DHCP, but can't because it isn't there... should the sama5d27-wlsom1-ek-sd layer include DHCP, perhaps as a dependency of this recipe?

https://github.com/linux4sam/meta-atmel/blob/41283b87a845e5438139858dc9b589d480af8aa1/recipes-connectivity/wilc-ble-apps/wilc-demo-fs-overlay.bb

Here's the full log:

---------------------------------------------------
 #     #                                           
 #  #  # ###### #       ####   ####  #    # ###### 
 #  #  # #      #      #    # #    # ##  ## #      
 #  #  # #####  #      #      #    # # ## # #####  
 #  #  # #      #      #      #    # #    # #      
 #  #  # #      #      #    # #    # #    # #      
  ## ##  ###### ######  ####   ####  #    # ###### 
---------------------------------------------------
    #    ######     ######                       
   # #   #     #    #     # ###### #    #  ####    
  #   #  #     #    #     # #      ##  ## #    #   
 #     # ######     #     # #####  # ## # #    #   
 ####### #          #     # #      #    # #    #   
 #     # #          #     # #      #    # #    #   
 #     # #          ######  ###### #    #  ####    
-----------------------------------------------wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 8.
1.############## WILC-SDIO module is available ##############
2.############## Bringing up the wlan0 interface ##############
Wireless LAN interface is UP!
3.############## Starting the Host AP deamon ##############
wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power -789914606
wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power -789914606
wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power -789914606
hostapd process has started successfully
wilc_sdio mmc1:0001:1 wlan0: INFO [change_virtual_intf]In Change virtual interface function
wilc_sdio mmc1:0001:1 wlan0: INFO [change_virtual_intf]Wireless interface name =wlan0
wilc_sdio mmc1:0001:1 wlan0: INFO [change_virtual_intf]Interface type = NL80211_IFTYPE_AP
grep: /etc/dhcp/dhcpd.conf: No such file or directory
./Start_AP.sh: line 52: /etc/dhcp/dhcpd.conf: No such file or directory
4.############## Configuring the AP IP Address to 192.168.1.1 ##############
wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power -789914862
wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 9.
wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Disable mcast filter retrieve multicast pkts
wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 9.
wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Disable mcast filter retrieve multicast pkts
wilc_sdio mmc1:0001:1 wlan0: INFO [add_virtual_intf]Initializing mon ifc virtual device driver
wilc_sdio mmc1:0001:1 wlan0: INFO [add_virtual_intf]Adding monitor interface[4cb9dc2f]
wilc_sdio mmc1:0001:1 wlan0: INFO [add_virtual_intf]Setting monitor flag in private structure
5. ############## Configuring the NGINX Webserver ##############
wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power -789914606
wilc_sdio mmc1:0001:1 wlan0: INFO [del_station]Deleting station
wilc_sdio mmc1:0001:1 wlan0: INFO [del_station]All associated stations
wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_del_allstation]NO ASSOCIATED STAS
start_ap,dev[wlan0]
wilc_sdio mmc1:0001:1 wlan0: INFO [start_ap]Starting ap
wilc_sdio mmc1:0001:1 wlan0: INFO [start_ap]Interval= 100
 DTIM period= 2
 Head length= 66 Taillength= 9 channelnum[7]
6.############## Starting the DHCP server ##############
./Start_AP.sh: line 73: dhcpd: command not found
7.############## Starting the WEB scoket deamon ##############
Now, The device comes up as an Access Point(AP) and host a webpage to provision
WiFi station interface
\n
Use a Phone/Laptop and connect to the 'wilc1000_SoftAP' WiFi AP
Using the web browser open http://192.168.1.1
---------------------------------------------------
---------------------------------------------------

Hi @huntc,
Could you please confirm which build-system based image you are using. Just FYI, in Yocto Project based image for sama5d27-wlsom1-ek-sd support for Start_AP.sh is yet to be added one has to follow the steps manually mentioned here https://www.linux4sam.org/bin/view/Linux4SAM/WilcFaq, whereas in Buildrooot based image it is there.

huntc commented

Thanks for replying. We’ve since moved on to build root and have an image that now works for us. I’ll close out this issue.