Andy22 Posted November 11, 2015 Report Share Posted November 11, 2015 Hi, there seem to-be a ARM binary, but it seems its not ARMv7l compatible so i can't run it on the latest lineup of openWRT compatible ARM routers/NAS? Getting BTSync to compile on openWRT should be relatively simple, since they have a good toolset in place and are very close to a "real" linux distribution in terms of available packages and there use of a extroot overlay filesystem. So is there a package available that is compatible and can be used on those ARM V7l, A9 Routers running openWRT/DD-WRT? Quote Link to comment Share on other sites More sharing options...
RomanZ Posted November 12, 2015 Report Share Posted November 12, 2015 @Andy22Actually, it is compatible. Did you try to run Sync ARM binary on your router? What exactly it says when you try to run it? Also, could you please show the output of /proc/cpuinfo file? Quote Link to comment Share on other sites More sharing options...
Andy22 Posted November 12, 2015 Author Report Share Posted November 12, 2015 Yes i did download the arm binary and extracting and setting the execute flag simply results in:./btsync-sh: ./btsync: not foundThis seems to indicate that the binary is not recognized as compatible executeable, since the file exists in the directory and has the +X flags. I can also run other binarys from the same location just fine. model name : ARMv7 Processor rev 1 (v7l)processor : 1BogoMIPS : 2655.84Features : half thumb fastmult vfp edsp vfpv3 tls vfpd32CPU implementer : 0x41CPU architecture: 7CPU variant : 0x4CPU part : 0xc09CPU revision : 1Hardware : Marvell Armada 380/385 (Device Tree)Revision : 0000Serial : 0000000000000000 Quote Link to comment Share on other sites More sharing options...
RomanZ Posted November 13, 2015 Report Share Posted November 13, 2015 @Andy22That's a linking issue. To solve it, find the linker binary refers to (run "file btsync" or "readelf -d btsync" command). Then you'll need to create a symlink pointing to the linker that actually exists on your OS. Quote Link to comment Share on other sites More sharing options...
Andy22 Posted November 17, 2015 Author Report Share Posted November 17, 2015 @Andy22That's a linking issue. To solve it, find the linker binary refers to (run "file btsync" or "readelf -d btsync" command). Then you'll need to create a symlink pointing to the linker that actually exists on your OS. Only problem is DD-WRT 3.0 does not come with a "file" or "readelf" binary... PS: Guess now i need to find out where i can grab a arm compatible readelf binary that runs on the router. I realy do not want to invest the time and install the DD-WRT toolchain and compile my own binutils. What clib you compile against btw? Maybe you might consider linking statically against MUSL in the future to prevent such cases for embedded devices? Quote Link to comment Share on other sites More sharing options...
RomanZ Posted December 4, 2015 Report Share Posted December 4, 2015 @Andy22You can do it on any other computer. For Sync 2.2.7 path is "/lib/ld-linux.so.3" so you can create a symlink pointing to the linker you have (likely /lib/ld-linux-arm*.so.3) We are compiling with GNU C Library 2.13. For the linking statically against MUSL - it is very unlikely we are going to implement it in future, although thanks for proposal. Quote Link to comment Share on other sites More sharing options...
asins Posted October 9, 2016 Report Share Posted October 9, 2016 Hi, My router is wndr4300, cpuinfo is: root@OpenWrt:~# cat /proc/cpuinfo system type : Atheros AR9344 rev 2 machine : NETGEAR WNDR4300 processor : 0 cpu model : MIPS 74Kc V4.12 BogoMIPS : 278.93 wait instruction : yes microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 dsp dsp2 shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available I download btsync from https://download-cdn.getsync.com/2.3.8/linux-arm/BitTorrent-Sync_arm.tar.gz I run btsync is error: root@OpenWrt:~# /usr/bin/btsync /usr/bin/btsync: line 1: syntax error: unexpected word (expecting ")") Quote Link to comment Share on other sites More sharing options...
RomanZ Posted October 10, 2016 Report Share Posted October 10, 2016 @asins wndr4300 has MIPS CPU. MIPS is not supported and ARM binary won't run on MIPS CPU. Quote Link to comment Share on other sites More sharing options...
ismsec Posted May 2, 2017 Report Share Posted May 2, 2017 On 11/17/2015 at 10:32 AM, Andy22 said: Only problem is DD-WRT 3.0 does not come with a "file" or "readelf" binary... PS: Guess now i need to find out where i can grab a arm compatible readelf binary that runs on the router. I realy do not want to invest the time and install the DD-WRT toolchain and compile my own binutils. What clib you compile against btw? Maybe you might consider linking statically against MUSL in the future to prevent such cases for embedded devices? Did you get it patched? Care to share? My library is: ld-musl-arm.so.1 Quote Link to comment Share on other sites More sharing options...
udif Posted April 20, 2018 Report Share Posted April 20, 2018 I solved this in a different way: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.