기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

안드로이드 2.1에서 OMAP3530 보드로 테스트 하고 있습니다.


안드로이드 wifi 실행에서 문제가 발생하여 염치 불구하고 질문 드립니다.


안드로이드  init.rc 파일을 아래와 같이 설정 하였습니다.

==================================================

,,,,

    mkdir /data/misc/wifi 0770 system wifi
    chmod 0770 /data/misc/wifi      
    chmod 0660 /data/misc/wifi/wpa_supplicant.conf


  # wifi setting directory create                                    
    mkdir /data/misc/wifi/sockets 0770 wifi wifi                     
    mkdir /data/system 0777 wifi wifi                                
    mkdir /data/system/wpa_supplicant 0777 wifi wifi
    mkdir /data/misc/dhcp 0770 dhcp dhcp           
    chown dhcp dhcp /data/misc/dhcp 

....

  # wifi service                                                                 
service ifcfg_ralink /system/bin/ifconfig wlan0 up                             
    #disabled                                                                  
    #oneshot                                                                   
                                                                               
service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf -dd
    disabled                                                                   
    group system                                                              
                                                                               
service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d wlan0              
    disabled                                                                   
    oneshot 


======================================================


/etc/wifi/wpa_supplicant.conf 파일은 아래와 같이 설정하였습니다.

======================================================

update_config=1
#ctrl_interface=tiwlan0
#ctrl_interface=rausb0
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="SoftAP-D4"
        psk="free7942"
        proto=RSN
        key_mgmt=WPA-PSK
        group=CCMP TKIP
        priority=1
}

=======================================================


위와 같이 설정하고 wifi를 실행하면 네트워크를 연결할수 없다고 나오고 log는 아래와 같습니다.

=======================================================

.....

I/WifiHW  ( 1033): wifi_load_driver(236) Loading WiFi Modules
D/SettingsWifiEnabler( 1788): Received wifi state changed from Disabled to Enabling
I/WifiHW  ( 1033): wifi_load_driver(256) loading WiFi Modules => status : ok
D/WifiService( 1033): ACTION_BATTERY_CHANGED pluggedType: 1
E/WifiHW  ( 1033): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
I//system/bin/wpa_supplicant( 1830): chown[ctrl_interface]: Operation not permitted
E/wpa_supplicant( 1831): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1831): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1831): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1831): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1831): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I/logwrapper( 1830): /system/bin/wpa_supplicant terminated by exit(255)
D/SettingsWifiEnabler( 1788): Received wifi state changed from Enabling to Enabled
D/dalvikvm( 1788): GC freed 3511 objects / 213712 bytes in 62ms
E/WifiHW  ( 1033): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
I//system/bin/wpa_supplicant( 1842): chown[ctrl_interface]: Operation not permitted
E/wpa_supplicant( 1843): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1843): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1843): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1843): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1843): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I/logwrapper( 1842): /system/bin/wpa_supplicant terminated by exit(255)
E/SettingsWifiLayer( 1788): Unable to scan for networks
I/NotificationService( 1033): enqueueToast pkg=com.android.settings callback=android.app.ITransientNotification$Stub$Proxy@43cfe258 duration=1
E/WifiHW  ( 1033): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
I//system/bin/wpa_supplicant( 1853): chown[ctrl_interface]: Operation not permitted
E/wpa_supplicant( 1854): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1854): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1854): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1854): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1854): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I/logwrapper( 1853): /system/bin/wpa_supplicant terminated by exit(255)
E/SettingsWifiLayer( 1788): Unable to scan for networks
I/NotificationService( 1033): enqueueToast pkg=com.android.settings callback=android.app.ITransientNotification$Stub$Proxy@43db92e0 duration=1
E/WifiHW  ( 1033): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
V/WifiStateTracker( 1033): Supplicant died unexpectedly
I//system/bin/wpa_supplicant( 1864): chown[ctrl_interface]: Operation not permitted
E/wpa_supplicant( 1865): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1865): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1865): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1865): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1865): CTRL-EVENT-STATE-CHANGE id=-1 state=0
I/logwrapper( 1864): /system/bin/wpa_supplicant terminated by exit(255)
D/NetworkStateTracker( 1033): setDetailed state, old =IDLE and new state=DISCONNECTED
D/ConnectivityService( 1033): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
W/MobileDataStateTracker( 1033): Ignoring feature request because could not acquire PhoneService
W/MobileDataStateTracker( 1033): Could not enable APN type "default"
D/SettingsWifiEnabler( 1788): Received wifi state changed from Enabled to Disabling
D/SettingsWifiEnabler( 1788): Received wifi state changed from Disabling to Disabled

...
==================================================================


" chown[ctrl_interface]: Operation not permitted " 라는 말이 있는것으로 보아 권한 설정이 잘못 된듯 한데

어디서 잘못 된건지 이해를 못하고 있습니다.


이부분에 관련하여 경험이 있거나 알고 계시다면 다소나마 정보를 나누어 주셨으면 합니다.


읽어 주셔서 감사합니다.



o2less

2010.08.27 23:23:00
*.196.79.193

안녕하세요 답이될지는 모르겠지만 

우선 

service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext

에 인터페이스명과 컨피그팡리 지정이 빠져있는것 같네요

service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -ieth0 -c /data/misc/wifi/wpa_supplicant.conf -dd

이런식으로 지정해주시고 다시 한번 시도해보세요^^

List of Articles
번호 제목 글쓴이 날짜 조회 수sort
6328 이솦보드 palette세팅중 3번째 질문(kelp에서 kozicozi님의 질문... [4] 고현철 2006-04-05 6937
6327 커널패닉 - 묵혀놓은 보드 꺼내들고 집에 셋팅하는데 잘 안되네요... [10] 조준동 2006-04-24 6701
6326 RVDS 2.2 설치 [6] 한영민 2008-12-31 6532
6325 exynos 5250 Arndale board의 Generic Timer 사용에 대해 질문... [5] 흰둥아놀자 2013-07-24 6408
6324 linaro ubuntu 사용중입니다 춤선생 2013-12-24 6390
6323 그래픽 카드 혹은 컨트롤러 드라이버 개발 How-to [2] Journeyer 2009-12-11 6284
6322 NAND bad sector가 새로 발생했을 때… [1] 오르다 2015-07-31 6284
6321 [질문] u-boot 및 루트 파일 시스템 <= 완료 [4] 안정섭 2006-04-16 6253
6320 exynos5250 질문이여. [7] 해황 2012-12-06 6141
» wifi 에러 문제관련하여 질문드립니다. [1] 텅빈깡통 2010-08-27 6138
6318 풀업/풀다운 저항값은 왜 다른가요? [6] 비둘기사냥꾼 2012-09-14 6137
6317 S5PC111과 S5PC110의 차이점은 무엇인가요 [2] Nabula 2010-07-24 5999
6316 ODROID FROYU 업그레이드 문의 드립니다. [1] 추억만이 2010-10-08 5693
6315 [질문] LX-800 과 ARM의 차이...[완료] [8] 김성주 2007-03-27 5670
6314 [질문] LX800 을 처음 사용하기 위한 초기 준비 및 비용은?[완료... [6] 임은향 2007-04-09 5630
6313 Wifi 관련 문의드립니다. [3] Tommy 2010-07-24 5483
6312 S3C6410의 장단점에 대해... [10] 주의이름으로 2009-02-04 5401
6311 MP2530에 OpenOCD와 FT2232를 이용해 JTAG 연결중 [4] 박성철 2009-02-15 5292
6310 [Android] play 스토어 설치 관련 [2] wizard14 2013-03-21 5272
6309 DNW 관련 ... [1] 고도리 2007-10-31 5207

사용자 로그인