logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.
0
Hi,

I start working with IGEPv2-RF60 board and Wilink8 WiFi module.
To get some reference usage with Wilink8 WiFi, i tried to execute some WiFi commands on the default IGEPv2 Yocto firmware delivered with IGEPv2-RF60 boards.

Could you help me with commenting on the following behaviors i observe please?

First in boot logs, il observe that Wilink8 modules are correctly loaded:
...
[ 16.002624] cfg80211: Calling CRDA to update world regulatory domain
[ 16.303619] wlcore: wl18xx driver version:
[ 16.634704] wlcore: wl18xx HW: RDL 2, 1857 MIMO, PG 2.2 (ROM 0x11)
[ 16.648712] cfg80211: wext will not work because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface, like iwconfig will not work.
[ 16.663543] wlcore: loaded
[ 16.666412] wlcore: driver version:
[ 16.670135] wlcore: timestamp: Thu Apr 16 16:36:20 2015
...

even it is mentionned that tools using iwconfig command will not work...
(i asked in the following forum how to configure wext tools: https://www.isee.biz/support/config_wireless_ext-activation-using-wilink8-with-igepv2-rf60)

With ifconfig command, wlan0 section is not listed. The "iwconfig wlan0" doesn't work too (maybe as expected):
root@igep00x0:~# iwconfig wlan0
wlan0 no wireless extensions.

I tried to up wlan0 interface, which worked:
root@igep00x0:~# ifconfig wlan0 up
root@igep00x0:~#

And in dmesg, I observed that Wilink8 firmware is now loaded:
[ 1957.107269] wlcore: PHY firmware version: Rev 8.2.0.0.168
[ 1957.208709] wlcore: firmware booted (Rev 8.6.0.0.5)

And now, wlan0 section exists with ifconfig command (even "iwconfig wlan0" command still doesn't work).
From there, how could it be possible to configure the wlan0 interface please (mode ad-hoc, essid, channel, ...)?

I also tried to get down and up again the wlan0 interface, and got the following kernel failure messages:
root@igep00x0:~# ifconfig wlan0 down
root@igep00x0:~# ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: Invalid argument
root@igep00x0:~# dmesg
...
[ 1957.107269] wlcore: PHY firmware version: Rev 8.2.0.0.168
[ 1957.208709] wlcore: firmware booted (Rev 8.6.0.0.5)
[ 2227.409759] wlcore: down
[ 2238.897094] wlcore: ERROR timeout waiting for the hardware to complete initialization
[ 2241.419647] wlcore: ERROR timeout waiting for the hardware to complete initialization
[ 2243.993591] wlcore: ERROR timeout waiting for the hardware to complete initialization
[ 2244.002532] wlcore: ERROR firmware boot failed despite 3 retries

Could you help me on these different behaviors please, would it be expected or new problems, and how to configure the wlan0 interface to work please?
(i attach the different reference configuration files and commands i have from a setup on a IGEPv2-RC61 board).

Thanks in advance for your help.

Best Regards,
Simon

Accepted Answer

egavinc
egavinc
Offline
Tuesday, February 09 2016, 11:50 AM - #permalink
0
Hello Simon, You can check the wlan0 with:

# ifconfig wlan0 up
[ 3034.150970] wlcore: PHY firmware version: Rev 8.2.0.0.168
[ 3034.260040] wlcore: firmware booted (Rev 8.6.0.0.5)

# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr DE:AD:BE:EF:00:00
inet addr:192.168.2.244 Bcast:192.168.2.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 (0.0 B) TX bytes:0 (0.0 B)

# ifconfig wlan0 down
[ 3122.910247] wlcore: down

Reset the wilink8 module is needed and up the wlan0 again

root@igep00x0:/# echo 0 > /sys/class/gpio/gpio139/value
root@igep00x0:/# echo 1 > /sys/class/gpio/gpio139/value
root@igep00x0:/# ifconfig wlan0 up
[ 3195.479431] wlcore: PHY firmware version: Rev 8.2.0.0.168
[ 3195.603027] wlcore: firmware booted (Rev 8.6.0.0.5)

Best Regards
Eduard Gavin
The reply is currently minimized Show
Responses (4)
  • Accepted Answer

    Wednesday, February 10 2016, 04:54 PM - #permalink
    0
    Hello Eduard,

    I tested these commands to get the wlan0 interface up again, and this sequence works well to reset wilink8 module and loading again the firmware.

    Thanks a lot for this help.

    Best Regards,
    Simon
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 18 2016, 01:38 PM - #permalink
    0
    Hello Eduard,

    I face some issues of athentication and crashes using Wilink8 module.
    First, i would like to check why firmware revision is different on these two lines please:
    [ 3195.479431] wlcore: PHY firmware version: Rev 8.2.0.0.168
    [ 3195.603027] wlcore: firmware booted (Rev 8.6.0.0.5)

    Concerning crash, i attach corresponding dmesg log if you could have an analysis please, but maybe this would concerns an another discussion.
    Would you think that getting newer driver/firmware versions of Wilink8 could help? If yes, could you provide me these latest versions please?

    Thanks for your help,
    Simon
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 25 2016, 02:05 PM - #permalink
    0
    Hello Eduard,

    As there are authentication failures during connection on WiFi AP configured by hostapd, i would also like to test latest version of hostapd from TI Wilink8 releases:
    https://git.ti.com/wilink8-wlan/hostap/trees/master

    I tried to cross-compile it for IGEPv2 but encountered some issues on which i would like you to help me please.
    Here is the command i executed:
    source /opt/poky/1.2/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi
    cd wilink8-wlan-hostap/hostapd
    cp defconfig .config
    copy libnl3 includes files into wilink8-wlan-hostap/hostapd/include/libnl3
    edit wilink8-wlan-hostap/hostapd/Makefile and add this line: CFLAGS += -Iinclude/libnl3/
    make

    And i have this error:
    /opt/poky/1.2.2/sysroots/i686-pokysdk-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.6.4/ld: cannot find -lnl

    Could you help to cross-compile last version of hostapd please?
    Thanks a lot for your help or any response please, i really struggle with making Wilink8 WiFi works and need help.

    Best Regards,
    Simon
    The reply is currently minimized Show
  • Accepted Answer

    Friday, May 27 2016, 04:25 PM - #permalink
    0
    Hello Eduard,

    I finally managed to cross-compile hostapd. I solved the previous error with cross-compiling libnl previously and pointing on installed libnl.a.
    Following testing the generated hostapd binary, i observed that it worked differently than the hostapd binary you sent me, and i am not really confident on the binary i generated.

    Could you help me to know how you cross-compile hostapd please? Do you use specific hostapd version? Do you use Yocto framework?
    I would also like test the following patch, as i found it adviced in some google searches:
    patch consists in commenting these lines in src/ap/ieee802_11.c file
    if (!ok) {
    hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211,
    HOSTAPD_LEVEL_NOTICE,
    "did not acknowledge authentication response");
    //return;
    }

    if (!ok) {
    hostapd_logger(hapd, mgmt->da, HOSTAPD_MODULE_IEEE80211,
    HOSTAPD_LEVEL_DEBUG,
    "did not acknowledge association response");
    //return;
    }

    I tried it with the hostapd cross-compiled from my method but it didn't help.
    Would you think this patch could help? I think in trying it as wifi connexion fails during authentication or association procedures.
    I attach a log from hostapd with -dd option, if it could help to check these failures.

    Thanks in advance for your help.

    Best Regards,
    Simon
    Attachments:
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat