Is this a bug or my fault?

Nithyananthan Poosamani nithy.psg at gmail.com
Tue Jul 12 14:45:12 EDT 2011


Hi Pavel,

This is what I did. I compiled the source code obtained from (
http://hostap.epitest.fi/wpa_supplicant/) for v0.6.10 setting flags as
ARCH=arm and CROSS_COMPILE=arm-eabi-
Then copied the wpa_supplicant binary to the /system/bin folder of my HTC
Nexus One device. Here is the attached log of my command window.

I did not know what mistake did I make.
In my lab machine, the path to adb has spaces and '(' character. It should
not be a problem as I am running in the device.

Thank for taking your time. It would be great if we can solve this issue and
move forward.

Thanks,
Nithy

On Tue, Jul 12, 2011 at 11:28 AM, Pavel Roskin <proski at gnu.org> wrote:

> On 07/11/2011 05:35 PM, Nithyananthan Poosamani wrote:
>
>>
>> *error wpa_supplicant: 1 : Unexpected '(' found*
>>
>> *Is this a bug or did I make any fault?*
>>
>
> I don't see "found" after "Unexpected" in the wpa_supplicant sources. This
> command gives no output:
>
> grep -A 3 -r 'Unexpected' * | grep found
>
> So I assume the message is not from wpa_supplicant.  It looks like the OS
> interprets the binary you compiled as a shell script or something. Run
> "file" command on both binaries to see what they are:
>
> file wpa_supplicant
>
>
>  Can any of you share the .config file and Makefile so that I can verify if
>> any patches need to be done?
>>
>
> I don't think wpa_supplicant even runs on your system, so looking for
> patches and configuration is premature.  I believe the defaults should be
> sane.
>
> --
> Regards,
> Pavel Roskin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20110712/d1284ff8/attachment-0001.htm 
-------------- next part --------------
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Nithyananthan>cd C:\Program Files (x86)\Android\android-sdk-windows\pla
tform-tools

C:\Program Files (x86)\Android\android-sdk-windows\platform-tools>adb devices
List of devices attached


C:\Program Files (x86)\Android\android-sdk-windows\platform-tools>adb devices
List of devices attached
HT0BEP801371    device


C:\Program Files (x86)\Android\android-sdk-windows\platform-tools>adb shell
$ su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system/bin
chmod 777 /system/bin
# cat /sdcard/wpa_supplicant_jouni > /system/bin/wpa_supplicant
cat /sdcard/wpa_supplicant_jouni > /system/bin/wpa_supplicant
cannot create /system/bin/wpa_supplicant: text busy
# ps
ps
USER     PID   PPID  VSIZE  RSS     WCHAN    PC         NAME
root      1     0     320    184   c00d3648 0000875c S /init
root      2     0     0      0     c00726e0 00000000 S kthreadd
root      3     2     0      0     c00616e4 00000000 S ksoftirqd/0
root      4     2     0      0     c0095000 00000000 S watchdog/0
root      5     2     0      0     c006e7e0 00000000 S events/0
root      6     2     0      0     c006e7e0 00000000 S khelper
root      7     2     0      0     c00798b4 00000000 S async/mgr
root      8     2     0      0     c006e7e0 00000000 S suspend
root      9     2     0      0     c00ae190 00000000 S sync_supers
root      10    2     0      0     c00aed08 00000000 S bdi-default
root      11    2     0      0     c006e7e0 00000000 S kblockd/0
root      12    2     0      0     c006e7e0 00000000 S kmmcd
root      13    2     0      0     c006e7e0 00000000 S qmi
root      14    2     0      0     c003ba28 00000000 D rpcrouter
root      15    2     0      0     c003e018 00000000 S krpcserversd
root      16    2     0      0     c006e7e0 00000000 S dock
root      17    2     0      0     c006e7e0 00000000 S detection/0
root      18    2     0      0     c006e7e0 00000000 S button/0
root      19    2     0      0     c0095280 00000000 S khungtaskd
root      20    2     0      0     c00a8bc4 00000000 S kswapd0
root      21    2     0      0     c006e7e0 00000000 S aio/0
root      22    2     0      0     c006e7e0 00000000 S crypto/0
root      33    2     0      0     c006e7e0 00000000 S panel_on/0
root      34    2     0      0     c006e7e0 00000000 S msm_serial_hs
root      35    2     0      0     c01d7be4 00000000 S mtdblock0
root      36    2     0      0     c01d7be4 00000000 S mtdblock1
root      37    2     0      0     c01d7be4 00000000 S mtdblock2
root      38    2     0      0     c01d7be4 00000000 S mtdblock3
root      39    2     0      0     c01d7be4 00000000 S mtdblock4
root      40    2     0      0     c01d7be4 00000000 S mtdblock5
root      47    2     0      0     c01eb37c 00000000 S file-storage
root      48    2     0      0     c006e7e0 00000000 S synaptics_wq
root      49    2     0      0     c0212fe4 00000000 S w1_bus_master1
root      50    2     0      0     c006e7e0 00000000 S kstriped
root      51    2     0      0     c006e7e0 00000000 S kondemand/0
root      52    2     0      0     c006e7e0 00000000 S binder
root      53    2     0      0     c006e7e0 00000000 S l2cap
root      54    2     0      0     c0344e7c 00000000 S krfcommd
root      55    1     284    140   c00d3648 0000875c S /sbin/ueventd
root      56    2     0      0     c006e7e0 00000000 S ds2784-battery
root      57    2     0      0     c02305c0 00000000 S mmcqd
root      58    2     0      0     c014a280 00000000 S yaffs-bg-1
root      60    2     0      0     c014a280 00000000 S yaffs-bg-1
root      61    2     0      0     c014a280 00000000 S yaffs-bg-1
system    62    1     816    268   c023f1b8 afd0b6fc S /system/bin/servicemanage
r
root      63    1     3872   592   ffffffff afd0bdac S /system/bin/vold
root      64    1     3856   564   ffffffff afd0bdac S /system/bin/netd
root      65    1     676    256   c02503f0 afd0c0cc S /system/bin/debuggerd
radio     66    1     8936   1124  ffffffff afd0bdac S /system/bin/rild
root      67    1     82744  28224 c00d3648 afd0b844 S zygote
media     68    1     22636  4472  ffffffff afd0b6fc S /system/bin/mediaserver
bluetooth 69    1     1264   696   c00d3648 afd0c59c S /system/bin/dbus-daemon
root      70    1     824    312   c02ec240 afd0b45c S /system/bin/installd
keystore  72    1     1752   424   c02503f0 afd0c0cc S /system/bin/keystore
compass   73    1     1736   316   ffffffff afd0b6fc S /system/bin/akmd
shell     74    1     3412   172   ffffffff 00008294 S /sbin/adbd
system    107   67    211000 39872 ffffffff afd0b6fc S system_server
system    168   67    152616 24796 ffffffff afd0c51c S com.android.systemui
app_29    182   67    121160 29772 ffffffff afd0c51c S com.android.wallpaper
app_26    183   67    99744  22220 ffffffff afd0c51c S com.google.android.inputm
ethod.latin
radio     188   67    105524 21960 ffffffff afd0c51c S com.android.phone
app_28    192   67    114064 34536 ffffffff afd0c51c S com.android.launcher
app_18    228   67    151264 28644 ffffffff afd0c51c S com.google.process.gapps
app_1     256   67    96472  22268 ffffffff afd0c51c S android.process.acore
system    295   67    98388  26628 ffffffff afd0c51c S com.android.settings
app_46    305   67    101212 20856 ffffffff afd0c51c S com.android.vending
app_13    317   67    95008  18576 ffffffff afd0c51c S android.process.media
app_19    333   67    93480  16640 ffffffff afd0c51c S com.google.android.apps.u
ploader
app_12    380   67    100668 17288 ffffffff afd0c51c S com.google.android.deskcl
ock
app_32    466   67    108096 22388 ffffffff afd0c51c S com.google.android.apps.m
aps:NetworkLocationService
app_16    467   67    99152  20176 ffffffff afd0c51c S com.google.android.apps.g
enie.geniewidget
app_23    487   67    96804  17348 ffffffff afd0c51c S com.google.android.google
quicksearchbox
app_55    502   67    101376 21124 ffffffff afd0c51c S com.google.android.youtub
e
app_15    521   67    92796  19080 ffffffff afd0c51c S com.google.android.galler
y3d
app_57    530   67    104896 25304 ffffffff afd0c51c S com.google.android.apps.p
lus
app_56    595   67    91380  17716 ffffffff afd0c51c S com.noshufou.android.su
app_17    688   67    126812 34672 ffffffff afd0c51c S com.google.android.gm
root      995   2     0      0     c0077f9c 00000000 S iscan_sysioc
root      996   2     0      0     c0077f9c 00000000 S dhcp_sysioc
root      997   2     0      0     c0077f9c 00000000 S dhd_watchdog
root      998   2     0      0     c0077f9c 00000000 S dhd_dpc
root      999   2     0      0     c0077f9c 00000000 S dhd_sysioc
wifi      1000  1     2172   1104  c00d3648 afd0b844 S /system/bin/wpa_supplican
t
app_32    1471  67    126828 22160 ffffffff afd0c51c S com.google.android.apps.m
aps
root      1654  2     0      0     c00e4418 00000000 S flush-179:0
root      1675  2     0      0     c00e4418 00000000 S flush-31:5
dhcp      1677  1     860    372   c00d3648 afd0c59c S /system/bin/dhcpcd
app_7     1716  67    93760  17360 ffffffff afd0c51c S com.android.providers.cal
endar
app_3     1736  67    94960  20712 ffffffff afd0c51c S com.google.android.apps.b
ooks
shell     1771  74    744    336   c005f108 afd0c3ac S /system/bin/sh
root      1772  1771  744    336   c005f108 afd0c3ac S sh
root      1776  2     0      0     c00e4418 00000000 S flush-31:3
root      1779  1772  900    308   00000000 afd0b45c R ps
# kill -9 1000
kill -9 1000
# cat /sdcard/wpa_supplicant_jouni > /system/bin/wpa_supplicant
cat /sdcard/wpa_supplicant_jouni > /system/bin/wpa_supplicant
/sdcard/wpa_supplicant_jouni: No such file or directory
# cat /sdcard/wpa_supplicant_jouni > /system/bin/wpa_supplicant
cat /sdcard/wpa_supplicant_jouni > /system/bin/wpa_supplicant
# chmod 777 /data/misc/wifi
chmod 777 /data/misc/wifi
# wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf -dd
wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf -dd
wpa_supplicant: 1: Syntax error: "(" unexpected
#


More information about the HostAP mailing list