Hi together. I am stuck.
I want to build the following package into a new build for various routers.
https://github.com/messense/openwrt-netbird
I am testing with mango and RUT230.
I made a directory for my_packages, and added the code from the link.
Then I did ./scripts/feeds update -a
and ./scripts/feeds install -a
and ./scripts/feeds install netbird
.
But nothing happens, when I do make menuconfig, I can choose the netbird package, but it is an older version, so not mine.
I cannot install the ipk from repository directly, because I have not enough space left.
egc
September 6, 2023, 7:15am
2
1 Like
DrH8Ball:
Hi together. I am stuck.
I want to build the following package into a new build for various routers.
https://github.com/messense/openwrt-netbird
I am testing with mango and RUT230.
I cannot install the ipk from repository directly, because I have not enough space left .
No doubt. You expect a 7.00 MiB package to run on a 16/64 device? Let alone trying to compile/install an update to the OpenWrt current version that will likely consume even more resources?
I made a directory for my_packages, and added the code from the link.
Then I did ./scripts/feeds update -a
and ./scripts/feeds install -a
and ./scripts/feeds install netbird
.
But nothing happens, when I do make menuconfig, I can choose the netbird package, but it is an older version, so not mine.
Did you add your local feed to the top of feeds.default.conf
, and clean feeds before your feeds update? If you want to override an OpenWrt package of the same name , you need to place your local feed at the top of feeds.default.conf
, and make feeds clean
before updating feeds.
Yes I added my feed on top of feeds.local.conf.
But I didn't clean the feeds, thank you for the hint.
This worked, thank you very much!!!
Glad it worked out for you,
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks!
Sorry, this try was only for x86, RUT240 is still not working, but it is another failure. I have to dig deeper, and come back.
This is what I get on the sources for RUT230
make -j1 V=s
make[1]: Entering directory '/home/user/rutos'
make compile-install CONFIG_TLT_VERSIONING_GPL=y
make[2]: Entering directory '/home/user/rutos'
make[3]: Entering directory '/home/user/rutos'
+ mkdir -p /home/user/rutos/staging_dir/target-mips_34kc_uClibc-0.9.33.2
+ cd /home/user/rutos/staging_dir/target-mips_34kc_uClibc-0.9.33.2
+ mkdir -p bin lib include stamp
mkdir -p /home/user/rutos/build_dir/target-mips_34kc_uClibc-0.9.33.2/stamp
touch /home/user/rutos/staging_dir/target-mips_34kc_uClibc-0.9.33.2/.prepared
+ mkdir -p /home/user/rutos/staging_dir/host
+ cd /home/user/rutos/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /home/user/rutos/build_dir/host/stamp /home/user/rutos/staging_dir/host/include/sys
install -m0644 /home/user/rutos/tools/include/*.h /home/user/rutos/staging_dir/host/include/
install -m0644 /home/user/rutos/tools/include/sys/*.h /home/user/rutos/staging_dir/host/include/sys/
ln -sf lib /home/user/rutos/staging_dir/host/lib64
touch /home/user/rutos/staging_dir/host/.prepared
make[4]: Entering directory '/home/user/rutos/tools/patch'
make[4]: Leaving directory '/home/user/rutos/tools/patch'
make[4]: Entering directory '/home/user/rutos/tools/patch'
make[4]: Leaving directory '/home/user/rutos/tools/patch'
make[4]: Entering directory '/home/user/rutos/tools/sed'
make[4]: Leaving directory '/home/user/rutos/tools/sed'
make[4]: Entering directory '/home/user/rutos/tools/sed'
make[4]: Leaving directory '/home/user/rutos/tools/sed'
make[4]: Entering directory '/home/user/rutos/tools/m4'
make -C /home/user/rutos/build_dir/host/m4-1.4.17
make[5]: Entering directory '/home/user/rutos/build_dir/host/m4-1.4.17'
make all-recursive
make[6]: Entering directory '/home/user/rutos/build_dir/host/m4-1.4.17'
Making all in .
make[7]: Entering directory '/home/user/rutos/build_dir/host/m4-1.4.17'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/home/user/rutos/build_dir/host/m4-1.4.17'
Making all in examples
make[7]: Entering directory '/home/user/rutos/build_dir/host/m4-1.4.17/examples'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/home/user/rutos/build_dir/host/m4-1.4.17/examples'
Making all in lib
make[7]: Entering directory '/home/user/rutos/build_dir/host/m4-1.4.17/lib'
make all-am
make[8]: Entering directory '/home/user/rutos/build_dir/host/m4-1.4.17/lib'
depbase=`echo gl_avltree_oset.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -I. -I/home/user/rutos/staging_dir/host/include -I/home/user/rutos/staging_dir/host/usr/include -O2 -I/home/user/rutos/staging_dir/host/include -I/home/user/rutos/staging_dir/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF $depbase.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo binary-io.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -I. -I/home/user/rutos/staging_dir/host/include -I/home/user/rutos/staging_dir/host/usr/include -O2 -I/home/user/rutos/staging_dir/host/include -I/home/user/rutos/staging_dir/host/usr/include -MT binary-io.o -MD -MP -MF $depbase.Tpo -c -o binary-io.o binary-io.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo c-stack.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -I. -I/home/user/rutos/staging_dir/host/include -I/home/user/rutos/staging_dir/host/usr/include -O2 -I/home/user/rutos/staging_dir/host/include -I/home/user/rutos/staging_dir/host/usr/include -MT c-stack.o -MD -MP -MF $depbase.Tpo -c -o c-stack.o c-stack.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/signal.h:328,
from ./signal.h:52,
from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| ^~~~~~~~
make[8]: *** [Makefile:1837: c-stack.o] Error 1
make[8]: Leaving directory '/home/user/rutos/build_dir/host/m4-1.4.17/lib'
make[7]: *** [Makefile:1602: all] Error 2
make[7]: Leaving directory '/home/user/rutos/build_dir/host/m4-1.4.17/lib'
make[6]: *** [Makefile:1506: all-recursive] Error 1
make[6]: Leaving directory '/home/user/rutos/build_dir/host/m4-1.4.17'
make[5]: *** [Makefile:1461: all] Error 2
make[5]: Leaving directory '/home/user/rutos/build_dir/host/m4-1.4.17'
make[4]: *** [Makefile:29: /home/user/rutos/build_dir/host/m4-1.4.17/.built] Error 2
make[4]: Leaving directory '/home/user/rutos/tools/m4'
make[3]: *** [tools/Makefile:127: tools/m4/compile] Error 2
make[3]: Leaving directory '/home/user/rutos'
make[2]: *** [tools/Makefile:125: /home/user/rutos/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyyynnynyy] Error 2
make[2]: Leaving directory '/home/user/rutos'
make[1]: *** [Makefile:95: world] Error 2
make[1]: Leaving directory '/home/user/rutos'
make: *** [/home/user/rutos/include/toplevel.mk:183: world] Fehler 2
As I said previous -
Base fw is running ~6 MB and this package alone shows up at ~7MB.
You could try to compile just the ipk but I think you will find it still won’t install due to space limitations.
The only other option (ExtRoot won’t work) would be to try and trim down the base firmware to a point where you can install the package.
Yes, this is what I want to do. If I have netbird, I don't need all the other VPN-Tools, and also there is much other stuff in rutOS I want to get rid off.