Sven Barth wrote:
On 15.06.2013 19:19, Dennis Poon wrote:
I eventually found this page which talked about downloading a special
toolchain from openwrt web site
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61112
I followed its instruction and successfully compiled a helloworld c
program and
successfully RUN the helloworld binary on Netgear 3700 running DD-Wrt !
I was overjoyed.
Then I tried to modify the steps to compile fpc
my toolchains is at /home/dennis/toolchains/staging_dir_mips/bin/
and in this folder, there are files: mips-linux-ar and mips-linux-as
so I
make clean all CPU_TARGET=mips OS_TARGET=linux
BINUTILSPREFIX=/home/dennis/toolchains/staging_dir_mips/bin/mips-linux-
It seems not to be your problem, but your arguments are not entirely
correct (and it "works" just by accident). BINUTILSPREFIX is *only* the
prefix of the binaries, in your case "mips-linux-". The path must be
passed as CROSSBINDIR like so:
CROSSBINDIR=/home/dennis/toolchains/staging_dir_mips/bin
And did you choose the correct endianess? Aka CPU_TARGET=mipsel or
CPU_TARGET=mipseb?
Maybe you could try to fiddle around with the arguments passed to
mips-linux-as by hand. This means take the command below and try to get
the prt0.as file to assemble:
/home/dennis/toolchains/staging_dir_mips/bin/mips-linux-as -32 -mips32
-EB -o /home/dennis/fpc/2.7.1/rtl/units/mips-linux/prt0.o mips/prt0.as
(current directory should be /home/dennis/fpc/2.7.1/rtl/linux )
That's probably a uClibc toolchain, one of the known issues is that it
has to load the right .so file on the target. The big question is
whether it also implies that there has to be special support for the
Atheros (Broadcom?) target in the RTL.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal