<div dir="ltr">@Florian<br><div>So, I took some time today to patch a bit of support for OVS to compile on 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">https://github.com/commodo/packages/tree/ovs-kernel-4.1</a><br>Commit is this one: <a href="https://github.com/commodo/packages/commit/de519aac8c751cd8744d839efd071cdf02891db1">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 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 just made it build, and I haven't managed to get hold of a device with which to actually test it.<br>If all is good I'll add a PR into the official OpenWRT packages.<br><br>Thanks<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 5:18 PM, Alexandru Ardelean <span dir="ltr"><<a href="mailto:ardeleanalex@gmail.com" target="_blank">ardeleanalex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I will admit I only tested with x86.<br></div>I ASSumed that it's on kernel 4.1.<br><br></div>Will check again and try to spin up a patch for kernel 4.1.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 3:53 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">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 /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/./; if [ -x ./configure ]; then find /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/ -name config.guess | xargs -r chmod u+w; find /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/ -name config.guess | xargs -r -n1 cp --remove-destination /home/administrator/openwrt/scripts/config.guess; find /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/ -name config.sub | xargs -r chmod u+w; find /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/ -name config.sub | xargs -r -n1 cp --remove-destination /home/administrator/openwrt/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -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 -Wl,-z,relro -mno-mips16 -mno-interlink-mips16 -flto -std=gnu99" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mno-mips16 -mno-interlink-mips16 -flto -std=gnu99 " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -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 " CPPFLAGS="-I/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include -I/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " LDFLAGS="-L/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib -L/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib -L/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/administrator/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build!<br>
 =x86_64-li<br>
nux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   _python_sysroot="/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10" _python_prefix="/usr" _python_exec_prefix="/usr" --with-linux=/home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/linux-ar71xx_generic/linux-4.1.3 --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 /home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/linux-ar71xx_generic/linux-4.1.3 is version 4.1.3, but version newer than 4.0.x is not supported (please refer to the FAQ for advice)<br>
make[3]: *** [/home/administrator/openwrt/build_dir/target-mips_34kc_musl-1.1.10/openvswitch-2.4.0/.configured_yyyyyyyy] Error 1<br>
make[3]: Leaving directory `/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]: *** [/home/administrator/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/stamp/.package_compile] 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 <<a href="mailto:ardeleanalex@gmail.com" target="_blank">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" target="_blank">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 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" target="_blank">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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>