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.

Wilink 1835 cape module not working on Am437x GPEVM for Android Kitkat

Hello All,

Working on a porting effort to get the Wilink8 ( 1835 mod) working on Am437x GP EVM for Android KK.



The enviroment info:
Host PC - Ubuntu 14.04 LTS
Hardware - AM437x GP EVM  
AOSP version - Kitkat 4.4.4 r2 branch
Linux kernel - 3.12.20 ( rowboat kernel) - has WL18xx support
Android device/ti and hardware/ti folders pulled from RowBoat Jelly Bean(437xevm) for Kitkat build

We have 2 issues

1) First problem we dont see the Wpa_supplicant launching from Android while tapping the WIFI tab in settings window. Any clue on why this is not working would be very helpful..

2) Next we tried for running the with the older wpa_supplicant from TI which was part of JB 4.2.2 Am335x Release. But wlan doesnt seem to scan for the AP's. Also we are not able run iwconfig and iwlist commands. The reason to fallback to the old version of the supplicant is the stock supplicant from 4.4.4_r2 doesn’t work.

All the logs given are given below for better understanding of the tries so far..

In our setup, Wilink8 driver is built as modules and insmoded using the script.

130|root@am437xevm:/ # lsmod
Module                  Size  Used by
wl18xx                 81032  0
wlcore_sdio             4233  0
wlcore                166157  1 wl18xx
mac80211              255513  2 wl18xx,wlcore
omaplfb                10904  0
pvrsrvkm              179575  57 omaplfb
cfg80211              164600  3 mac80211,wl18xx,wlcore

Dmesg logs from wlcore:
shell@am437xevm:/ $ [    8.488429] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[    8.501678] wlcore: loaded
[    8.504604] wlcore: driver version: ol_r8.a8.10
[    8.509638] wlcore: compilation time: Tue Aug 26 16:28:54 2014


root@am437xevm:/ # netcfg
wlan0    DOWN                                   0.0.0.0/0   0x00001002 84:dd:20:75:d7:7c
eth0     UP                                     0.0.0.0/0   0x00001003 34:b1:f7:31:53:dc
lo       UP                                   127.0.0.1/8   0x00000049 00:00:00:00:00:00

root@am437xevm:/ # netcfg wlan0 up
[   87.462319] wlcore: PHY firmware version: Rev 8.2.0.0.195
[   87.560772] wlcore: firmware booted (Rev 8.8.0.0.13)


root@am437xevm:/ # netcfg
wlan0    UP                                     0.0.0.0/0   0x00001003 84:dd:20:75:d7:7c
eth0     UP                                     0.0.0.0/0   0x00001003 34:b1:f7:31:53:dc
lo       UP                                   127.0.0.1/8   0x00000049 00:00:00:00:00:00



from ADB shell execute:
wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd -B  command
 
----------------------------------------------------
D/wpa_supplicant( 6442): wpa_supplicant v2.0-devel-
D/wpa_supplicant( 6442): random: Trying to read entropy from /dev/random
I/wpa_supplicant( 6442): Successfully initialized wpa_supplicant
D/wpa_supplicant( 6442): Initializing interface 'wlan0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridg'
D/wpa_supplicant( 6442): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 6442): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 6442): update_config=1
D/wpa_supplicant( 6442): ctrl_interface='/data/misc/wifi/wpa_supplicant'
D/wpa_supplicant( 6442): eapol_version=1
D/wpa_supplicant( 6442): ap_scan=1
D/wpa_supplicant( 6442): fast_reauth=1
D/wpa_supplicant( 6442): nl80211: interface wlan0 in phy phy0
I/wpa_supplicant( 6442): rfkill: Cannot open RFKILL control device
D/wpa_supplicant( 6442): nl80211: RFKILL status not available
D/wpa_supplicant( 6442): nl80211: Set mode ifindex 3 iftype 2 (STATION)
D/wpa_supplicant( 6442): nl80211: Subscribe to mgmt frames with non-AP handle 0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=2): 04 0a
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=2): 04 0b
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=2): 04 0c
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=2): 04 0d
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=1): 06
D/wpa_supplicant( 6442): nl80211: Register frame type=0xd0 nl_handle=0xb8537208
D/wpa_supplicant( 6442): nl80211: Register frame match - hexdump(len=2): 0a 07
D/wpa_supplicant( 6442): netlink: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 6442): nl80211: Using driver-based off-channel TX
D/wpa_supplicant( 6442): nl80211: Supports Probe Response offload in AP mode
D/wpa_supplicant( 6442): nl80211: driver param='(null)'
D/wpa_supplicant( 6442): nl80211: Regulatory information - country=00
D/wpa_supplicant( 6442): nl80211: 2402-2472 @ 40 MHz
D/wpa_supplicant( 6442): nl80211: 2457-2482 @ 40 MHz
D/wpa_supplicant( 6442): nl80211: 2474-2494 @ 20 MHz
D/wpa_supplicant( 6442): nl80211: 5170-5250 @ 80 MHz
D/wpa_supplica[  137.440719] init: untracked pid 6582 exited
nt( 6442): nl80211: 5735-5835 @ 80 MHz
D/wpa_supplicant( 6442): nl80211: 57240-63720 @ 2160 MHz
D/wpa_supplicant( 6442): nl80211: Added 802.11b mode based on 802.11g information
D/wpa_supplicant( 6442): wlan0: Own MAC address: 88:33:14:16:45:31
D/wpa_supplicant( 6442): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 6442): wpa_driver_nl80211_set_key: ifindex[  137.482086] init: untracked pid 6507 exited
=3 alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 6442): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 6442): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 6442): wlan0: RSN: flushing PMKID list in the driver
D/wpa_supplicant( 6442): nl80211: Flush PMKIDs
D/wpa_supplicant( 6442): wlan0: State: DISCONNECTED -> INACTIVE
D/wpa_supplicant( 6442): WPS: Set UUID for interface wlan0
D/wpa_supplicant( 6442): WPS: [  137.537071] init: untracked pid 6571 exited
UUID based on MAC address - hexdump(len=16): 48 d3 4a d8 e3 39 5b 11 a2 ad d4 66 01 67 b7 da
D/wpa_supplicant( 6442): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 6442): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 6442): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 6442): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 6442): EAP: EAP entering state DISABLED
D/wpa_supplicant( 6442): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 6442): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 6442): Using existing control interface directory.
D/wpa_supplicant( 6442): ctrl_iface bind(PF_UNIX) failed: Address already in use
D/wpa_supplicant( 6442): ctrl_iface exists, but does not allow conne[  137.615592] init: untracked pid 6612 exited
ctions - assuming it was leftover from forced program termination
D/wpa_supplicant( 6442): Successfully replaced leftover ctrl_iface socket '/data/misc/wifi/wpa_supplicant/wlan0'
D/wpa_supplicant( 6442): Disable P2P on wlan0
D/wpa_supplicant( 6442): wlan0: Added interface wlan0
D/wpa_supplicant( 6442): wlan0: State: INACTIVE -> DISCONNECTED
D/wpa_supplicant( 6442): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 6442): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 6442): Daemonize..
D/wpa_supplicant( 6443): random: Got 20/20 bytes from /dev/random
D/wpa_supplicant( 6443): EAPOL: disable timer tick
D/wpa_supplicant( 6443): EAPOL: Supplicant port status: Unauthorized

Need to know more on the rfkill error messages, and its dependency for the wifi to work and how to fix this.

root@am437xevm:/ # netcfg
wlan0    UP                                     0.0.0.0/0   0x00001003 84:dd:20:75:d7:7c
eth0     UP                                     0.0.0.0/0   0x00001003 34:b1:f7:31:53:dc
lo       UP                                   127.0.0.1/8   0x00000049 00:00:00:00:00:00

3) Third approach with modified conf file from TI SDK release, still the same result.

130|root@am437xevm:/ # logcat | grep wpa                                       
D/wpa_supplicant( 2754): wpa_supplicant v2.0-devel-
D/wpa_supplicant( 2754): random: Trying to read entropy from /dev/random
I/wpa_supplicant( 2754): Successfully initialized wpa_supplicant
D/wpa_supplicant( 2754): Initializing interface 'wlan0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridg'
D/wpa_supplicant( 2754): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 2754): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 2754): ctrl_interface='/data/misc/wifi/wpa_supplicant'
D/wpa_supplicant( 2754): driver_param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
D/wpa_supplicant( 2754): update_config=1
D/wpa_supplicant( 2754): device_name='Blaze'
D/wpa_supplicant( 2754): manufacturer='TI'
D/wpa_supplicant( 2754): model_name='Wilink'
D/wpa_supplicant( 2754): model_number='wl18xx'
D/wpa_supplicant( 2754): serial_number='12345'
D/wpa_supplicant( 2754): p2p_go_ht40=1
D/wpa_supplicant( 2754): p2p_disabled=1
D/wpa_supplicant( 2754): p2p_multi_chan=1
D/wpa_supplicant( 2754): disassoc_low_ack=1
D/wpa_supplicant( 2754): p2p_go_max_inactivity=60
D/wpa_supplicant( 2754): concurrent_sched_scan=1
D/wpa_supplicant( 2754): Line: 18 - start of a new network block
D/wpa_supplicant( 2754): ssid - hexdump(len=6): 52 65 69 7a 65 72
D/wpa_supplicant( 2754): key_mgmt: 0x4
D/wpa_supplicant( 2754): auth_alg: 0x1
D/wpa_supplicant( 2754): Priority group 0
D/wpa_supplicant( 2754):    id=0 ssid='Reizer'
D/wpa_supplicant( 2754): nl80211: interface wlan0 in phy phy0
I/wpa_supplicant( 2754): rfkill: Cannot open RFKILL control device
D/wpa_supplicant( 2754): nl80211: RFKILL status not available
D/wpa_supplicant( 2754): nl80211: Set mode ifindex 3 iftype 2 (STATION)
D/wpa_supplicant( 2754): nl80211: Subscribe to mgmt frames with non-AP handle 0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=2): 04 0a
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=2): 04 0b
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=2): 04 0c
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=2): 04 0d
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=1): 06
D/wpa_supplicant( 2754): nl80211: Register frame type=0xd0 nl_handle=0xb71d5208
D/wpa_supplicant( 2754): nl80211: Register frame match - hexdump(len=2): 0a 07
D/wpa_supplicant( 2754): netlink: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 2754): nl80211: Using driver-based off-channel TX
D/wpa_supplicant( 2754): nl80211: Supports Probe Response offload in AP mode
D/wpa_supplicant( 2754): nl80211: driver param='use_multi_chan_concurrent=1 use_p2p_group_interface=1'
D/wpa_supplicant( 2754): nl80211: Use separate P2P group interface
D/wpa_supplicant( 2754): nl80211: Use Multi channel concurrency
D/wpa_supplicant( 2754): nl80211: Regulatory information - country=00
D/wpa_supplicant( 2754): nl80211: 2402-2472 @ 40 MHz
D/wpa_supplicant( 2754): nl80211: 2457-2482 @ 40 MHz
D/wpa_supplicant( 2754): nl80211: 2474-2494 @ 20 MHz
D/wpa_supplicant( 2754): nl80211: 5170-5250 @ 80 MHz
D/wpa_supplicant( 2754): nl80211: 5735-5835 @ 80 MHz
D/wpa_supplicant( 2754): nl80211: 57240-63720 @ 2160 MHz
D/wpa_supplicant( 2754): nl80211: Added 802.11b mode based on 802.11g information
D/wpa_supplicant( 2754): wlan0: Own MAC address: 00:d2:8b:43:9f:fd
D/wpa_supplicant( 2754): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 2754): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 2754): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 2754): wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 2754): wlan0: RSN: flushing PMKID list in the driver
D/wpa_supplicant( 2754): nl80211: Flush PMKIDs
D/wpa_supplicant( 2754): WPS: Set UUID for interface wlan0
D/wpa_supplicant( 2754): WPS: UUID based on MAC address - hexdump(len=16): e6 37 19 9e 4e 5e 54 e7 94 9e 71 68 ed cd fa b1
D/wpa_supplicant( 2754): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 2754): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 2754): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 2754): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 2754): EAP: EAP entering state DISABLED
D/wpa_supplicant( 2754): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 2754): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 2754): Using existing control interface directory.
D/wpa_supplicant( 2754): ctrl_iface bind(PF_UNIX) failed: Address already in use
D/wpa_supplicant( 2754): ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination
D/wpa_supplicant( 2754): Successfully replaced leftover ctrl_iface socket '/data/misc/wifi/wpa_supplicant/wlan0'
D/wpa_supplicant( 2754): Disable P2P on wlan0
D/wpa_supplicant( 2754): wlan0: Added interface wlan0
D/wpa_supplicant( 2754): wlan0: State: DISCONNECTED -> DISCONNECTED
D/wpa_supplicant( 2754): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 2754): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 2754): Daemonize..
D/wpa_supplicant( 2756): random: Got 19/20 bytes from /dev/random
D/wpa_supplicant( 2756): wlan0: Starting delayed sched scan
D/wpa_supplicant( 2756): wlan0: add to filter ssid: Reizer
D/wpa_supplicant( 2756): wlan0: Starting sched scan:  short interval 5 long_interval 30 num_short_intervals 10
D/wpa_supplicant( 2756): nl80211: Sched scan filter SSID - hexdump(len=6): 52 65 69 7a 65 72
D/wpa_supplicant( 2756): nl80211: Sched scan SSID - hexdump(len=0): [NULL]
D/wpa_supplicant( 2756): nl80211: Sched scan requested (ret=0) intervals: short=5000 ms long=30000 ms num_short_intervals=10
D/wpa_supplicant( 2756): nl80211: Event message available
D/wpa_supplicant( 2756): nl80211: Sched scan started
D/wpa_supplicant( 2756): EAPOL: disable timer tick
D/wpa_supplicant( 2756): EAPOL: Supplicant port status: Unauthorized

4) Snippet of other commands executed:

root@am437xevm:/ # iwlist wlan0 scanning                                      
wlan0     Interface doesn't support scanning.

root@am437xevm:/ # iwconfig wlan0 ap auto                                     
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device wlan0 ; Operation not supported on transport endpoint.


130|root@am437xevm:/ # iwconfig wlan0 mode managed                            
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Operation not supported on transport endpoint.

Configuration files under Kitkat FS


Board_config.mk file:
# wifi configs
BOARD_WPA_SUPPLICANT_DRIVER      := NL80211
BOARD_HOSTAPD_DRIVER             := NL80211
WPA_SUPPLICANT_VERSION           := VER_0_8_X_TI
BOARD_WLAN_DEVICE                := wl12xx_mac80211
BOARD_SOFTAP_DEVICE              := wl12xx_mac80211
WIFI_DRIVER_MODULE_PATH          := "/system/lib/modules/wlcore_sdio.ko"
WIFI_DRIVER_MODULE_NAME          := "wlcore_sdio"

#init.am.rc file


# wi-fi
    #mkdir /data/misc/wifi/sockets 0770 wifi wifi
    #mkdir /data/misc/dhcp 0770 dhcp dhcp
    mkdir /system/etc/wifi 0777 wifi wifi
    chmod 0777 /system/etc/wifi
    chmod 0777 /system/etc/wifi/wpa_supplicant.conf
    chown wifi wifi /system/etc/wifi/wpa_supplicant.conf
    mkdir /data/misc/wifi 0777 wifi wifi
    mkdir /data/misc/wifi/sockets 0777 wifi wifi
    chmod 0777 /data/misc/wifi
    chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
    chown wifi wifi /data/misc/wifi
    chmod 0666 /data/misc/wifi/wpa_supplicant.conf
    mkdir /data/misc/dhcp 0770 dhcp dhcp
    chown dhcp dhcp /data/misc/dhcp
    insmod /system/lib/modules/cfg80211.ko
    insmod /system/lib/modules/mac80211.ko
    insmod /system/lib/modules/wlcore.ko
    insmod /system/lib/modules/wlcore_sdio.ko
    insmod /system/lib/modules/wl18xx.ko

#service p2p_supplicant /system/bin/wpa_supplicant \
#    -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
#    -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
#    -puse_p2p_group_interface=1
#    class main
#    socket wpa_wlan0 dgram 660 wifi wifi
#    disabled
#    oneshot

#service wpa_supplicant /system/bin/wpa_supplicant \
#        -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
#    -e/data/misc/wifi/entropy.bin
#    class main
#        socket wpa_wlan0 dgram 660 wifi wifi
#        disabled
#        oneshot

service p2p_supplicant /system/bin/wpa_supplicant \
    -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
    -I/system/etc/wifi/wpa_supplicant_overlay.conf \
    -O/data/misc/wifi/sockets -N \
    -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
    -I/system/etc/wifi/p2p_supplicant_overlay.conf \
    -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
    -g@android:wpa_wlan0
    # we will start as root and wpa_supplicant will switch to user wifi
    # after setting up the capabilities required for WEXT
    # user wifi
    # group wifi inet keystore
    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot

service wpa_supplicant /system/bin/wpa_supplicant \
    -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
    #-I/system/etc/wifi/wpa_supplicant_overlay.conf \
        #-O/data/misc/wifi/sockets \
    -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
    # we will start as root and wpa_supplicant will switch to user wifi
    # after setting up the capabilities required for WEXT
    # user wifi
    # group wifi inet keystore
    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot

service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
    class latestart
        disabled
        oneshot

service iprenew_wlan0 /system/bin/dhcpcd -n
    class latestart
    disabled
    oneshot

service dhcpcd_p2p /system/bin/dhcpcd -aABKL
        class main
        disabled
        oneshot

service iprenew_p2p /system/bin/dhcpcd -n
        class main
       disabled
        oneshot

service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf
    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot


Any help on solving the problem would be greatly appreciated.

  • Moving this to the Android forum.

  • Hi, Som


    I have an questions hoping you can give us some help.

    Does your Android for AM437X support SGX for graphics accelerations?

    If yes, can you tell me how to get the binaries for sgx?

    I download the sgx from rowboat, but after build is done, starting the os,

    I got the error about sgx showed below:
    W/libEGL  ( 1891): eglInitialize(0x1) failed (EGL_BAD_ALLOC)
    E/HAL     ( 1891): load: module=/system/lib/hw/gralloc.omap3.so
    E/HAL     ( 1891): dlopen failed: cannot locate symbol "_ZNK7android9CallStack4dumpEPKc" referenced by "gralloc.omap3.so"...
    E/SurfaceFlinger( 1891): gralloc module not found
    E/SurfaceFlinger( 1891): hwcomposer module not found
    E/SurfaceFlinger( 1891): ERROR: failed to open framebuffer (Invalid argument), aborting
    F/libc    ( 1891): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1892 (SurfaceFlinger)
    I/DEBUG   ( 1123): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

    Can you give me some help?

  • Hello,

    Yes, we do have the support for the SGX in our android image. We are using the prebuilts provided by rowboat and it does work for us.

    For your CallStack bug, apply the patch attached and this should take care of the problem.

    Apply CallStack-changes.patch inside /system/core/

    Apply workaround.patch inside /frameworks/native

    Also make sure to build the SGX in debug mode given below:

    make TARGET_PRODUCT=am437xevm  OMAPES=9.x BUILD=debug

    After the build is complet, Run the below to install the SGX binaries

    In hardware/ti/sgx folder
    ----------------------------
    make TARGET_PRODUCT=am437xevm  OMAPES=9.x BUILD=debug install

    Hope this helps fix your issue.

    0550.patch.tar.gz