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/AM5728: USB WiFi not listed as network interface

Part Number: AM5728

Tool/software: Linux

Hi,

I'm trying to use a USB WiFi module (Realtek RTL8188CUS) on the AM572x EVM running Processor SDK with linux kernel 4.4.32. 'lsusb' shows the device being detected, but, however this is not being reflected in the network interfaces.

Output from lsusb - 

Bus 001 Device 005: ID 0846:9043 NetGear, Inc. WNA1000Mv2 802.11bgn [Realtek RTL8188CUS?]

Output from iwconfig 

sit0      no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

I have tried cross-compiling the driver for the AM5728, but 'insmod' returns an 'invalid parameter' error. How do I proceed about rectifying this?

Regards,
Karthik

  • Hi,

    We cannot help with third-party drivers. Please contact Realtek for providing the correct driver.
  • Hi Biser,

    Thanks a lot for clarifying that.

    We don't want to disturb the Processor SDK setup, but the driver sources are already provided by TI inside the PSDK. Can you please suggest the recommended way to "enable" a suppressed driver so that we can include it as part of our build?

    We do not expect support in terms of functionality of the driver, but need help with the recommended method to include a 3rd party driver, whose source is already provided by TI inside the PSDK.

    Regards,
    Karthik
  • Hello Karthik,

    You can include the driver in this way:

    1) Clean.
    make linux_clean

    2) Backup your defconfig file
    cp board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/arch/arm/configs/tisdk_am57xx-evm_defconfig board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/arch/arm/configs/tisdk_am57xx-evm_defconfig.bak

    3) Load default config.
    cd board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am57xx-evm_defconfig

    4) Config in Menuconfig and enable the tristate option for Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter.
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

    Device Drivers ---> [*] Network device support ---> [*] Wireless LAN ---> <M> Realtek rtlwifi family of devices ---> <M> Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter

    5) Replace the old defconfig file with the new one.
    cd ../../
    cp board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/.config board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/arch/arm/configs/tisdk_am57xx-evm_defconfig

    6) Compile and install the dtb, linux and modules.
    make linux
    make linux_install

    7) Compile and install the ti-sgx-ddk-km modules.
    make ti-sgx-ddk-km
    make ti-sgx-ddk-km_install

    8) Copy the needed dtb, kernel and module in a proper places at your SD card.
    sudo scp -r board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/arch/arm/boot/zImage /media/<username>/boot/ /media/<username>/rootfs/boot/
    sudo scp -r board-support/linux-4.4.32+gitAUTOINC+adde2ca9f8-gadde2ca9f8/arch/arm/boot/dts/am57xx-evm-reva3.dtb /media/<username>/boot/ /media/<username>/rootfs/boot/
    sudo scp -r targetNFS/lib/modules/4.4.32-gadde2ca9f8 /media/<username>/rootfs/lib/modules/

    9) Insert the module.
    root@am57xx-evm:~# modprobe rtl8192cu


    Best regards,
    Kemal