안녕하세요..
현재 yaffs2로 마운트하여 테스트 중입니다.
아래와 같이 wifi를 setting에서 wifi on을 하면 모듈이 정상적으로 로딩된후
E/WifiHW ( 825): Unable to open connection to supplicant on "/data/system/wpa_supplicant/eth0": No such file or directory
이런 메세지가 나옵니다.
현재 안드로이드 소스에서 wlan0로 되어 있던것을 모두 eth0로 변경한상태입니다.
도움 부탁드립니다.
감사합니다.
init.rc wifi관련 부분입니다.
==> 주로 오드로이드를 많이 참고했습니다. 차이점은 오드로이드의 경우 모듈이 빌트인되어 있는정도 입니다.
=====================================================================================================
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/system/wpa_supplicant 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
setprop wifi.interface eth0
setprop wlan.interface eth0
setprop wlan.driver.status ok
setprop wlan.modpath /system/lib/modules/2.6.29/kernel/drivers/net/wireless/libertas/
setprop wlan.mod1 libertas.ko
setprop wlan.mod2 libertas_sdio.ko
service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant
-Dwext -ieth0 -c/system/etc/wifi/wpa_supplicant.conf -dd
disabled
service dhcpcd /system/bin/dhcpcd -d eth0
disabled
oneshot
group system dhcp
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
=====================================================================================================
libertas: eth0: Marvell WLAN 802.11 adapter ==> 로딩완료 후 메세지
init: event { 'add', '/bus/sdio/drivers/libertas_sdio', 'drivers', '', -1, -1 }
init: no such service 'ifcfg_sd8686'
I/WifiHW ( 825): property_get ok
I/WifiHW ( 825): start wifi_start_supplicant
E/WifiHW ( 825): ensure_config_file_exists
init: starting 'wpa_supplicant'
I/WifiHW ( 825): Wi-Fi is running
I/WifiHW ( 825): wifi_connect_to_supplicant calledinit: event { 'add', '/kernel/uids/1007', 'uids', '', -1, -1 }
I/WifiHW ( 825): Interface directory = /data/system/wpa_supplicant
I/WifiHW ( 825): Interface name = /data/system/wpa_supplicant/eth0
E/WifiHW ( 825): Unable to open connection to supplicant on "/data/system/wpa_supplicant/eth0": No such file or directory
I/WifiHW ( 825): wifi_command called, cmd:BLACKLIST clear
I/WifiHW ( 825): wifi_send_command, cmd = BLACKLIST clear
I/WifiHW ( 825): wifi_command called, cmd:LIST_NETWORKS
I/WifiHW ( 825): wifi_send_command, cmd = LIST_NETWORKS
D/SettingsWifiEnabler( 981): Received wifi state changed from Enabling to Enabled
I//system/bin/wpa_supplicant( 1010): Initializing interface 'eth0' conf '/system/etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
I//system/bin/wpa_supplicant( 1010): Configuration file '/system/etc/wifi/wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1010): Reading configuration file '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1010): update_config=1
I//system/bin/wpa_supplicant( 1010): ctrl_interface='DIR=/data/system/wpa_supplicant GROUP=system'
I//system/bin/wpa_supplicant( 1010): Initializing interface (2) 'eth0'
I//system/bin/wpa_supplicant( 1010): EAPOL: SUPP_PAE entering state DISCONNECTED
I//system/bin/wpa_supplicant( 1010): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
I//system/bin/wpa_supplicant( 1010): EAPOL: SUPP_BE entering state INITIALIZE
I//system/bin/wpa_supplicant( 1010): EAP: EAP entering state DISABLED
I//system/bin/wpa_supplicant( 1010): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1010): EAPOL: Externalinit: waitpid returned pid 1010, status = 00000000
init: process 'wpa_supplicant', pid 1010 exited
init: process 'wpa_supplicant' killing any children in process group
notification - portValid=0
I//system/bin/wpa_supplicant( 1010): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15 enc_capa=0xf
I//system/bin/wpa_supplicant( 1010): capabilities: key_mgmt 0xf enc 0xf
I//system/bin/wpa_supplicant( 1010): WEXT: Operstate: linkmode=1, operstate=5
I//system/bin/wpa_supplicant( 1010): socket(PF_PACKET): Address family not supported by protocol
I//system/bin/wpa_supplicant( 1010): Failed to add interface eth0
I//system/bin/wpa_supplicant( 1010): State: DISCONNECTED -> DISCONNECTED
I//system/bin/wpa_supplicant( 1010): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
I//system/bin/wpa_supplicant( 101init: event { 'remove', '/kernel/uids/1007', 'uids', '', -1, -1 }
0): WEXT: Operstate: linkmode=-1, operstate=5
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1010): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1010): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_wpa
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_drop_unencrypted
I//system/bin/wpa_supplicant( 1010): wpa_driver_wext_set_countermeasures
I//system/bin/wpa_supplicant( 1010): No keys have been configured - skip key clearing
I//system/bin/wpa_supplicant( 1010): Cancelling scan request
I//system/bin/wpa_supplicant( 1010): Cancelling authentication timeout
I//system/bin/wpa_supplicant( 1010): WEXT: Operstate: linkmode=0, operstate=6
I/logwrapper( 1010): /system/bin/wpa_supplicant terminated by exit(255)
init: starting 'wpa_supplicant'
init: event { 'add', '/kernel/uids/1007', 'uids', '', -1, -1 }
I//system/bin/wpa_supplicant( 1017): Initializing interface 'eth0' conf '/system/etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
I//system/bin/wpa_supplicant( 1017): Configuration file '/system/etc/wifi/wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1017): Reading configuration file '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1017): update_config=1
I//system/bin/wpa_supplicant( 1017): ctrl_interface='DIR=/data/system/wpa_supplicant GROUP=system'
I//system/bin/wpa_supplicant( 1017): Initializing interface (2) 'eth0'
I//system/bin/wpa_supplicant( 1017): EAPOL: SUPP_PAE entering state DISCONNECTED
I//system/bin/wpa_supplicaninit: waitpid returned pid 1017, status = 00000000
init: process 'wpa_supplicant', pid 1017 exited
init: process 'wpa_supplicant' killing any children in process group
t( 1017): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
I//system/bin/wpa_supplicant( 1017): EAPOL: SUPP_BE entering state INITIALIZE
I//system/bin/wpa_supplicant( 1017): EAP: EAP entering state DISABLED
I//system/bin/wpa_supplicant( 1017): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1017): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1017): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15 enc_capa=0xf
I//system/bin/wpa_supplicant( 1017): capabilities: key_mgmt 0xf enc 0xf
I//system/bin/wpa_supplicant( 1017): WEXT: Operstate: linkmode=1, operstate=5
I//system/bin/wpa_supplicant( 1017): socket(PF_PACKET)init: event { 'remove', '/kernel/uids/1007', 'uids', '', -1, -1 }
: Address family not supported by protocol
I//system/bin/wpa_supplicant( 1017): Failed to add interface eth0
I//system/bin/wpa_supplicant( 1017): State: DISCONNECTED -> DISCONNECTED
I//system/bin/wpa_supplicant( 1017): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
I//system/bin/wpa_supplicant( 1017): WEXT: Operstate: linkmode=-1, operstate=5
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1017): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1017): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_wpa
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_drop_unencrypted
I//system/bin/wpa_supplicant( 1017): wpa_driver_wext_set_countermeasures
I//system/bin/wpa_supplicant( 1017): No keys have been configured - skip key clearing
I//system/bin/wpa_supplicant( 1017): Cancelling scan request
I//system/bin/wpa_supplicant( 1017): Cancelling authentication timeout
I//system/bin/wpa_supplicant( 1017): WEXT: Operstate: linkmode=0, operstate=6
I/logwrapper( 1017): /system/bin/wpa_supplicant terminated by exit(255)
I/WifiHW ( 825): wifi_connect_to_supplicant called
E/WifiHW ( 825): Supplicant not running, cannot connect
D/dalvikvm( 874): GC freed 230 objects / 10104 bytes in 80ms
init: starting 'wpa_supplicant'
init: event { 'add', '/kernel/uids/1007', 'uids', '', -1, -1 }
I//system/bin/wpa_supplicant( 1023): Initializing interface 'eth0' conf '/system/etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
I//system/bin/wpa_supplicant( 1023): Configuration file '/system/etc/wifi/wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1023): Reading configuration file '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1023): update_config=1
I//system/bin/wpa_supplicant( 1023): ctrl_interface='DIR=/data/system/wpa_supplicant GROUP=system'
I//system/bin/wpa_supplicant( 1023): Initializing interface (2) 'eth0'
I//system/bin/wpa_supplicant( 1023): EAPOL: SUPP_PAE entering state DISCONNECTED
I//system/bin/wpa_supplicant( 1023): EAPOL: KEY_RX entering state NO_KEY_REinit: waitpid returned pid 1023, status = 00000000
init: process 'wpa_supplicant', pid 1023 exited
init: process 'wpa_supplicant' killing any children in process group
CEIVE
I//system/bin/wpa_supplicant( 1023): EAPOL: SUPP_BE entering state INITIALIZE
I//system/bin/wpa_supplicant( 1023): EAP: EAP entering state DISABLED
I//system/bin/wpa_supplicant( 1023): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1023): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1023): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15 enc_capa=0xf
I//system/bin/wpa_supplicant( 1023): capabilities: key_mgmt 0xf enc 0xf
I//system/bin/wpa_supplicant( 1023): WEXT: Operstate: linkmode=1, operstate=5
I//system/bin/wpa_supplicant( 1023): socket(PF_PACKET)init: event { 'remove', '/kernel/uids/1007', 'uids', '', -1, -1 }
: Address family not supported by protocol
I//system/bin/wpa_supplicant( 1023): Failed to add interface eth0
I//system/bin/wpa_supplicant( 1023): State: DISCONNECTED -> DISCONNECTED
I//system/bin/wpa_supplicant( 1023): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
I//system/bin/wpa_supplicant( 1023): WEXT: Operstate: linkmode=-1, operstate=5
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1023): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1023): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_wpa
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_drop_unencrypted
I//system/bin/wpa_supplicant( 1023): wpa_driver_wext_set_countermeasures
I//system/bin/wpa_supplicant( 1023): No keys have been configured - skip key clearing
I//system/bin/wpa_supplicant( 1023): Cancelling scan request
I//system/bin/wpa_supplicant( 1023): Cancelling authentication timeout
I//system/bin/wpa_supplicant( 1023): WEXT: Operstate: linkmode=0, operstate=6
I/logwrapper( 1023): /system/bin/wpa_supplicant terminated by exit(255)
I/WifiHW ( 825): wifi_connect_to_supplicant called
E/WifiHW ( 825): Supplicant not running, cannot connect
init: starting 'wpa_supplicant'
init: event { 'add', '/kernel/uids/1007', 'uids', '', -1, -1 }
I//system/bin/wpa_supplicant( 1029): Initializing interface 'eth0' conf '/system/etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
I//system/bin/wpa_supplicant( 1029): Configuration file '/system/etc/wifi/wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1029): Reading configuration file '/system/etc/wifi/wpa_supplicant.conf'
I//system/bin/wpa_supplicant( 1029): update_config=1
I//system/bin/wpa_supplicant( 1029): ctrl_interface='DIR=/data/system/wpa_supplicant GROUP=system'
I//system/bin/wpa_supplicant( 1029): Initializing interface (2) 'eth0'
I//system/bin/wpa_supplicant( 1029): EAPOL: SUPP_PAE entering state DISCONNECTED
I//system/bin/wpa_supplicant( 1029): EAPOL: KEY_RX entering state NO_KEY_REinit: waitpid returned pid 1029, status = 00000000
init: process 'wpa_supplicant', pid 1029 exited
init: process 'wpa_supplicant' killing any children in process group
CEIVE
I//system/bin/wpa_supplicant( 1029): EAPOL: SUPP_BE entering state INITIALIZE
I//system/bin/wpa_supplicant( 1029): EAP: EAP entering state DISABLED
I//system/bin/wpa_supplicant( 1029): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1029): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1029): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15 enc_capa=0xf
I//system/bin/wpa_supplicant( 1029): capabilities: key_mgmt 0xf enc 0xf
I//system/bin/wpa_supplicant( 1029): WEXT: Operstate: linkmode=1, operstate=5
I//system/bin/wpa_supplicant( 1029): socket(PF_PACKET): Address family not supported by protocol
I//system/bin/wpa_supplicant( 1029): Failed to add iinit: event { 'remove', '/kernel/uids/1007', 'uids', '', -1, -1 }
nterface eth0
I//system/bin/wpa_supplicant( 1029): State: DISCONNECTED -> DISCONNECTED
I//system/bin/wpa_supplicant( 1029): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
I//system/bin/wpa_supplicant( 1029): WEXT: Operstate: linkmode=-1, operstate=5
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
I//system/bin/wpa_supplicant( 1029): EAPOL: External notification - portEnabled=0
I//system/bin/wpa_supplicant( 1029): EAPOL: External notification - portValid=0
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_wpa
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_drop_unencrypted
I//system/bin/wpa_supplicant( 1029): wpa_driver_wext_set_countermeasures
I//system/bin/wpa_supplicant( 1029): No keys have been configured - skip key clearing
I//system/bin/wpa_supplicant( 1029): Cancelling scan request
I//system/bin/wpa_supplicant( 1029): Cancelling authentication timeout
I//system/bin/wpa_supplicant( 1029): WEXT: Operstate: linkmode=0, operstate=6
I/logwrapper( 1029): /system/bin/wpa_supplicant terminated by exit(255)
I/WifiHW ( 825): wifi_connect_to_supplicant called
E/WifiHW ( 825): Supplicant not running, cannot connect
V/WifiStateTracker( 825): Supplicant died unexpectedly
I/WifiHW ( 825): wifi_close_supplicant_connection called
I/WifiHW ( 825): wifi_stop_supplicant calledinit: processing action 0x28938 (property:init.svc.wpa_supplicant=stopped)
init: command 'stop' r=0
D/SettingsWifiEnabler( 981): Received wifi state changed from Enabled to Disabling
I/WifiHW ( 825): Unloading WiFi Modules
I/WifiHW ( 825): rmmod
init: event { 'remove', '/devices/platform/s3c-sdhci.0/mmc_host/mmc0/mmc0:0001/mmc0:0001:1/net/eth0', 'net', '', -1, -1 }
init: event { 'remove', '/bus/sdio/drivers/libertas_sdio', 'drivers', '', -1, -1 }
init: event { 'remove', '/module/libertas_sdio', 'module', '', -1, -1 }