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.

How can I compile wl18xx.ko file for TI_Android_JB_4.2.2_DevKit_4.1.1 SDK ?

Other Parts Discussed in Thread: WL1831I use JORJIN wg7831-D0 wifi module (which includes TI WL1831 soc) in my custom am335x based board. I use TI_Android_JB_4.2.2_DevKit_4.1.1 SDK. I've found some existing kernel module files (compat.ko, mac80211.ko, wl12xx.ko etc) built for wl12xx wireless adapters in file system under "/system/lib/modules" directory. These prebuilt .ko files created by using Makefile under "/kernel/hardware/ti/wlan/mac80211/compat_wl12xx" directory in kernel. How can I make similar job to build .ko files for wl18xx modules using Makefile under "/kernel/hardware/ti/wlan/mac80211/compat_wl18xx" directory? How should I set environment variables for TI_Android_JB_4.2.2_DevKit_4.1.1 to run Makefile without an error? Regards Mehmet Rıza ÖZ
  • Hi,

    I additionally get the following error logs when I run the makefile under "/kernel/hardware/ti/wlan/mac80211/compat_wl12xx" directory in kernel.

    mehmet@kickoff:~/mydroid/hardware/ti/wlan/mac80211/compat_wl12xx$ make
    /home/mehmet/mydroid/hardware/ti/wlan/mac80211/compat_wl12xx/config.mk:256: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
    make -j1 -C /kernel M=/home/mehmet/mydroid/hardware/ti/wlan/mac80211/compat_wl12xx modules
    make: *** /kernel: No such file or directory. Stop.
    make: *** [modules] Error 2

    What corrections should I make?
    Regards

    Mehmet Rıza ÖZ
  • Hi,

    I additionally get the following error logs when I run the makefile under "/kernel/hardware/ti/wlan/mac80211/compat_wl12xx" directory in kernel.

    mehmet@kickoff:~/mydroid/hardware/ti/wlan/mac80211/compat_wl12xx$ make

    /home/mehmet/mydroid/hardware/ti/wlan/mac80211/compat_wl12xx/config.mk:256: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."

    make -j1 -C /kernel M=/home/mehmet/mydroid/hardware/ti/wlan/mac80211/compat_wl12xx modules

    make: *** /kernel: No such file or directory.  Stop.

    make: *** [modules] Error 2

    What corrections should I make?

    Regards

    Mehmet Rıza ÖZ

  • I could compile .ko files using following terminal commands sequentially.

    cd  hardware/ti/wlan/mac80211/compat_wl18xx

    make ANDROID_ROOT_DIR=/home/mehmet/mydroid/ CROSS_COMPILE=arm-eabi- ARCH=arm clean

    make ANDROID_ROOT_DIR=/home/mehmet/mydroid/ CROSS_COMPILE=arm-eabi- ARCH=arm

    make ANDROID_ROOT_DIR=/home/mehmet/mydroid/ CROSS_COMPILE=arm-eabi- ARCH=arm install

    compat.ko

    mac80211.ko

    cfg80211.ko

    wl1251.ko

    wl12xx.ko

    wl18xx.ko

    wlcore.ko

    wl1251_spi.ko

    wlcore_spi.ko

    wl1251_sdio.ko

    wlcore_sdio.ko

    files are created under "hardware/ti/wlan/mac80211/compat_wl18xx" directory

    Regards
  • Hi Mehmet,

    Looks like you were able to compile. Thank you for sharing it here.