This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1831MOD: Wifi and hostapd not response

Part Number: WL1831MOD
Other Parts Discussed in Thread: WL1831,

Tool/software: Linux





When i tryto on the wifi i got error:

mmc0: mmc_power_restore_host: powering up

wl18xx_driver wl18xx.0.auto: Direct firmware load failed with error -2

wl18xx_driver wl18xx.0.auto: Falling back to user helper
wlcore: firmware chunk too long: 1702126383
mmc0: mmc_power_save_host: powering down
mmc0: mmc_power_restore_host: powering up
wlcore: firmware chunk too long: 1702126383
mmc0: mmc_power_save_host: powering down
mmc0: mmc_power_restore_host: powering up
wlcore: firmware chunk too long: 1702126383
mmc0: mmc_power_save_host: powering down

wlcore: ERROR firmware boot failed despite 3 retries


How to solve this.?

  • Can, you provide details of the Kernel, TI SDK and host processor being used?

    Thanks
  • Hi,
    Kernel Version : 3.14.52 (Linux localhost 3.14.52 #25 SMP PREEMPT Thu Jun 1 16:40:05 +0530 2017 armv7l)
    Wi-Fi Chip : WL1831
    Host processor : X86 linux os(ubuntu 12.04 LTS)
    Target Board : IMX6Q sabresd Android Board

    Thanks,
    VInothS,
  • Hi ,
    Are you able to run following commands ?

    cd /usr/share/wl18xx
    ./ap_start.sh

    Saurabh
  • Hi,

    I found my conf file in system/etc/wifi

    Here, I run the script after on the wifi.

    I got some message in screen the "wifi connected true"

    I got some warning when execute dhcpd.conf through the ap_start.sh

    And one more thing i got firmware error when i changed anything in hostapd.conf file after reboot.

    And also i was not configured added wps in the hostapd config.

    I have the doubt.

    Actually, default ctl_interface is "var/run/hostapd"

    But, i fount hostapd in "data/misc/wifi"

    May i replace this path to default path.

    And always, interface is "wlan1" and ctrl_interface is "wlan0" when i change this and reboot i got error.

    Why i am asking this, i want to configure the hostapd.conf file for start the script.

    Thanks,

    VinothS.

  • Hi,

    Log after run the script. wlan0 was enabled. But, i dhcp not executed.

    ripts/ap # ./ap_start.sh
    ap_start.sh
    wpa_supplicant state:
    hostapd state:
    loading driver
    insmod: failed to load /system/lib/modules/wlcore_sdio.ko: File exists
    creating new interface
    setting regulatory domain
    not a valid ISO/IEC 3166-1 alpha2
    Special non-alpha2 usable entries:
    00 World Regulatory domain
    global
    country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
    (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (549init: no such service 'hostapd_bin'
    0 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
    (57240 - 63720 @ 2160), (N/A, 0), (N/A)

    loading hostapd
    enable interface
    wlcore: PHY firmware version: Rev 8.2.0.0.232
    wlcore: firmware booted (Rev 8.9.0.0.48)
    IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    wlan0 Link encap:Ethernet HWaddr 5C:31:3E:E1:39:58
    inet addr:192.168.43.1 Bcast:192.168.43.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 TX bytes:0

    starting dhcp deamon
    ./ap_start.sh[52]: udhcpd: not found




    Thanks & Regards,
    VinothS,
  • Hi ,
    You are running a very old version of WiLink8 driver . I suggest you update to R8.7_SP1 : processors.wiki.ti.com/.../WL18xx_System_Build_Scripts

    check ap_start.sh script and see if udhcpd path is set ok . After running the script you should see wlan1 interface created

    Saurabh
  • Hi

    We are running Android Marshmallow in i.MX6 with WL1831MOD chipset where Wi-Fi device as well as hotspot works, but sometimes we are getting below error and then it never works - strange thing we observed is if we reflash it works and once below error occurs it never works again till reflash. Please help

    WORKING LOG

    init: Starting service 'p2p_supplicant'...
    wlcore: PHY firmware version: Rev 8.2.0.0.232
    wlcore: firmware booted (Rev 8.9.0.0.48)
    IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    wlcore: down
    wlcore: down
    init: Service 'p2p_supplicant' (pid 2102) exited with status 0

    NON-WORKING LOG
    init: Starting service 'p2p_supplicant'...
    wlcore: firmware chunk too long: 1702126383
    wlcore: firmware chunk too long: 1702126383
    wlcore: firmware chunk too long: 1702126383
    wlcore: ERROR firmware boot failed despite 3 retries
    init: Service 'p2p_supplicant' (pid 2163) exited with status 255

    We followed below link and got it working earlier

    Thanks

    AMR

  • HI after booting the board enable the hotspot.

    Check the folder : data/misc/wifi/hostapd.conf. If it present check the parameters.

    If it not present you have to check hostapd/Android.mk

    L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
    L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/misc/wifi/hostapd\"

     

    If it problem same problem came you have to check data/misc/wifi/hostapd.conf this folder

    VinothS


  • Thanks Vinoth for the Quickest reply.

    BTW we are not sure about the scenario of the error, wifi works in the board and after sometime or some number of reboots - it suddenly starts throwing this issue and then onwards it wont work until reflash

    I have below piece of code in the Android.mk and hostapd.conf is available in the board once i start the hotspot
    # Use Android specific directory for control interface sockets
    L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
    L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/hostapd\"

    One more point i would like to give is, during non working time (not just hotspot) both hotspot as well Wi-Fi Device also fails

    hostapd.conf

    root@sabresd_6dq:/ # cat /data/misc/wifi/hostapd.conf
    interface=wlan0
    driver=nl80211
    ctrl_interface=/data/misc/wifi/hostapd
    ssid=MX6AP
    channel=6
    ieee80211n=1
    hw_mode=g
    ignore_broadcast_ssid=0
    wowlan_triggers=any
    wpa=2
    rsn_pairwise=CCMP
    wpa_psk=7ad5cf9ac0340176235463e9500366a4182ff2083ec091aa89596f7669846220
    root@sabresd_6dq:/ #
  • and below error keeps coming once error scenario occurs

    wlcore: firmware chunk too long: 1702126383
    wlcore: firmware chunk too long: 1702126383
    wlcore: firmware chunk too long: 1702126383
    wlcore: ERROR firmware boot failed despite 3 retries
  • Hi,

    please check this is valid directory or not.

    L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/hostapd\"

    hostapd  not present in this directory data/system/hostapd

    So, you have to give the path like that for enable the hostapd

    L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/misc/wifi/hostapd\"

     

    VinothS

     

  • Hi Manoj,

    I got this type of error in many time and many situation.
    Follow my step to fix this to run this command.

    "Hostapd -B data/misc/wifi/hostapd.conf"

    If error is come the problem is hostapd.conf file.
    You will better notice some simple parameter also.
    If you are giving same after like that also it;s gives same error(ex: wowlan_triggers=any).

    Check your source code also for hotspot.
    "system/netd/server/Softapcontroller.cpp"