<div dir="ltr"><div><div>Will make some more time to try this.<br></div><br></div>Thanks for testing<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 5:50 PM, Florian Siebertz <span dir="ltr"><<a href="mailto:florian.siebertz@inf.h-brs.de" target="_blank">florian.siebertz@inf.h-brs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Today I compiled with your fork and everything seemed fine at first.<br>
After flashing to a TP-Link WDR3600 Router I can see the ovsdb-server running<br>
and <ovs-vsctl show> reveals the usual String ID.<br>
<br>
When I try to add a bridge with <ovs-vsctl add-br br0> the command does not return<br>
to the input prompt. After pressing ctrl+c and checking <ovs-vsctl show> it seems like<br>
the bridge was created. The same happens when adding ports or changing any<br>
settings on the bridge.<br>
<br>
Additionally, the switch does not connect to the controller. I'm not sure how to debug<br>
this further, but if you have an idea I will test it on the device.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Am 07.08.2015 um 16:14 schrieb Alexandru Ardelean:<br>
> @Florian<br>
> So, I took some time today to patch a bit of support for OVS to compile on<br>
> OpenWRT with kernel 4.1<br>
><br>
> Can you pull this from my fork and test it out a bit ?<br>
> Branch is here: <a href="https://github.com/commodo/packages/tree/ovs-kernel-4.1" rel="noreferrer" target="_blank">https://github.com/commodo/packages/tree/ovs-kernel-4.1</a><br>
> Commit is this one:<br>
> <a href="https://github.com/commodo/packages/commit/de519aac8c751cd8744d839efd071cdf02891db1" rel="noreferrer" target="_blank">https://github.com/commodo/packages/commit/de519aac8c751cd8744d839efd071cdf02891db1</a><br>
><br>
> If you need a tarball, send me a message and I can prepare one, or maybe<br>
> Github has a download zip/tar button per branches somewhere not sure.<br>
><br>
> Anyway, I'd appreciate if you took the time to test it out a bit.<br>
> I'm a bit swamped and don't have time to do proper testing ; to be honest I<br>
> just made it build, and I haven't managed to get hold of a device with<br>
> which to actually test it.<br>
> If all is good I'll add a PR into the official OpenWRT packages.<br>
><br>
> Thanks<br>
><br>
> On Wed, Aug 5, 2015 at 5:18 PM, Alexandru Ardelean <<a href="mailto:ardeleanalex@gmail.com">ardeleanalex@gmail.com</a>><br>
> wrote:<br>
><br>
>> I will admit I only tested with x86.<br>
>> I ASSumed that it's on kernel 4.1.<br>
>><br>
>> Will check again and try to spin up a patch for kernel 4.1.<br>
>><br>
>> On Wed, Aug 5, 2015 at 3:53 PM, Florian Siebertz <<br>
>> <a href="mailto:florian.siebertz@inf.h-brs.de">florian.siebertz@inf.h-brs.de</a>> wrote:<br>
>><br>
>>> Thank you for your work, i really appreciate it.<br>
>>> Now the package is back, but at compilation it fails when<br>
>>> checking against the kernel version:<br>
>>><br>
>>> (cd<br>
>>> /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/./;<br>
>>> if [ -x ./configure ]; then find<br>
>>> /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/<br>
>>> -name config.guess | xargs -r chmod u+w; find<br>
>>> /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/<br>
>>> -name config.guess | xargs -r -n1 cp --remove-destination<br>
>>> /home/administrator/openwrt/scripts/config.guess; find<br>
>>> /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/<br>
>>> -name config.sub | xargs -r chmod u+w; find<br>
>>> /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/<br>
>>> -name config.sub | xargs -r -n1 cp --remove-destination<br>
>>> /home/administrator/openwrt/scripts/config.sub;<br>
>>> AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os<br>
>>> -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves<br>
>>> -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat !<br>
>>> -Werror=fo<br>
>>> rmat-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now<br>
>>> -Wl,-z,relro -mno-mips16 -mno-interlink-mips16 -flto -std=gnu99"<br>
>>> LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm"<br>
>>> CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc"<br>
>>> CXX="mips-openwrt-linux-musl-g++"<br>
>>> RANLIB="mips-openwrt-linux-musl-gcc-ranlib"<br>
>>> STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy<br>
>>> OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size<br>
>>> CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc<br>
>>> -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable<br>
>>> -msoft-float -Wformat -Werror=format-security -fstack-protector<br>
>>> -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mno-mips16<br>
>>> -mno-interlink-mips16 -flto -std=gnu99 " CXXFLAGS="-Os -pipe<br>
>>> -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts<br>
>>> -Wno-error=unused-but-set-variable -msoft-float -Wformat<br>
>>> -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1!<br>
>>> -Wl,-z,no<br>
>>> w -Wl,-z,relro -mno-mips16 -mno-interlink-mips16 -flto -std=gnu99 "<br>
>>> CPPFLAGS="-I/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include<br>
>>> -I/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include<br>
>>> -I/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include<br>
>>> -I/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify<br>
>>> -I/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include<br>
>>> "<br>
>>> LDFLAGS="-L/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib<br>
>>> -L/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib<br>
>>> -L/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib<br>
>>> -L/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib<br>
>>> -znow -zrelro " ./configure --target=mips-openwrt-linux<br>
>>> --host=mips-openwrt-linux --build!<br>
>>> =x86_64-li<br>
>>> nux-gnu --program-prefix="" --program-suffix="" --prefix=/usr<br>
>>> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin<br>
>>> --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share<br>
>>> --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls<br>
>>> _python_sysroot="/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10"<br>
>>> _python_prefix="/usr" _python_exec_prefix="/usr"<br>
>>> --with-linux=/home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/linux-ar71xx_generic/linux-4.1.3<br>
>>> --with-rundir=/var/run --enable-ndebug --disable-ssl --enable-shared ; fi; )<br>
>>><br>
>>> [...] (a bunch of checks)<br>
>>><br>
>>> checking for kernel version... 4.1.3<br>
>>> configure: error: Linux kernel in<br>
>>> /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/linux-ar71xx_generic/linux-4.1.3<br>
>>> is version 4.1.3, but version newer than 4.0.x is not supported (please<br>
>>> refer to the FAQ for advice)<br>
>>> make[3]: ***<br>
>>> [/home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/.configured_yyyyyyyy]<br>
>>> Error 1<br>
>>> make[3]: Leaving directory<br>
>>> `/home/administrator/openwrt/feeds/packages/net/openvswitch'<br>
>>> make[2]: *** [package/feeds/packages/openvswitch/compile] Error 2<br>
>>> make[2]: Leaving directory `/home/administrator/openwrt'<br>
>>> make[1]: ***<br>
>>> [/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/stamp/.package_compile]<br>
>>> Error 2<br>
>>> make[1]: Leaving directory `/home/administrator/openwrt'<br>
>>> make: *** [world] Error 2<br>
>>><br>
>>><br>
>>><br>
>>> Am 04.08.2015 um 16:08 schrieb Alexandru Ardelean:<br>
>>>> Took some 20-30 minutes to upgrade OVS and test it (with kernel 4.1).<br>
>>>> Seems to work fine so far.<br>
>>>><br>
>>>> Please monitor this PR; after it's merged it should appear.<br>
>>>><br>
>>>> On Tue, Aug 4, 2015 at 1:37 PM, Alexandru Ardelean <<br>
>>> <a href="mailto:ardeleanalex@gmail.com">ardeleanalex@gmail.com</a>><br>
>>>> wrote:<br>
>>>><br>
>>>>> Well, OpenVSwitch is a bit behind on kernel support.<br>
>>>>> It's at 3.18 currently.<br>
>>>>> OpenWRT is at 4.1<br>
>>>>><br>
>>>>> We'd need to do an upgrade of OVS to get it up to speed.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Tue, Aug 4, 2015 at 12:43 PM, Florian Siebertz <<br>
>>>>> <a href="mailto:florian.siebertz@inf.h-brs.de">florian.siebertz@inf.h-brs.de</a>> wrote:<br>
>>>>><br>
>>>>>> Hi,<br>
>>>>>><br>
>>>>>> i noticed that the openvswitch package is not available in trunk at<br>
>>> the<br>
>>>>>> moment. It is not in the precompiled snapshots, neither can it be<br>
>>>>>> choosen in 'make menuconfig'. (Yes, i did ./scripts/feeds<br>
>>>>>> [update|install] -a).<br>
>>>>>><br>
>>>>>> Does anyone know why and when it will be back?<br>
>>>>>><br>
>>>>>> Thanks!<br>
>>>>>><br>
>>>>>> Florian Siebertz<br>
>>>>>> _______________________________________________<br>
>>>>>> openwrt-devel mailing list<br>
>>>>>> <a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
>>>>>> <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>><br>
>>><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>