Hi weihongcsu,

It seems like a permission issue.
Scenario is :--> There is something that is accessible via adb and un-
accessible via console.
I guess, granting permissions to 'console' should do the work.


On Aug 20, 12:59 pm, weihongcsu li <liweihong...@gmail.com> wrote:
> Dear all,
>      Hello!I am trying to use bcm4329 on P860(Paloris) .*The problem is that
> wifi cannot scan for any network ,but it can scan when I use "adb shell" to
> test.Does anyone have any ideas? Any help would be greatly appreciated.*
> *     Here are the logcat after I turned on wifi:*
> ###################logcat ####################################
> *     *
> I/ActivityManager(  170): Process com.android.bluetooth (pid 384) has died.
>
> I/ActivityManager(  170): Process com.android.vending (pid 390) has died.
>
> D/WifiService(  170): ACTION_BATTERY_CHANGED pluggedType: 2
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCGIFFLAGS]: No such device
>
> I//system/bin/wpa_supplicant(  501): Could not set interface 'eth0' UP
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWPMKSA]: Operation not
> permitted
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWMODE]: Operation not
> permitted
>
> I//system/bin/wpa_supplicant(  501): Could not configure driver to use
> managed mode
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCGIWRANGE]: No such device
>
> I//system/bin/wpa_supplicant(  501): socket(PF_PACKET): Operation not
> permitted
>
> I/wpa_supplicant(  503): liweihong!!!call wpa_supplicant_deinit_iface.Failed
> to add interface eth0
>
> I/wpa_supplicant(  503): CTRL-EVENT-STATE-CHANGE id=-1 state=0
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWENCODEEXT]: Operation not
> permitted
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWENCODEEXT]: Operation not
> permitted
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWENCODEEXT]: Operation not
> permitted
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWENCODEEXT]: Operation not
> permitted
>
> E/wpa_supplicant(  503):
>
> E/wpa_supplicant(  503): wpa_supplicant_deinit_iface:liweihong!!!ifname:eth0
>
> E/wpa_supplicant(  503):
>
> E/wpa_supplicant(  503): Failed to disable WPA in the driver.
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCSIWAP]: Operation not
> permitted
>
> I//system/bin/wpa_supplicant(  501): ioctl[SIOCGIFFLAGS]: No such device
>
> I/logwrapper(  501): /system/bin/wpa_supplicant terminated by exit(255)
>
> D/Tethering(  170): eth0 is not a tetherable iface, ignoring
>
> D/WifiStateTracker(  170): Reset connections and stopping DHCP
>
> W/ActivityManager(  170): Timeout of broadcast BroadcastRecord{4403e728
> android.net.wifi.WIFI_STATE_CHANGED} -
> receiver=android.os.BinderProxy@44025820
>
> W/ActivityManager(  170): Receiver during timeout: ResolveInfo{43fb1680
> com.android.settings.widget.SettingsAppWidgetProvider p=0 o=0 m=0x108000}
>
> I/Process (  170): Sending signal. PID: 462 SIG: 3
>
> I/dalvikvm(  462): threadid=3: reacting to signal 3
>
> I/dalvikvm(  462): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 170 SIG: 3
>
> I/dalvikvm(  170): threadid=3: reacting to signal 3
>
> I/dalvikvm(  170): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 232 SIG: 3
>
> I/dalvikvm(  232): threadid=3: reacting to signal 3
>
> I/dalvikvm(  232): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 238 SIG: 3
>
> I/dalvikvm(  238): threadid=3: reacting to signal 3
>
> I/dalvikvm(  238): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 443 SIG: 3
>
> I/dalvikvm(  443): threadid=3: reacting to signal 3
>
> I/Process (  170): Sending signal. PID: 307 SIG: 3
>
> I/dalvikvm(  307): threadid=3: reacting to signal 3
>
> I/dalvikvm(  443): Wrote stack traces to '/data/anr/traces.txt'
>
> I/dalvikvm(  307): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 402 SIG: 3
>
> I/dalvikvm(  402): threadid=3: reacting to signal 3
>
> I/Process (  170): Sending signal. PID: 437 SIG: 3
>
> I/dalvikvm(  437): threadid=3: reacting to signal 3
>
> I/dalvikvm(  402): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 240 SIG: 3
>
> I/dalvikvm(  240): threadid=3: reacting to signal 3
>
> I/dalvikvm(  240): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 411 SIG: 3
>
> I/dalvikvm(  411): threadid=3: reacting to signal 3
>
> I/dalvikvm(  437): Wrote stack traces to '/data/anr/traces.txt'
>
> I/dalvikvm(  411): Wrote stack traces to '/data/anr/traces.txt'
>
> I/Process (  170): Sending signal. PID: 419 SIG: 3
>
> I/dalvikvm(  419): threadid=3: reacting to signal 3
>
> I/Process (  170): Sending signal. PID: 284 SIG: 3
>
> I/dalvikvm(  284): threadid=3: reacting to signal 3
>
> I/dalvikvm(  284): Wrote stack traces to '/data/anr/traces.txt'
>
> I/dalvikvm(  419): Wrote stack traces to '/data/anr/traces.txt'
>
> E/ActivityManager(  170): ANR in com.android.settings
>
> E/ActivityManager(  170): Reason: Broadcast of Intent {
> act=android.net.wifi.WIFI_STATE_CHANGED flg=0x10000000
> cmp=com.android.settings/.widget.SettingsAppWidgetProvider (has extras) }
>
> E/ActivityManager(  170): Load: 5.02 / 4.53 / 2.5
>
> E/ActivityManager(  170): CPU usage from 262302ms to 84ms ago:
>
> E/ActivityManager(  170):   system_server: 1% = 1% user + 0% kernel /
> faults: 1370 minor 23 major
>
> E/ActivityManager(  170):   ndroid.settings: 0% = 0% user + 0% kernel /
> faults: 326 minor 6 major
>
> E/ActivityManager(  170):   e.process.gapps: 0% = 0% user + 0% kernel /
> faults: 1314 minor 18 major
>
> E/ActivityManager(  170):   kmmcd: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   mmcqd: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   loop0: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   d.apps.uploader: 0% = 0% user + 0% kernel /
> faults: 501 minor
>
> E/ActivityManager(  170):   d.process.media: 0% = 0% user + 0% kernel /
> faults: 548 minor 3 major
>
> E/ActivityManager(  170):   loop1: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   adbd: 0% = 0% user + 0% kernel / faults: 30
> minor
>
> E/ActivityManager(  170):   kswapd0: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   events/0: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   m.android.phone: 0% = 0% user + 0% kernel /
> faults: 95 minor 4 major
>
> E/ActivityManager(  170):   nie.geniewidget: 0% = 0% user + 0% kernel /
> faults: 138 minor
>
> E/ActivityManager(  170):   init.android: 0% = 0% user + 0% kernel / faults:
> 35 minor
>
> E/ActivityManager(  170):   pdflush: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   servicemanager: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   vold: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   netd: 0% = 0% user + 0% kernel / faults: 2 minor
>
> E/ActivityManager(  170):   .android.htcime: 0% = 0% user + 0% kernel /
> faults: 104 minor
>
> E/ActivityManager(  170):   gps_nmea_thread: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):   d.process.acore: 0% = 0% user + 0% kernel /
> faults: 21 minor
>
> E/ActivityManager(  170):  +sh: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +logcat: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +iscan_sysioc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +dhcp_sysioc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +dhd_watchdog: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +dhd_dpc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +dhd_sysioc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  +ksdiorqd: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -droid.bluetooth: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -android.vending: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -sh: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -logcat: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -iscan_sysioc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -dhcp_sysioc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -dhd_watchdog: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -dhd_dpc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -dhd_sysioc: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170):  -ksdiorqd: 0% = 0% user + 0% kernel
>
> E/ActivityManager(  170): TOTAL: 4% = 2% user + 1% kernel + 0% iowait
>
> D/dalvikvm(  170): GC_FOR_MALLOC freed 7928 objects / 969192 bytes in 195ms
>
> D/WifiStateTracker(  170): Disabling interface
>
> D/dalvikvm(  170): GC_FOR_MALLOC freed 1045 objects / 532072 bytes in 188ms
>
> W/ActivityManager(  170): finishReceiver called but no pending broadcasts
>
> W/InputManagerService(  170): Window already focused, ignoring focus gain
> of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43f77d80
>
> ####it should be these error,but I comment wpa_suplicant's
> check。::begin########
> E/WifiHW  (  165): Supplicant not running, cannot connect
>
> W/InputManagerService(  165): Window already focused, ignoring focus gain
> of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44057b20
>
> E/WifiHW  (  165): Supplicant not running, cannot connect
>
> E/WifiHW  (  165): Supplicant not running, cannot connect
>
> V/WifiStateTracker(  165): Supplicant died unexpectedly
> ################################################# end
>  #######################
>
> E/WifiHW  (  170): Unable to open connection to supplicant on "eth0": No
> such file or directory
>
> E/WifiHW  (  170): Unable to open connection to supplicant on "eth0": No
> such file or directory
>
> E/WifiHW  (  170): Unable to open connection to supplicant on "eth0": No
> such file or directory
>
> V/WifiStateTracker(  170): Supplicant died unexpectedly
>
> D/WifiStateTracker(  170): Reset connections and stopping DHCP
>
> D/WifiStateTracker(  170): Disabling interface
>
> D/NetworkStateTracker(  170): setDetailed state, old =DISCONNECTED and new
> state=DISCONNECTED
>
> D/WifiStateTracker(  170): Reset connections and stopping DHCP
>
> D/WifiStateTracker(  170): Disabling interface
>
> E/Tethering(  170): attempting to remove unknown iface (eth0), ignoring
> ###################logcat ####################################
> *
> *
>     *Here are the details:*
> 1. Phone is the *p860*, but the wifi chip is the bcm4329.
>
> 2. Android and bcm4329 is from       git://
> androidhtc.git.sourceforge.net/gitroot/androidhtc/manifest -b froyo. And *I
> add my own "bcm_wlan_power_on" and "bcm_wlan_power_off"* in
> the /arch/arm/mach-msm/mmc.c. "trout_wifi_power" is in the
> board-htckaiser.c. For details,please see the attachments.
>
> 3. Kernel is linux 2.6.25, Compiler is arm-2009q3.
>
> 4. And the logs is in the attachments.
>     *Thank you very much!*
>
> Best regards!
> weihongcsu
> 8/20/2011
>
>  board-htckaiser.c
> 35KViewDownload
>
>  mmc.c
> 8KViewDownload
>
>  dmesg234-af2
> 169KViewDownload


Thank You.
- Ashwini

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to