When I was working with 3.X kernel versions, integrating WiFi USB Adapter was straightforward. I'm facing issues setting up WiFi with 4.4.54-ti-r93
I tried to restart and this did not work. I see the below when I do iwconfig
Bus 001 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Here is lsmod output
Module Size Used by
ft6236 6004 0
fb_ili9341 3929 2
fbtft_device 39391 0
fbtft 37977 2 fb_ili9341,fbtft_device
arc4 2211 2
rtl8192cu 64049 0
rtl_usb 11220 1 rtl8192cu
rtl8192c_common 47080 1 rtl8192cu
rtlwifi 68709 3 rtl_usb,rtl8192c_common,rtl8192cu
omap_sham 26513 0
omap_aes_driver 23912 0
mac80211 626271 3 rtl_usb,rtlwifi,rtl8192cu
omap_rng 5544 0
rng_core 9066 1 omap_rng
joydev 10372 0
spi_omap2_mcspi 12952 0
evdev 13511 3
uio_pdrv_genirq 3923 0
uio 10524 1 uio_pdrv_genirq
8021q 23043 0
garp 7049 1 8021q
mrp 8967 1 8021q
stp 2430 1 garp
llc 5903 2 stp,garp
usb_f_mass_storage 49849 2
usb_f_acm 8361 2
u_serial 13753 3 usb_f_acm
usb_f_ecm 11064 2
usb_f_rndis 25865 2
u_ether 14349 2 usb_f_ecm,usb_f_rndis
libcomposite 53618 16 usb_f_acm,usb_f_ecm,usb_f_rndis,usb_f_mass_storage
cfg80211 532333 2 mac80211,rtlwifi
rfkill 21386 4 cfg80211
spidev 8860 0
tieqep 9981 0
pwm_tiehrpwm 5883 0
pru_rproc 15431 2
pruss_intc 8603 1 pru_rproc
pruss 12026 1 pru_rproc
Here is the /boot/uEnv.txt
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=4.4.54-ti-r93
#uuid=
#dtb=
##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)
##BeagleBone Black: HDMI (Audio/Video) disabled:
dtb=am335x-boneblack-emmc-overlay.dtb
##BeagleBone Black: eMMC disabled:
#dtb=am335x-boneblack-hdmi-overlay.dtb
##BeagleBone Black: HDMI Audio/eMMC disabled:
#dtb=am335x-boneblack-nhdmi-overlay.dtb
##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:
#dtb=am335x-boneblack-overlay.dtb
##BeagleBone Black: wl1835
#dtb=am335x-boneblack-wl1835mod.dtb
##BeagleBone Green: eMMC disabled
#dtb=am335x-bonegreen-overlay.dtb
###U-Boot Overlays###
###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
#enable_uboot_overlays=1
###Overide capes with eeprom
#uboot_overlay_addr0=/lib/firmware/<file0>.dtbo
#uboot_overlay_addr1=/lib/firmware/<file1>.dtbo
#uboot_overlay_addr2=/lib/firmware/<file2>.dtbo
#uboot_overlay_addr3=/lib/firmware/<file3>.dtbo
###Custom Cape
#dtb_overlay=/lib/firmware/<file4>.dtbo
###Disable auto loading of virtual capes (emmc/video/wireless)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
###Cape Universal Enable
#enable_uboot_cape_universal=1
###U-Boot fdt tweaks...
#uboot_fdt_buffer=0x60000
###U-Boot Overlays###
cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable
#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable video=HDMI-A-1:1024x768@60e
##Example v3.8.x
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=
##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0,BB-I2C1-Touch,BB-UART4
cape_disable=bone_capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
####cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
#uuid=dd4673d1-eeda-4dea-82ea-1a0233046486
###cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
##cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.shI tried to do this wpa_supplicant
I created a file wpa_supplicant.conf in /etc/wpa_supplicant with the following code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
Then I executed this command,
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: Failed to initialize driver interface
Then I read that nl80211 might not work with old adapters. So I tried with wext
wpa_supplicant -B -i wlan0 -D -wext -c /etc/wpa_supplicant/wpa_supplicant.conf
I get the following errors
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ctrl_iface exists and seems to be in use - cannot override it
Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Then I tried to make wpa_supplicant do everything. I modified the /etc/network/interfaces file as follows
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
My /etc/wpa_supplicant/wpa_supplicant.conf as follows
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="my_ESSID"
psk="my_Pass"
scan_ssid=1
}
I get the following log when I do sudo systemctl status networking.service
Mar 15 18:53:12 beaglebone wpa_supplicant[844]: Successfully initialized wpa_supplicant
Mar 15 18:53:14 beaglebone wpa_supplicant[844]: Could not read interface wlan0 flags: No such device
Mar 15 18:53:14 beaglebone wpa_supplicant[844]: nl80211: Driver does not support authentication/association or connect commands
Mar 15 18:53:14 beaglebone ifup[667]: /etc/network/if-pre-up.d/wpasupplicant: 120: /etc/network/if-pre-up.d/wpasupplicant: cannot cr
Mar 15 18:53:14 beaglebone ifup[667]: run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Mar 15 18:53:14 beaglebone ifup[667]: Failed to bring up wlan0.
Mar 15 18:53:23 beaglebone systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 18:53:23 beaglebone systemd[1]: Failed to start Raise network interfaces.
Mar 15 18:53:23 beaglebone systemd[1]: networking.service: Unit entered failed state.
Mar 15 18:53:23 beaglebone systemd[1]: networking.service: Failed with result 'exit-code'
I feel I've run out of options. What else can I do? Am I missing something trivial here? I want to avoid kernel upgrade/downgrade.
Thanks for your help.