Hi, Thanks for your suggestions.
I went through the source code and modified wpa_supplicant configuration file and then I enabled it as service in init.rc file and its working.(verified on viewing the log of router). service wpa_supplicant /system/bin/wpa_supplicant \ -D wext -i eth1 -c /system/etc/wpasup.conf group wifi >From Android GUI, if I select Wi-Fi, logcat still says "Failed to load driver". How the Android GUI communicates with wpa_supplicant? I believe GUI communicates with supplicant in order to get scan results or set/get network settings. correct me if I am wrong. Thanks On Wed, Jan 20, 2010 at 6:57 PM, ZhangJieJing <kzj...@gmail.com> wrote: > can you do this ? > > # touch /data/misc/wifi/wpa_supplicant > > can you give more log about *chown[ctrl_interface]: Operation not > permitted ? > > * > you may should check which process do the chown operation and which user of > this process, > maybe search the source code will be helpful, but I can't do this since the > log infomation is too few. > > ** > --- > Best regards, > Zhang Jiejing > > > > On Wed, Jan 20, 2010 at 8:02 AM, linux newbie <linux.newbi...@gmail.com>wrote: > >> how you mount your /data dir? >> >> As I copied the entire root file system of android into USB(ext2) and >> booting using "chroot /mnt /init", I commented out mount yaffs2 line in >> init.rc file. >> >> i.e commented following lines in default init.rc file >> #mount yaffs2 m...@system /system >> #mount yaffs2 m...@system /system ro remount >> #mount yaffs2 m...@userdata /data nosuid nodev >> #mount yaffs2 m...@cache /cache nosuid nodev >> >> also made rootfs as "rw" i.e mount rootfs rootfs / rw remount >> >> *ls -l /* >> drwxrwx--x system system 1970-01-01 00:08 data >> -rw-r--r-- root root 118 2010-01-19 02:18 default.prop >> drwxr-xr-x root root 1970-01-01 00:14 dev >> -rwxr-xr-x root root 103164 2010-01-19 02:18 init >> -rw-r--r-- root root 1677 2010-01-19 02:18 init.goldfish.rc >> lrwxrwxrwx root root 1970-01-01 00:01 etc -> /system/etc >> -rw-r--r-- root root 12692 1970-01-01 00:02 init.rc >> dr-xr-xr-x root root 1970-01-01 00:00 proc >> drwxr-xr-x root root 2010-01-19 02:18 sbin >> drwxr-xr-x root root 1970-01-01 00:00 sys >> drwxr-xr-x root root 2010-01-19 02:18 system >> lrwxrwxrwx root root 1970-01-01 00:01 d -> >> /sys/kernel/debug >> d--------- system system 1970-01-01 00:01 sdcard >> drwxrwx--- system cache 1970-01-01 00:01 cache >> dr-x------ root root 1970-01-01 00:01 config >> drwxrwxrwt root root 1970-01-01 00:09 >> sqlite_stmt_journals >> >> >> *# ls -l /data* >> drwxr-x--- root log 1970-01-01 00:01 dontpanic >> drwxrwx--t system misc 1970-01-01 00:01 misc >> drwxrwx--x shell shell 1970-01-01 00:01 local >> drwxrwx--x system system 1970-01-01 00:08 data >> drwxrwx--x system system 1970-01-01 00:01 app-private >> drwxrwx--x system system 1970-01-01 00:01 app >> drwx------ root root 1970-01-01 00:01 property >> drwxrwx--x system system 1970-01-01 00:14 dalvik-cache >> drwxrwx--- root root 1970-01-01 00:01 lost+found >> drwxr-xr-x system system 1970-01-01 00:02 tombstones >> drwxrwx--x system system 1970-01-01 00:06 anr >> drwxrwxr-x system system 1970-01-01 00:14 system >> drwx------ system system 1970-01-01 00:08 backup >> >> *# ls -l /data/misc* >> drwxrwx--- bluetooth bluetooth 1970-01-01 00:01 bluetoothd >> drwx------ keystore keystore 1970-01-01 00:01 keystore >> drwxrwx--- system system 1970-01-01 00:01 vpn >> drwxrwxrwx wifi wifi 1970-01-01 00:01 wifi >> >> >> On Tue, Jan 19, 2010 at 6:42 PM, ZhangJieJing <kzj...@gmail.com> wrote: >> >>> how you mount your /data dir? >>> >>> what is outputs? >>> # ls -l /data >>> # ls -l /data/misc/ >>> >>> >>> --- >>> Best regards, >>> Zhang Jiejing >>> >>> >>> >>> On Tue, Jan 19, 2010 at 1:53 PM, linux newbie >>> <linux.newbi...@gmail.com>wrote: >>> >>>> ls -l /data/misc/wifi/wpa_supplicant *is empty* >>>> >>>> # mount >>>> rootfs / rootfs rw 0 0 >>>> /dev/root / jffs2 rw 0 0 >>>> none /proc proc rw 0 0 >>>> none /proc/bus/usb usbfs rw 0 0 >>>> none /dev/pts devpts rw,mode=600 0 0 >>>> tmpfs /dev/shm tmpfs rw 0 0 >>>> tmpfs /tmp tmpfs rw 0 0 >>>> /dev/sda1 / ext2 rw,errors=continue 0 0 >>>> tmpfs /dev tmpfs rw,mode=755 0 0 >>>> devpts /dev/pts devpts rw,mode=600 0 0 >>>> proc /proc proc rw 0 0 >>>> sysfs /sys sysfs rw 0 0 >>>> tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 >>>> >>>> >>>> On Tue, Jan 19, 2010 at 3:30 PM, ZhangJieJing <kzj...@gmail.com> wrote: >>>> >>>>> >>>>> can you mail output of >>>>> >>>>> # ls -l /data/misc/wifi/wpa_supplicant >>>>> # mount >>>>> >>>>> --- >>>>> Best regards, >>>>> Zhang Jiejing >>>>> >>>>> >>>>> On Tue, Jan 19, 2010 at 5:36 AM, linux newbie < >>>>> linux.newbi...@gmail.com> wrote: >>>>> >>>>>> Any suggestions? >>>>>> >>>>>> >>>>>> On Mon, Jan 18, 2010 at 6:26 PM, linux newbie < >>>>>> linux.newbi...@gmail.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I build the system for "generic" product and booted our target with >>>>>>> wpa_supplicant. >>>>>>> >>>>>>> On the Android command prompt, If I enable wpa_supplicant, it says >>>>>>> following error >>>>>>> *chown[ctrl_interface]: Operation not permitted* >>>>>>> ** >>>>>>> ctrl_interface=/data/misc/wifi/wpa_supplicant is set in >>>>>>> wpa_supplicant.conf file and the folder is created in init.rc file >>>>>>> >>>>>>> Can anyone let me know, how to overcome this issue? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> unsubscribe: >>>>>> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> >>>>>> website: http://groups.google.com/group/android-porting >>>>>> >>>>> >>>>> >>>>> -- >>>>> unsubscribe: >>>>> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> >>>>> website: http://groups.google.com/group/android-porting >>>>> >>>> >>>> >>> >> >
-- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting