Closed iDustbin closed 1 year ago
I only officially support device that I own. I will try to support it if SinoVoip send me one ;)
Should be possible using by merging changes in https://github.com/BPI-SINOVOIP/BPI-R3-OPENWRT-V21.02.3
Support is already in OpenWRT https://github.com/openwrt/openwrt/commit/a96382c1bb204698cd43e82193877c10e4b63027 So should work if you compile OpenMPTCProuter 5.15 based release.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days
I'm currently trying to build 5.15 for the Banana Pi R3. Looks like, there isn't much missing, but unfortunately the build fails.
This is what I tried (on branch develop, as master doesn't have 5.15 yet):
git clone https://github.com/Ysurac/openmptcprouter.git
cd openmptcprouter
OMR_TARGET="bpi-r3" OMR_FEED_SRC="master" OMR_KERNEL="5.15" ./build.sh
cd bpi-r3/5.15/source
make menuconfig
Then select Mediatek ARM and Filogic 830 MT7986A in menuconfig and make -j1 V=s
That fails when trying to build shortcut-fe:
make -f ./scripts/Makefile.build obj=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe \
single-build= \
need-builtin=1 need-modorder=1
aarch64-openwrt-linux-musl-gcc -Wp,-MMD,/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/.sfe_ipv4.o.d -nostdinc -isystem /home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/include -I./arch/arm64/include -I./arch/arm64/include/generated -I./include -I./arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -mabi=lp64 -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=none -Wa,-march=armv8.5-a -DARM64_ASM_ARCH='"armv8.5-a"' -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fmacro-prefix-map=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl=target-aarch64_cortex-a53_musl -fno-caller-saves -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1040 -DSFE_SUPPORT_IPV6 -DMODULE -DKBUILD_BASENAME='"sfe_ipv4"' -DKBUILD_MODNAME='"shortcut_fe"' -D__KBUILD_MODNAME=kmod_shortcut_fe -c -o /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.o /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c: In function 'sfe_ipv4_recv_udp':
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c:1478:12: error: 'struct sk_buff' has no member named 'fast_forwarded'
1478 | skb->fast_forwarded = 1;
| ^~
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c: In function 'sfe_ipv4_recv_tcp':
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c:2052:12: error: 'struct sk_buff' has no member named 'fast_forwarded'
2052 | skb->fast_forwarded = 1;
| ^~
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c: In function 'sfe_ipv4_periodic_sync':
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c:2868:53: error: 'struct timer_list' has no member named 'cust_data'
2868 | struct sfe_ipv4 *si = (struct sfe_ipv4 *)arg->cust_data;
| ^~
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c: In function 'sfe_ipv4_init':
/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.c:3552:18: error: 'struct timer_list' has no member named 'cust_data'
3552 | si->timer.cust_data = (unsigned long)si;
| ^
make[5]: *** [scripts/Makefile.build:289: /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/sfe_ipv4.o] Error 1
make[4]: *** [Makefile:1903: /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe] Error 2
make[4]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-5.15.83'
make[3]: *** [Makefile:79: /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/shortcut-fe/.built] Error 2
make[3]: Leaving directory '/home/vbox/openmptcprouter/feeds/openmptcprouter/shortcut-fe'
It seems, there is something missing for shortcut-fe to work. So I pieced together the patches from the from the lede repo, and from the hack-5.4 and hack-6.1 folders: 952-add-net-conntrack-events-support-multiple-registrant.patch 953-net-patch-linux-kernel-to-support-shortcut-fe.patch
That managed to fix the shortcut-fe build, but then it fails later at the package_compile step. I can't really figure out whats going on there:
touch /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4d b0cbbd6403/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4d b0cbbd6403/.built
touch /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4d b0cbbd6403/.built_check
(cd /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4db0 cbbd6403/src/lib && gcc -g -O2 -fPIC -DPIC -DNDPI_LIB_COMPILATION -I../../src/include/ -I../../src/lib/third_party/include/ ndpi_network_list_compile.c -o ndpi_netw ork_list_compile && ./ndpi_network_list_compile -o ndpi_network_list.c.inc ndpi_network_list_*.yaml)
make AR="aarch64-openwrt-linux-musl-gcc-ar" AS="aarch64-openwrt-linux-musl-gcc -c -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=un used-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-media tek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4db0cbbd6403=ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4db0cbbd6403 -Wformat -Werror=format-security - fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=aarch64-openwrt-linux-musl-ld NM="aarch64-openwrt-linux-musl-gcc-nm" CC="aarch64-openwrt-linux-musl -gcc" GCC="aarch64-openwrt-linux-musl-gcc" CXX="aarch64-openwrt-linux-musl-g++" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-stri p OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CROSS="aarch64-openwrt-linux-musl-" ARC H="aarch64" KERNEL_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-5.15.83" MODULES_DIR="/l ib/modules/5.15.83" ARCH="arm64" KERNEL_RELEASE="5.15" CROSS_COMPILE="aarch64-openwrt-linux-musl-" CC="aarch64-openwrt-linux-musl-gcc" NDPI_PATH=/home/vbox/openmptc prouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4db0cbbd6403/ndpi-netfilter -C /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392cf0c7d51c44e076a91fc4db0 cbbd6403/ndpi-netfilter
make[4]: Entering directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e639 2cf0c7d51c44e076a91fc4db0cbbd6403/ndpi-netfilter'
make -C ipt
make[5]: Entering directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e639 2cf0c7d51c44e076a91fc4db0cbbd6403/ndpi-netfilter/ipt'
aarch64-openwrt-linux-musl-gcc -fPIC -I../.. -I../../src/include -I../../src/lib -I../src -I../libre -DOPENDPI_NETFILTER_MODULE -O2 -Wall -D_INIT=libxt_ndpi_init -c -o libxt_ndpi.o libxt_ndpi.c;
aarch64-openwrt-linux-musl-gcc -shared -o libxt_ndpi.so libxt_ndpi.o;
/home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64 -openwrt-linux-musl/bin/ld: libxt_ndpi.o: in function `_init':
libxt_ndpi.c:(.text+0x30b0): multiple definition of `_init'; /home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.3.0_musl/ lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/lib/crti.o:/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/toolchain-aarch6 4_cortex-a53_gcc-11.3.0_musl/musl-1.2.3/crt/aarch64/crti.s:5: first defined here
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:12: libxt_ndpi.so] Error 1
rm libxt_ndpi.o
make[5]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392 cf0c7d51c44e076a91fc4db0cbbd6403/ndpi-netfilter/ipt'
make[4]: *** [Makefile:2: all] Error 2
make[4]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392 cf0c7d51c44e076a91fc4db0cbbd6403/ndpi-netfilter'
make[3]: *** [Makefile:82: /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/ndpi-netfilter2-4-b19e6392c f0c7d51c44e076a91fc4db0cbbd6403/.built] Error 2
make[3]: Leaving directory '/home/vbox/openmptcprouter/feeds/openmptcprouter/ndpi-netfilter2'
time: package/feeds/openmptcprouter/ndpi-netfilter2/compile#70.28#45.25#105.78
ERROR: package/feeds/openmptcprouter/ndpi-netfilter2 failed to build.
make[2]: *** [package/Makefile:116: package/feeds/openmptcprouter/ndpi-netfilter2/compile] Error 1
make[2]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source'
make[1]: *** [package/Makefile:110: /home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source'
make: *** [/home/vbox/openmptcprouter/bpi-r3/5.15/source/include/toplevel.mk:231: world] Error 2
Any ideas? Did I screw up the toolchain with my patches?
So I fixed that error with a patch for the Makefile that includes the "-nostartfiles" flag when building the shared object for ndpi-netfilter2/lpt.
After that the build got stuck on missing dependency errors for the firewall package. Took me a while to realize that I was trying to build the openmptcprouter master feed instead of the develop feed for kernel 5.15. So back to square one. At least I am slowly getting familiar with the build system.
Okay, with the correct settings the build continues almost till the end. But the build fails at the very end when generating the sdcard image:
cp /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-nor-bl31-uboot.fip /home/vbox/openmptcprouter/bpi-r3/5.15/source/bin/targets/mediatek/filogic/open
mptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-nor-bl31-uboot.fip
cat /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8d
cd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.tmp >> /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_corte
x-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz
cp /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-snand-preloader.bin /home/vbox/openmptcprouter/bpi-r3/5.15/source/bin/targets/mediatek/filogic/ope
nmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-snand-preloader.bin
rm /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.tmp
dd if=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-
8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz of=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-
a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new bs=1
7k conv=sync
DEVICE_ID="bananapi_bpi-r3" SOURCE_DATE_EPOCH=1671220716 FILE_NAME="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-banana
pi_bpi-r3-emmc-preloader.bin" FILE_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp" FI
LE_TYPE="emmc-preloader.bin" DEVICE_IMG_PREFIX="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3" DEVICE_VE
NDOR="Bananapi" DEVICE_MODEL="BPi-R3" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1_M
ODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Bananapi BPi-R3" DEVICE_PACKAGES="kmod-hwmon-p
wmfan kmod-i2c-gpio kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs" TARGET="mediatek" SUBTARGET="filogic" VERSION_NUMBER="v0.59.2alpha-develop-8dcd96b4" VERSION_
CODE="r0+21517-d7876daf65" SUPPORTED_DEVICES="bananapi,bpi-r3" /home/vbox/openmptcprouter/bpi-r3/5.15/source/scripts/json_add_image_info.py /home/vbox/openmp
tcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/json_info_files/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-media
tek-filogic-bananapi_bpi-r3-emmc-preloader.bin.json
1+0 records in
1+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.000161472 s, 108 MB/s
mv /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a5
3_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz
DEVICE_ID="bananapi_bpi-r3" SOURCE_DATE_EPOCH=1671220716 FILE_NAME="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-banana
pi_bpi-r3-emmc-bl31-uboot.fip" FILE_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp" F
ILE_TYPE="emmc-bl31-uboot.fip" DEVICE_IMG_PREFIX="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3" DEVICE_
VENDOR="Bananapi" DEVICE_MODEL="BPi-R3" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1
_MODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Bananapi BPi-R3" DEVICE_PACKAGES="kmod-hwmon
-pwmfan kmod-i2c-gpio kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs" TARGET="mediatek" SUBTARGET="filogic" VERSION_NUMBER="v0.59.2alpha-develop-8dcd96b4" VERSIO
N_CODE="r0+21517-d7876daf65" SUPPORTED_DEVICES="bananapi,bpi-r3" /home/vbox/openmptcprouter/bpi-r3/5.15/source/scripts/json_add_image_info.py /home/vbox/open
mptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/json_info_files/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-med
iatek-filogic-bananapi_bpi-r3-emmc-bl31-uboot.fip.json
cat /home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/target-aarch64_cortex-a53_musl/image/mt7986-sdmmc-ddr4-bl2.img >> /home/vbox/openmptcprouter/bp
i-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediat
ek-filogic-bananapi_bpi-r3-sdcard.img.gz
DEVICE_ID="bananapi_bpi-r3" SOURCE_DATE_EPOCH=1671220716 FILE_NAME="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-banana
pi_bpi-r3-nor-preloader.bin" FILE_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp" FIL
E_TYPE="nor-preloader.bin" DEVICE_IMG_PREFIX="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3" DEVICE_VEND
OR="Bananapi" DEVICE_MODEL="BPi-R3" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1_MOD
EL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Bananapi BPi-R3" DEVICE_PACKAGES="kmod-hwmon-pwm
fan kmod-i2c-gpio kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs" TARGET="mediatek" SUBTARGET="filogic" VERSION_NUMBER="v0.59.2alpha-develop-8dcd96b4" VERSION_CO
DE="r0+21517-d7876daf65" SUPPORTED_DEVICES="bananapi,bpi-r3" /home/vbox/openmptcprouter/bpi-r3/5.15/source/scripts/json_add_image_info.py /home/vbox/openmptc
prouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/json_info_files/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediate
k-filogic-bananapi_bpi-r3-nor-preloader.bin.json
dd if=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-
8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz of=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-
a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new bs=6
656k conv=sync
DEVICE_ID="bananapi_bpi-r3" SOURCE_DATE_EPOCH=1671220716 FILE_NAME="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-banana
pi_bpi-r3-nor-bl31-uboot.fip" FILE_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp" FI
LE_TYPE="nor-bl31-uboot.fip" DEVICE_IMG_PREFIX="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3" DEVICE_VE
NDOR="Bananapi" DEVICE_MODEL="BPi-R3" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1_M
ODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Bananapi BPi-R3" DEVICE_PACKAGES="kmod-hwmon-p
wmfan kmod-i2c-gpio kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs" TARGET="mediatek" SUBTARGET="filogic" VERSION_NUMBER="v0.59.2alpha-develop-8dcd96b4" VERSION_
CODE="r0+21517-d7876daf65" SUPPORTED_DEVICES="bananapi,bpi-r3" /home/vbox/openmptcprouter/bpi-r3/5.15/source/scripts/json_add_image_info.py /home/vbox/openmp
tcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/json_info_files/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-media
tek-filogic-bananapi_bpi-r3-nor-bl31-uboot.fip.json
cp /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-snand-bl31-uboot.fip /home/vbox/openmptcprouter/bpi-r3/5.15/source/bin/targets/mediatek/filogic/op
enmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-snand-bl31-uboot.fip
DEVICE_ID="bananapi_bpi-r3" SOURCE_DATE_EPOCH=1671220716 FILE_NAME="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-banana
pi_bpi-r3-snand-preloader.bin" FILE_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp" F
ILE_TYPE="snand-preloader.bin" DEVICE_IMG_PREFIX="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3" DEVICE_
VENDOR="Bananapi" DEVICE_MODEL="BPi-R3" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1
_MODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Bananapi BPi-R3" DEVICE_PACKAGES="kmod-hwmon
-pwmfan kmod-i2c-gpio kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs" TARGET="mediatek" SUBTARGET="filogic" VERSION_NUMBER="v0.59.2alpha-develop-8dcd96b4" VERSIO
N_CODE="r0+21517-d7876daf65" SUPPORTED_DEVICES="bananapi,bpi-r3" /home/vbox/openmptcprouter/bpi-r3/5.15/source/scripts/json_add_image_info.py /home/vbox/open
mptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/json_info_files/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-med
iatek-filogic-bananapi_bpi-r3-snand-preloader.bin.json
0+1 records in
1+0 records out
6815744 bytes (6.8 MB, 6.5 MiB) copied, 0.0106114 s, 642 MB/s
mv /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a5
3_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz
DEVICE_ID="bananapi_bpi-r3" SOURCE_DATE_EPOCH=1671220716 FILE_NAME="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-banana
pi_bpi-r3-snand-bl31-uboot.fip" FILE_DIR="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp"
FILE_TYPE="snand-bl31-uboot.fip" DEVICE_IMG_PREFIX="openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3" DEVIC
E_VENDOR="Bananapi" DEVICE_MODEL="BPi-R3" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_AL
T1_MODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_TITLE="Bananapi BPi-R3" DEVICE_PACKAGES="kmod-hwm
on-pwmfan kmod-i2c-gpio kmod-sfp kmod-usb3 e2fsprogs f2fsck mkf2fs" TARGET="mediatek" SUBTARGET="filogic" VERSION_NUMBER="v0.59.2alpha-develop-8dcd96b4" VERS
ION_CODE="r0+21517-d7876daf65" SUPPORTED_DEVICES="bananapi,bpi-r3" /home/vbox/openmptcprouter/bpi-r3/5.15/source/scripts/json_add_image_info.py /home/vbox/op
enmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/json_info_files/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-m
ediatek-filogic-bananapi_bpi-r3-snand-bl31-uboot.fip.json
cat /home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/target-aarch64_cortex-a53_musl/image/mt7986_bananapi_bpi-r3-sdmmc-u-boot.fip >> /home/vbox/open
mptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d78
76daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz
dd if=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-
8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz of=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-
a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new bs=1
2M conv=sync
0+1 records in
1+0 records out
12582912 bytes (13 MB, 12 MiB) copied, 0.0149521 s, 842 MB/s
mv /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dc
d96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a5
3_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz
cp "/home/vbox/openmptcprouter/bpi-r3/5.15/source/bin/targets/mediatek/filogic/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-fil
ogic-bananapi_bpi-r3-initramfs-recovery.itb" "/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/t
mp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.stripmeta"
fwtool -s /dev/null -t "/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.
59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.stripmeta" || :
Data not found
fwtool -i /dev/null -t "/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.
59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.stripmeta" || :
Data not found
mkdir -p "/home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/target-aarch64_cortex-a53_musl/image"
dd if="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop
-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.stripmeta" of="/home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/target-
aarch64_cortex-a53_musl/image/mediatek-filogic-bananapi_bpi-r3-initramfs-recovery.itb"
80896+0 records in
80896+0 records out
41418752 bytes (41 MB, 40 MiB) copied, 0.223773 s, 185 MB/s
dd if="/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop
-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.stripmeta" >> "/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aa
rch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.im
g.gz"
80896+0 records in
80896+0 records out
41418752 bytes (41 MB, 40 MiB) copied, 0.170923 s, 242 MB/s
rm "/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8d
cd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.stripmeta"
bash: line 1: 8: Bad file descriptor
dd if=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-
8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz of=/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-
a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.new bs=4
4M conv=sync
dd: failed to open '/home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-v0.59.2
alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz': No such file or directory
make[5]: *** [Makefile:31: /home/vbox/openmptcprouter/bpi-r3/5.15/source/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/tmp/openmptcprouter-
v0.59.2alpha-develop-8dcd96b4-r0+21517-d7876daf65-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz] Error 1
make[5]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/target/linux/mediatek/image'
make[4]: *** [Makefile:17: install] Error 2
make[4]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/target/linux/mediatek'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source/target/linux'
time: target/linux/install#315.05#110.74#178.37
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:30: target/linux/install] Error 1
make[2]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source'
make[1]: *** [target/Makefile:24: /home/vbox/openmptcprouter/bpi-r3/5.15/source/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/vbox/openmptcprouter/bpi-r3/5.15/source'
make: *** [/home/vbox/openmptcprouter/bpi-r3/5.15/source/include/toplevel.mk:231: world] Error 2
I have no idea how to fix this.
EDIT Might be an upstream issue https://github.com/openwrt/openwrt/issues/11760
Got an image up and running on the eMMC of the R3. I am testing everything now. Launching v2ray causes a real high CPU load but OpenVPN and Wireguard seem to work. The upload speeds seem very slow for some reason, I need to investigate whats going on there. But in general it seems to be up and stable so far.
Hello. I have Banana PI R2 Pro. How can i compile for my version?
@polskafan Can you please share your config? I'm failing at that step as well
Nvm that, my WSL was just acting up
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days
Hi, will you create an upgrade to support banana pi r3 ?