Closed a1ad closed 9 months ago
Looks like out of memory problem.
I just got some more time to check, and it is not an out of memory problem... Also, 5mb is huge for embedded devices
@a1ad can you share the output of:
cat /etc/openwrt_release
DISTRIB_ID='OpenWrt' DISTRIB_RELEASE='21.02.3' DISTRIB_REVISION='r16554-1d4dea6d4f' DISTRIB_TARGET='ath79/generic' DISTRIB_ARCH='mips_24kc' DISTRIB_DESCRIPTION='OpenWrt 21.02.3 r16554-1d4dea6d4f' DISTRIB_TAINTS=''
Same error for netbird_0.9.7-1_mipsel_24kc.ipk
Device is https://openwrt.org/toh/xiaomi/xiaomi_redmi_router_ac2100
# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.1'
DISTRIB_REVISION='r16325-88151b8303'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt 21.02.1 r16325-88151b8303'
DISTRIB_TAINTS=''
My local build with this go command (not upx-ed) works:
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS="softfloat" go build -ldflags "-s -w -X 'github.com/netbirdio/netbird/client/system.version=$TAG'" -o netbird .
Same error with v0.16.0 and v0.15.3
root@Teltonika-RUTX50:~/3rd_party_opkg# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.0'
DISTRIB_REVISION='r16279-5cc0535800'
DISTRIB_TARGET='ipq40xx/generic'
DISTRIB_ARCH='arm_cortex-a7_neon-vfpv4'
DISTRIB_DESCRIPTION='OpenWrt 21.02.0 r16279-5cc0535800'
DISTRIB_TAINTS='no-all busybox'
Testing netbird
root@Teltonika-RUTX50:~/3rd_party_opkg# netbird
Error relocating /usr/bin/netbird: __nanosleep_time64: symbol not found
Using the latest netbird_0.8.2-1_mips_24kc.ipk