<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>
<p class="p1">Hello,</p>
<p class="p2"><br>
</p>
<p class="p1">We have compiled and installed the openvswitch in the android platform. Following is the version details of the Android and the OpenvSwitch</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1"> Android version: 4.2.2 (jelly bean)</p>
<p class="p1"><span class="Apple-tab-span"></span> <span class="Apple-tab-span" style="white-space:pre">
</span> Android source git: https://android.googlesource.com/device/lge/mako-kernel</p>
<p class="p1"><span class="Apple-tab-span"></span> Android Kernel source git: https://android.googlesource.com/kernel/msm.git</p>
<p class="p1"> Kernel version: 3.4 <span class="Apple-tab-span"> </span>
</p>
<p class="p1"> Android Build: full_mako-usedebug 4.2.2 JDQ39</p>
<p class="p1"> Openvswitch Kernel Module version: Open vSwitch switching datapath 1.11.90</p>
<p class="p1"> Openvswitch version: (Open vSwitch) 1.11.90 </p>
<p class="p1"> OpenFlow versions 0x1:0x4 (from $ ./ovs-ofctl -V)</p>
<p class="p1"><span class="Apple-tab-span"></span> OpenvSwitch source git: git clone git://openvswitch.org/openvswitch</p>
<p class="p1"> OpenvSwitch git commit: c985ec94a2fe051f083a55d67311e643a432a7ae </p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1">However we have been facing some problems to run some of the user commands in Android, for example,</p>
<p class="p2"><br>
</p>
<p class="p1">#this command runs fine</p>
<p class="p1">$ ./ovs-vsctl --verbose add-br br0 </p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1">#this command actually hang. Then we apply ctl+z to stop</p>
<p class="p1">$ ./ovs-vsctl --verbose add-port br0 wlan0 </p>
<p class="p2"><br>
</p>
<p class="p1">#this command also hang. Then we apply ctl+z to stop</p>
<p class="p1">$ ovs-vsctl add-port br0 vif1.0</p>
<p class="p1"> </p>
<p class="p1">#this command runs fine</p>
<p class="p1">$ ./ovs-vsctl show </p>
<p class="p2"><br>
</p>
<p class="p1"> aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e</p>
<p class="p1"> Bridge "br0"</p>
<p class="p1"> Port "vif1.0"</p>
<p class="p1"> Interface "vif1.0"</p>
<p class="p1"> Port "wlan0"</p>
<p class="p1"> Interface "wlan0"</p>
<p class="p1"> Port "br0"</p>
<p class="p1"> Interface "br0"</p>
<p class="p1"> type: internal</p>
<p class="p2"><br>
</p>
<p class="p1">#this command shows error</p>
<p class="p1">$ ./ovs-ofctl --verbose dump-flows br0</p>
<p class="p1">ovs-ofctl: /data/local/tmp/run/openvswitch/br0.mgmt: failed to open socket (Connection refused)</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1">Can you please help on explaining the possible reason of such error?</p>
<p class="p2"><br>
</p>
<p class="p1">Here is more details about the files in "/data/local/tmp/run/openvswitch/"</p>
<p class="p2"><br>
</p>
<p class="p1">shell@android:/data/local/tmp # ls -l /data/local/tmp/run/openvswitch/ </p>
<p class="p1">srwx------ root root 2013-06-12 20:17 br0.mgmt</p>
<p class="p1">srwx------ root root 2013-06-12 20:17 br0.snoop</p>
<p class="p1">srwx------ root root 2013-06-12 20:16 db.sock</p>
<p class="p1">srwx------ root root 2013-06-12 20:17 ovs-vswitchd.1703.ctl</p>
<p class="p1">-rw-rw-rw- root root 5 2013-06-12 20:17 ovs-vswitchd.pid</p>
<p class="p1">srwx------ root root 2013-06-12 20:16 ovsdb-server.1691.ctl</p>
<p class="p1">-rw-rw-rw- root root 5 2013-06-12 20:16 ovsdb-server.pid</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1">The attached file "verbosecmd.txt" shows the output of the above commands with verbose enable.</p>
<p class="p2"><br>
</p>
<p class="p1">The details of building and installing openvswitch for android can be found in the file "Build-Openvswitch.txt".</p>
<p class="p1">In order build the openvswitch a patch file "ovs_android.patch" and a script file "envsetup.sh" is required. More details about using these two files can be found in "Build-Openvswitch.txt".</p>
<p class="p1"><br>
</p>
<p class="p1">Regards</p>
<p class="p1">Mostafa Uddin</p>
<p class="p1">http://cs.odu.edu/~muddin</p>
</div>
</div>
</body>
</html>