Re: [ovs-discuss] Compile ovs for Andriod

2013-06-07 Thread Ben Pfaff
Please do not drop the mailing list. Open vSwitch 1.1.0pre2 was released in September 2010. The most recently released version is 1.10.0, released last month. I doubt that you would be satisfied with version 1.1.0pre2, even if you can get it to work, so I doubt that the work required to make it

Re: [ovs-discuss] Compile ovs for Andriod

2013-06-07 Thread Ben Pfaff
On Fri, Jun 07, 2013 at 02:02:01AM +, Uddin, Mostafa Abdulla wrote: > I was trying to compile openvswitch in android 4.2 (jelly bean) and > kernel version 3.4. > > It builds the kernel module fine. However, I am facing the problem > while compiling the user space program . What is the problem

Re: [ovs-discuss] Compile ovs for Andriod

2011-03-03 Thread Ben Pfaff
On Wed, Mar 02, 2011 at 11:41:40PM -0800, Jesse Gross wrote: > On Wed, Mar 2, 2011 at 9:53 PM, Te-Yuan Huang wrote: > > However, for the process to work, we need to patch the original ovs codes. > > The patches are mostly related to some missing definitions in Android > > systems. > > All the pat

Re: [ovs-discuss] Compile ovs for Andriod

2011-03-02 Thread Jesse Gross
On Wed, Mar 2, 2011 at 9:53 PM, Te-Yuan Huang wrote: > However, for the process to work, we need to patch the original ovs codes. > The patches are mostly related to some missing definitions in Android systems. > All the patches can be found under cross_compile_patches/patches/ . > We are wonderin

Re: [ovs-discuss] Compile ovs for Andriod

2011-03-02 Thread Te-Yuan Huang
Hi Ben and all, Thanks for the helps along the way. We managed to compile the kernel module and user-space programs (i.e., ovs-dpctl, ovs-openflowd, and ovs-ofctl) on android. We generated the scripts for cross-compiling, and it can be download at: http://www.stanford.edu/~huangty/cross_compile_p

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-23 Thread Te-Yuan Huang
Thanks, Ben! After re-generating the vlog-modules.def, it works now. Many thanks again! -Te-Yuan On Wed, Feb 23, 2011 at 12:10 PM, Ben Pfaff wrote: > On Wed, Feb 23, 2011 at 11:23:02AM -0800, Te-Yuan Huang wrote: >> I am able to generate all the *.o file that ovs-dpctl needed, >> however when I

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-23 Thread Ben Pfaff
On Wed, Feb 23, 2011 at 11:23:02AM -0800, Te-Yuan Huang wrote: > I am able to generate all the *.o file that ovs-dpctl needed, > however when I tried to link them together, I got the following complains: > > route-table.o:(.debug_info+0x1735): undefined reference to `VLM_route_table' > netlink-soc

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-23 Thread Te-Yuan Huang
Hi all, Yongqiang was able to compile ovs-dpctl & ovs-openflowd for ovs 1.0.3 on andoird. And I am trying to compile ovs-dpctl & ovs-openflowd for ovs 1.1.0pre2, as some patches have been pushed. I am able to generate all the *.o file that ovs-dpctl needed, however when I tried to link them toget

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-04 Thread Yongqiang Liu
Got it. My mis-understanding, i thought "all datapaths" refer to all existing datapaths which are created by ./ovs-dpctl add-dp dpx command. No, it doesn't cause any problem for me. Thanks 2011/2/4 Ben Pfaff > On Fri, Feb 04, 2011 at 03:52:43PM -0800, Yongqiang Liu wrote: > > Now there is an in

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-04 Thread Ben Pfaff
On Fri, Feb 04, 2011 at 03:52:43PM -0800, Yongqiang Liu wrote: > Now there is an interesting problem with ./ovs-dpctl show command. > It will silently create many dpx devices in /dev/net. This is true. > 4. but if there in argument dp0, it has a problem: it creates extra 254 > devices in /dev/n

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-04 Thread Yongqiang Liu
Hi, It works, now i have successfully cross compiled ovs-openflowd, and i will test it on Android later. Thanks Now there is an interesting problem with ./ovs-dpctl show command. It will silently create many dpx devices in /dev/net. Let me show you the concrete process: 1. insmod /sdcard/openvswit

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-04 Thread Ben Pfaff
On Fri, Feb 04, 2011 at 02:51:36PM -0800, Yongqiang Liu wrote: > So far there is a weird problem when i cross compiled ovs-openflowd, it is > following: > > vconn.o: In function `.LANCHOR0': > vconn.c:(.data.rel.ro.pvconn_classes+0x0): undefined reference to > `ptcp_pvconn_class' > vconn.c:(.data.

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-04 Thread Yongqiang Liu
I got it. We currently have two kinds of cell phone: Motorola CDMA Droid which 3G interface is point-to-point; GSM Nexus One which 3G interface is normal ethernet. So maybe ovs can work on GSM cell phone, we are trying that. So far there is a weird problem when i cross compiled ovs-openflowd, it i

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-03 Thread Jesse Gross
On Thu, Feb 3, 2011 at 12:33 PM, Ben Pfaff wrote: > On Wed, Feb 02, 2011 at 09:53:49PM -0800, Yongqiang Liu wrote: >> but when i added 3G interface, which appears as a ppp0 interface, there is >> an error: >> # ./ovs-dpctl add-if dp0 ppp0 >> Feb 02 21:41:03|1|dpif|WARN|system@dp0: failed to ad

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-03 Thread Ben Pfaff
On Wed, Feb 02, 2011 at 09:53:49PM -0800, Yongqiang Liu wrote: > but when i added 3G interface, which appears as a ppp0 interface, there is > an error: > # ./ovs-dpctl add-if dp0 ppp0 > Feb 02 21:41:03|1|dpif|WARN|system@dp0: failed to add ppp0 as port: > Invalid argument > ovs-dpctl: adding pp

Re: [ovs-discuss] Compile ovs for Andriod

2011-02-02 Thread Yongqiang Liu
Hi Everyone, For running ovs on Android, so far i can add wlan interface to the dp0 as a port, there is no problem, you can see: # ./ovs-dpctl show dp0 system@dp0: flows: cur:0, soft-max:1024, hard-max:1048576 ports: cur:2, max:1024 groups: max:16 lookups: frags:0, hit:0, missed:415

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-28 Thread Ben Pfaff
This doesn't make any sense to me. If there is some equivalent to valgrind on android you might want to try that. This code uses the major(), minor(), and makedev() macros. I wonder if Android has funny definitions of those? On Fri, Jan 28, 2011 at 11:14:34AM -0800, Yongqiang Liu wrote: > Follo

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-28 Thread Yongqiang Liu
Following is the output of running "ovs-dpctl -v show": # ./ovs-dpctl -v show Jan 28 11:07:51|1|dpif_linux|WARN|/dev/net/dp46388 is device 248:255 but should be 248:0, fixing system@dp0: Jan 28 11:07:51|2|dpif|DBG|system@dp0: get_stats success flows: cur:0, soft-max:1024, hard-max:1048

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-28 Thread Ben Pfaff
On Fri, Jan 28, 2011 at 02:02:15AM -0800, Yongqiang Liu wrote: > Hi Everyone: > > For running ovs on Android phone, so far i have installed openvswitch_mod.ko > on Android kernel and cross compiled ovs-dpctl. > It seems they work on Android: > 1. I can create a datapath dp0 > 2. i can add phone's

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-28 Thread Yongqiang Liu
Hi Everyone: For running ovs on Android phone, so far i have installed openvswitch_mod.ko on Android kernel and cross compiled ovs-dpctl. It seems they work on Android: 1. I can create a datapath dp0 2. i can add phone's wifi interface (tiwlan0) to the dp0 the following is the dp0 status: # ./ovs

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-27 Thread Yongqiang Liu
Hi Ben. After configure, if i run make in the top directory, letting some scripts in the lib directory run first. Then, i cross compile in my mintool directory, there is no such a problem in dpif.c i reported just now. But i don't know why. BTW, my current compile way is that i create a mintool d

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-27 Thread Yongqiang Liu
Thanks Ben. I tried, and it works. Now there is a similar problem when cross compiling dpif.c, it is: dpif.o: In function `dpif_flow_flush': /home/leo/android/kernel/openvswitch/mintool/dpif.c:702: undefined reference to `dpif_flow_flush_count' but there is no the definition of dpif_flow_flush

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-27 Thread Yongqiang Liu
Hi guys: I am trying to cross compile vlog.c file on arm, but there is a problem in link phase: vlog.c:315: undefined reference to `__start_vlog_modules' And i found it is an extern reference in vlog.c: extern struct vlog_module *__start_vlog_modules[]; But i cann't find which file defines the

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Ben Pfaff
On Wed, Jan 26, 2011 at 8:57 PM, Yongqiang Liu wrote: > I am trying to cross compile vlog.c file on arm, but there is a problem in > link phase: > > vlog.c:315: undefined reference to `__start_vlog_modules' > > And i found it is an extern reference in vlog.c: > extern struct vlog_module *__start_v

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Yongqiang Liu
Thanks Ben. I will try the two tools. 2011/1/26 Ben Pfaff > On Wed, Jan 26, 2011 at 12:50:37PM -0800, Yongqiang Liu wrote: > > one is openvswitch_mod kernel module, which works with bridge and > forwards > > the packets according to the forwarding table entries. > > another is some user-space ap

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Ben Pfaff
On Wed, Jan 26, 2011 at 12:50:37PM -0800, Yongqiang Liu wrote: > one is openvswitch_mod kernel module, which works with bridge and forwards > the packets according to the forwarding table entries. > another is some user-space applications such as tools used to add/del > interfaces to the kernel mod

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Yongqiang Liu
Hi Ben, As my understand, OVS may contain two part: one is openvswitch_mod kernel module, which works with bridge and forwards the packets according to the forwarding table entries. another is some user-space applications such as tools used to add/del interfaces to the kernel module, add/del forwar

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Ben Pfaff
On Wed, Jan 26, 2011 at 12:35:33PM -0800, Yongqiang Liu wrote: > 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

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Yongqiang Liu
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.

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread kk yap
Hi Ben, > 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. It has more than 1 network po

Re: [ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Ben Pfaff
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 conf

[ovs-discuss] Compile ovs for Andriod

2011-01-26 Thread Yongqiang Liu
Hi Everyone, I am trying to cross compile and install ovs on Andriod phone but i had a problem while doing configure. my command is ./configure CC=~/android/kernel/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-gcc --target=arm-linux -with-l26=~/android/kernel/droid/omap KARCH=arm The