As far as I understand the rooter-master patch contains the âRooterâ packages. If I donât select them in âmake menuconfigâ I get the original OpenWrt build.
The whole build system is OpenWrt and as far as I understand I am not getting an error from Rooter, but I am not sure, I am not a developer.
I will try to make a clean OpenWrt build without RooterâŚ
Just changed to Ubuntu 18.04 from Mint 18 and tried a clean build. This time I get other errors.
Is it possible that active work on github causes this? I didnât change anything in the fresh build on Ubuntu but I still get other errors. Yesterday I got the same errors as on Linux Mint.
907-2/tmp/dl/vpnc-0.5.3.r550.tar.gz && mv /home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/tmp/dl/vpnc-0.5.3.r550.tar.gz /home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/dl/ && rm -rf vpnc-0.5.3.r550; '
Checking out files from the svn repository...
/bin/sh: 1: svn: not found
/bin/sh: 1: svn: not found
Makefile:94: recipe for target '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/dl/vpnc-0.5.3.r550.tar.gz' failed
make[3]: *** [/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/dl/vpnc-0.5.3.r550.tar.gz] Error 127
make[3]: Leaving directory '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/feeds/packages/net/vpnc'
time: package/feeds/packages/vpnc/compile#0.14#0.02#0.20
package/Makefile:111: recipe for target 'package/feeds/packages/vpnc/compile' failed
make[2]: *** [package/feeds/packages/vpnc/compile] Error 2
make[2]: Leaving directory '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2'
package/Makefile:107: recipe for target '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2'
/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2
Can someone please look at the build script below, can this cause the errors? This is the only change between the Rooter and the OpenWrt build. With Rooter I have a script, with OpenWrt I start âmakeâ.
#!/bin/sh
# automatic build maker
#build version
#
# Date of the build
#
DATE="2020-01-12"
NAME="GoldenOrb_"
CODE=$NAME$DATE
rm -rf ./files
mkdir -p ./files/etc
echo 'CODENAME="'"$CODE"'"' > ./files/etc/codename
echo " <model>" > ./files/etc/header_msg
echo "/img/header.png" >> ./files/etc/header_msg
echo "/img/rosy.jpg" >> ./files/etc/header_msg
BASE="openwrt-"
BASEO="openwrt-ar71xx-generic-tl-"
BASEQ="openwrt-ar71xx-generic-"
ENDO="-squashfs-factory"
ENDU="-squashfs-sysupgrade"
TYP="-GO"
END=$TYP$DATE
#
# change name of configuration file to match the desired router
#
#cp ./configfiles/.config_name ./.config
DNS=$(cat "./.config" | grep "CONFIG_PACKAGE_dnsmasq-full=y")
if [ ! -z $DNS ]; then
sed -i -e 's/CONFIG_PACKAGE_dnsmasq=y/# CONFIG_PACKAGE_dnsmasq is not set/g' ./.config
fi
WPAD=$(cat "./.config" | grep "CONFIG_PACKAGE_wpad-basic=y")
if [ ! -z $WPAD ]; then
sed -i -e 's/CONFIG_PACKAGE_wpad-basic=y/# CONFIG_PACKAGE_wpad-basic is not set/g' ./.config
fi
WPAD=$(cat "./.config" | grep "CONFIG_PACKAGE_wpad=y")
if [ ! -z $WPAD ]; then
sed -i -e 's/CONFIG_PACKAGE_wpad-mini=y/# CONFIG_PACKAGE_wpad-mini is not set/g' ./.config
fi
make V=sc
#
# this part of the script does the copying, renaming and zipping of the image file(s)
#
# copy the section from imagecopy for your router
#
Thanks
P.S. The only reason for me to use Rooter is because it automatically detects and configures almost every USB LTE Modem.
configure: error: no acceptable Java compiler found in $PATH
Makefile:94: recipe for target '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/build_dir/target-x86_64_musl/classpath-0.99/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
configure: WARNING: I have to compile Test.class from scratch
checking if jamvm works... configure: error: The Java VM jamvm failed (see config.log, check the CLASSPATH?)
Makefile:94: recipe for target '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/build_dir/target-x86_64_musl/classpath-0.99/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[3]: *** [/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/build_dir/target-x86_64_musl/classpath-0.99/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/feeds/packages/libs/classpath'
time: package/feeds/packages/classpath/compile#6.64#1.71#11.64
package/Makefile:111: recipe for target 'package/feeds/packages/classpath/compile' failed
make[2]: *** [package/feeds/packages/classpath/compile] Error 2
make[2]: Leaving directory '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2'
package/Makefile:107: recipe for target '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2'
/home/lordrayden/OpenWrt/Rooter19072/rooter1907-2/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2
This confuses me a little, in "make menuconfig" I deselected java, it's not on "M" it's deselected but still I need Java to compile?
Everything I can find about "CLASSPATH" is that it's outdated, no one uses it anymore and that I should not set a "CLASSPATH".
Problem is, I have to set it to fix the error but how and where and to what directory?
I have added "export CLASSPATH=/home/lordrayden/java" to "etc/enviroment" but no luck, then I added the same line in ".bashrc" and still no luck. That means either that I have the wrong directory or I am adding it in the wrong place.
Someone an idea?
Thanks
P.S. echo ${CLASSPATH} returns the directory I added and the directory existsâŚ
The first driver, rtl8812au, is available in the OpenWrt package database with the name rtl8812au-ct. It can be selected for building from source under "Kernel Modules > Wireless Drivers".
The second driver, I did not have much success building against the latest snapshot:
It seems that not all symbols are being exported when building the kernel. I checked and these symbols are indeed missing from Module.symvers after building OpenWrt despite having selected kmod-cfg80211 for building.
The module compiles fine against my local kernel (5.8.10-arch1-1). I don't know enough to keep debugging this, sorry.
Finally!!!
After 48 hours of trial and error I finally did it. I have a working image.
The problem was/is that this is an âoldâ version of OpenWrt so some stuff canât compile anymore. I had to deselect some stuff, but the Image is working.
Now I have a working build environment. When I do a new build do I have to start over or can I just change stuff in this environment and start the build script? If I have to start over can I take the â.configâ file from this environment?
Now I have to look into the driver stuff because none of my drivers are working. I completely misunderstood the âcross compilingâ âŚ
Thanks
Do I really have to start fresh every time I change something?
"make" stops and tells me to start "make distclean" but that command deletes too much.
Is there another way?
"distclean" is too much.
"dirclean" would just clear the toolchain and build results but would not remove download sources and config.
With normal openWrt, "make clean" is usually enough and "make dirclean" is needed only when there are complex changes to the toolchain. You never need "make distclean".
But again, we have no idea what changes the "rooter" patches have done to the build system, so you should ask help from the rooter community.