[erlang-questions] How to compiler Erlang for the TILEPro64?
Fri Jan 29 15:45:29 CET 2010
To compile Erlang for Tilera you can do the following,
1) Setup the Tilera Environment.
For example for me it is:
This is the cross compile environment supplied to you by Tilera Corp.
2) Setup The Erlang Build Environment:
tar -zxvf otp_src_R13B03.tar.gz
eval `./otp_build env_cross
Crypto (and its dependencies) will not work so you need to SKIP those.
3) Build Erlang/OTP
./otp_build boot -a
./otp_build release -a <release dir>
4) Start Erlang,
cd <release dir>
tile-monitor --pci --here -- bin/erl
Of course you would probably want to upload everything to the card, just
like other applications you need to upload.
Contact Tilera Corp. for optimal settings and hardware configuration.
This should work on R13B03. However, from R13B04 this way will change
and it will be better support cross compilation.
Stefan Marr wrote:
> I have tried to compile Erlang (otp_src_R13B03) for the TILEPro64.
> I was starting from the following bits of information:
> When I tried to execute: ./otp_build env_cross $ERL_TOP/xcomp/erl-xcomp-TileraMDE2.0-tilepro.conf
> I got an error asking me to do a
> "eval `./otp_build env_cross $ERL_TOP/xcomp/erl-xcomp-TileraMDE2.0-tilepro.conf`" instead, but this command didn't generate any output.
> The wiki article on the other hand, asks me to choose a target "TARGET=mips-linux" and I am not sure where to find out the right target.
> Would be great, if someone could point me at some documentation, or could give me advice on how to compile Erlang for the Tilera card.
> Many thanks and best regards
More information about the erlang-questions