Guide to cross compilation for Omega2 ?
In order to compile with Rust i also need to know the correct target triple, i am guessing that it is either mips-unknown-linux-gnu or
mips-unknown-linux-musl , but it would be nice to know for sure.
While I am still waiting for my Omega2+ to arrive, I am guessing I am going to have to get hold of an equivalent toolchain for mt7688 -on initial investigation, it looks like I may be able to find something in the links provided by @Peter-Tiedemann
You could also just do like I do and build LEDE, then you'll have an up-to-date toolchain.
@WereCatf Thanks- yes that's probably what I'll do :-)
For the original Omega, I also built the toolchain for the ar71xx from the repository at git://git.openwrt.org/15.05/openwrt.git as referenced in https://wiki.onion.io/Tutorials/Cross-Compile
I also made the toolchain and available for others at https://github.com/KitBishop/Omega-ToolChain-SDK
I will probably do the same for the MT7688 once I find the equivalent repository for LEDE - if you have a reference for this it would help and be much appreciated :-)
@Kit-Bishop I uploaded the toolchain from my custom build of LEDE at https://dl.dropboxusercontent.com/u/11811685/lede-toolchain-ramips-mt7688_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2
@WereCatf Thanks for that :-)
I have found what I believe to be the LEDE repository (https://github.com/Juiceman/apm82181-lede) and have cloned it and am in the process of building an image and the toolchain myself.
I note that the toolchain you listed in your message uses musl whereas the toolchain I previously had for the AR71XX for the original Omega uses uClibc
Do you know which should be used for the Omega2 (still don't have mine yet so can't check yet :-() Do you know if it matters?
@Kit-Bishop yes, i saw the other thread after i wrote that
Steven de Salas
Anyone had any success with this?
OPKG is missing
serialportnpm module for nodejs and was thinking of trying to build it myself.
@simon with recent Go 1.8 release i was able to compile and run code (mux simple server) on my MacBook Pro late '15. So, there's no need to have
gccgotoolchain or whatever you've need before.
Take a look at this https://github.com/denismakogon/OnionIoT-Omega2
José Luis Cánovas
@Denys-Makogon It was so subtle the line where you indicate the cross-compilation I missed it the first 2 reads. Nice cross-compilation from Go.