wireless tools

255 views
Skip to first unread message

mrma...@gmail.com

unread,
Dec 13, 2008, 7:03:58 AM12/13/08
to android-porting
Hi,

I am trying to excute wireless tools to enable an WiFi module.
But I got an error.

#./iwconfig
./iwconfig: not found

Uncoment the following option in Makefile when compile wireless
tools29.
BUILD_STATIC = y
BUILD_NOLIBM = y
BUILD_WE_ESSENTIAL = y

Has anyone succeeded compile it for Android?


dimi...@android.com

unread,
Dec 13, 2008, 5:57:12 PM12/13/08
to android-porting
Hi,

You need to port them and to compile. It is not an issue.
The main question is what are you trying to achieve ?

massa rubens

unread,
Dec 13, 2008, 8:32:07 PM12/13/08
to android...@googlegroups.com

Hi,

I wonder what I need to port it.

This is what I have done:
1.compiled it with static option(=BUILD_STATIC)
2.confirmed it works with normal userland and Android kernel
3.tried the command with Android platform on the emulator and an actual target -> got the error

I've recognized no -static option at the compile. When adding -static, I got the following warnings. Need to compile glibc?

arm-none-linux-gnueabi-gcc   -static -Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -I. -MMD   -DWE_NOLIBM=y -DWE_ESSENTIAL=y -o ifrename ifrename.o libiw.a
libiw.a(iwlib.so): In function `iw_in_inet':
iwlib.c:(.text+0xc48): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
iwlib.c:(.text+0xc04): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

dimi...@android.com

unread,
Dec 13, 2008, 8:59:25 PM12/13/08
to android-porting
Hi,

I think wireless tools "talk" to wireless kernel extension.
So you need to allow wireless extension in the kernel.
Your network driver should support it as well.
Android runtime has libc that supposes to be enough for wireless
tools.

Hope this helps.

On Dec 13, 5:32 pm, "massa rubens" <mrmas...@gmail.com> wrote:
> Hi,
>
> I wonder what I need to port it.
>
> This is what I have done:
> 1.compiled it with static option(=BUILD_STATIC)
> 2.confirmed it works with normal userland and Android kernel
> 3.tried the command with Android platform on the emulator and an actual
> target -> got the error
>
> I've recognized no -static option at the compile. When adding -static, I got
> the following warnings. Need to compile glibc?
> arm-none-linux-gnueabi-gcc   -static -Os -W -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -I.
> -MMD   -DWE_NOLIBM=y -DWE_ESSENTIAL=y -o ifrename ifrename.o libiw.a
> libiw.a(iwlib.so): In function `iw_in_inet':
> iwlib.c:(.text+0xc48): warning: Using 'gethostbyname' in statically linked
> applications requires at runtime the shared libraries from the glibc version
> used for linking
> iwlib.c:(.text+0xc04): warning: Using 'getnetbyname' in statically linked
> applications requires at runtime the shared libraries from the glibc version
> used for linking
>
> On Sun, Dec 14, 2008 at 7:57 AM, dimitr...@android.com <
>
>
>
> dimitr...@android.com> wrote:
>
> > Hi,
>
> > You need to port them and to compile. It is not an issue.
> > The main question is what are you trying to achieve ?
>
> > On Dec 13, 4:03 am, mrmas...@gmail.com wrote:
> > > Hi,
>
> > > I am trying to excute wireless tools to enable an WiFi module.
> > > But I got an error.
>
> > > #./iwconfig
> > > ./iwconfig: not found
>
> > > Uncoment the following option in Makefile when compile wireless
> > > tools29.
> > > BUILD_STATIC = y
> > > BUILD_NOLIBM = y
> > > BUILD_WE_ESSENTIAL = y
>
> > > Has anyone succeeded compile it for Android?- Hide quoted text -
>
> - Show quoted text -

massa rubens

unread,
Dec 13, 2008, 9:08:30 PM12/13/08
to android...@googlegroups.com
Hi,
 
I enabled wireless extension in the configuration as the network driver is working with normal userland in the same kernel.
Only problem is the wireless tools.
 
thank you for your comment.

mizmit1222

unread,
Dec 14, 2008, 7:40:10 PM12/14/08
to android-porting
Hi,

I had similar issue when I used a char code conversion tool - nkf.

You would better try to build your tool linked to bionic - Android
libc.

1) setup Android build environment
http://source.android.com/download

2) mkdir your project under mydroid/external and copy your source code

3) write Android.mk for your project based on your Makefile

4) let the Android build course make your tools



On Dec 14, 11:08 am, "massa rubens" <mrmas...@gmail.com> wrote:
> Hi,
>
> I enabled wireless extension in the configuration as the network driver is
> working with normal userland in the same kernel.
> Only problem is the wireless tools.
>
> thank you for your comment.
> On Sun, Dec 14, 2008 at 10:59 AM, dimitr...@android.com <
Reply all
Reply to author
Forward
0 new messages