I have a Buffalo Airstation WZR-HP-G300NH with a preinstalled dd-wrt for which I want to compile additional programs.
I tried the toolchains i686-pc-linux_mipsel-hdhlan-linux-2.0 recommended here:http://buffalo.nas-central.org/index.ph ... -Toolchain
The resulting binary seems to bo okay:
a.out: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), statically linked, for GNU/Linux 2.4.3, not stripped
Unfortunately, when running
./a.out: line 1: syntax error: "(" unexpected
This happens even with a simple Hello-world program.
Is the toolchain the wrong one?
Which would be better suited?