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.

Incorrect wl18xx-conf.bin file size with mainline kernel 4.1

Other Parts Discussed in Thread: WL1835, WL1835MOD

Hello,

Host platform: Altera Cyclone V with ARM A9.

OS: Poky Linux with kernel 4.1 (built-in wl18xx drivers).

Module: TI WL1835 / 1837

Firmware: FRev 8.9.0.0.48, Rev 8.2.0.0.232

I'm using the 4.1 mainline kernel with built-in driver for wl18xx. Firmware is built from git://git.ti.com/wilink8-wlan/wl18xx_fw.git, branch 'ap_dfs'. After generating the wl18xx-conf.bin, I get the following error:

[    9.571368] wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2
[    9.575138] wlcore: ERROR configuration binary file size is wrong, expected 1226 got 1229


After reading the other posts regarding this subject, I assume I am not using matching firmware/drivers, but I am unable to determine the correct version, nor do I know how to build a different driver version into the kernel.

Please advise how to select the correct driver version.

Best,

Tobias

  • Hi Tobias,

    Please use the wlconf utility from git://git.ti.com/wilink8-wlan/18xx-ti-utils.git (git tag: "R8.6").

    Regards,
    Gigi Joseph.
  • Hi Gigi Joseph,

    When I do 'git checkout -b myR8.6 R8.6', wl18xx-conf-default.bin still has 1229 bytes. I reran the configure-device.sh script, but the generated wl18xx-conf.bin file also has 1229 bytes.

    Can you point me to the correct release/tag of the wlconf script and the wl18xx-conf-default.bin file?

    Best,
    Tobias
  • Hi Tobias,

    Apologies! Can you please try the R8.5 git tag?

    Regards.
    Gigi Joseph.
  • When I try tag R8.5, I get the following messages:
    /usr/bin/wlconf# ./configure-device.sh wl1835
    Device is capable of supporting 2 antenna in 2.4Ghz band
    how many antennae are fitted? [1/2] : 2
    rmmod: ERROR: Module wlcore_sdio is builtin.
    A wl18xx-conf.bin file already exists, do you want to modify it (y) or generate a clean one from .ini (n)
    modify it? [y/n] : n
    Create clean wl18xx-conf.bin from official_inis/WL1835MOD_INI.ini
    Couldn't get file size 'wl18xx-conf-default.bin'
    incompatible binary file
    expected 0x10e100ca 0x00060007
    got 0x10e100ca 0x00070007
    incompatible binary file
    expected 0x10e100ca 0x00060007
    got 0x10e100ca 0x00070007
    incompatible binary file
    expected 0x10e100ca 0x00060007
    got 0x10e100ca 0x00070007
    incompatible binary file
    expected 0x10e100ca 0x00060007
    got 0x10e100ca 0x00070007
    incompatible binary file
    expected 0x10e100ca 0x00060007
    got 0x10e100ca 0x00070007


    The file size of the wl18xx-conf-default.bin is 1226 as it is expected from the firmware. I don't understand the rest of the error messages.

    # EDIT #

    When I copy wl18xx-conf-default.bin to /lib/firmware/ti-connectivity/wl18xx-conf.bin, the firmware is loaded. The configure-device.sh script still complains that it can't get the file size, but it does not give the error messages any more.

    Best, Tobias

  • Hi Tobias,

    Can you try building the wlconf with your setup-env and see if the problem is gone?

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    I'm using bitbake (recipe from `meta-arago-extras` layer) to build wlconf, I haven't used setup-env. When I do, I get an error message

    .../build-utilites/fs/lib/libnl-3.a(utils.o): In function `nl_prob2int':
    
    .../build-utilites/src/libnl/lib/utils.c:378: undefined reference to `lrint'

    After copying wl18xx-conf-default.bin to /lib/firmware/ti-connectivity/wl18xx-conf.bin, I was able to run wlconf without errors. I think the problem is gone.

    Thanks for your help!