[ovs-discuss] Compile ovs for Andriod

Yongqiang Liu liuyq7809 at gmail.com
Wed Jan 26 12:35:33 PST 2011


Thanks Ben.

The motivation of installing ovs on Andriod is to easily control multiple
interfaces (e.g, wifi and 3G). So far we have found out that wifi can
appear as an eth0 interface, and 3G can appear as a ppp-based interface, for
example in Nexus One Phone, the name of the interface is rmnet0.
Do you think ovs can handle these two interfaces?

BTW,  i have cross compiled the openvswitch_mod.ko module for Android by a
little trick:

run configure without cross_compile, and then modify the Makefile in
datapath/linux-2.6 to add cross compile variables, and then run make in that
directory, and then i can get the cross compiled kernel module and it can be
installed on android.

It seems ok, and this is a snapshot on my phone:

<3>[105110.598785] init: sys_prop: permission denied uid:2000
name:adb.connected
<4>[105178.558044] Open vSwitch 1.0.3, built Jan 24 2011 19:24:35
# lsmod
openvswitch_mod 62905 0 - Live 0xbf211000
tiwlan_drv 660205 0 - Live 0xbf14f000
stp 1266 0 - Live 0xbf135000
llc 3143 1 stp, Live 0xbf12e000
#

So i wonder how can test the module with the minimal cost?


2011/1/26 Ben Pfaff <blp at nicira.com>

> On Wed, Jan 26, 2011 at 11:31:59AM -0800, Yongqiang Liu wrote:
> > checking whether the C compiler works... no
> > configure: error: in `/home/leo/android/kernel/openvswitch':
> > configure: error: C compiler cannot create executables
> > See `config.log' for more details.
> >
> > Attached please find my config.log.
> >
> > Does anyone has  ideas to solve the problem ?
>
> Your compiler doesn't work.  You need to find a compiler that does work.
>
> Here is the relevant part of config.log:
>
>    configure:3129: checking whether the C compiler works
>    configure:3151:
> /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc
>    conftest.c  >&5
>
>  /home/leo/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld:
> crt0.o: No such file: No such file or directory
>
> > And another question is for running ovs on android, which version of ovs
> is
> > best for this?
>
> I doubt that it makes sense to run OVS on Android at all.  Do any
> Android devices have more than one Ethernet port?  Do any Android
> devices support virtualization?  If the answer to both is "no" then I
> don't know what OVS would be good for on Android.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20110126/70e9f95c/attachment-0001.htm>


More information about the discuss mailing list