C
C#9mo ago
Tim

✅ .NET Runtime on ARMv5

Is there a way to run .NET-Applications on an ARMv5 (in my case an EV3)?
14 Replies
reflectronic
reflectronic9mo ago
i believe it is possible to compile legacy Mono from source to target Armv5
cypherpotato
cypherpotato9mo ago
or you can compile your application to run in native aot
Tim
Tim9mo ago
Is there a armv5 target?
reflectronic
reflectronic9mo ago
no, Native AOT only supports Arm64 legacy mono is probably your only choice it is multi platform
Tim
Tim9mo ago
But not multi architecture
reflectronic
reflectronic9mo ago
that is the purpose of it it supports the most architectures of any .NET runtime https://www.mono-project.com/docs/about-mono/supported-platforms/ it is not listed on the page, but if i remember correctly, armv5 is one of the supported platforms mono is the best option for this. it is robust, stable, well-tested, has been used in production for many years. it is the original .NET runtime for linux, this is what you want
cypherpotato
cypherpotato9mo ago
or, you can use https://github.com/bflattened/bflat bflat compiler
GitHub
GitHub - bflattened/bflat: C# as you know it but with Go-inspired t...
C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables) - GitHub - bflattened/bflat: C# as you know it but with Go-inspired tooling (small, selfcontained, and ...
cypherpotato
cypherpotato9mo ago
but as i see it only compile to arm64 too...
reflectronic
reflectronic9mo ago
that is the same as Native AOT
cypherpotato
cypherpotato9mo ago
yes nvm
Tim
Tim9mo ago
And how do I build Mono myself?
reflectronic
reflectronic9mo ago
what you would probably do is use a toolchain for compiling C programs for ev3 like https://www.ev3dev.org/docs/tutorials/using-docker-to-cross-compile/ inside that docker container you can install the build tools required to build mono then you would follow the instructions in https://www.mono-project.com/docs/compiling-mono/linux/ inside of that container, except you would specify -host=arm-linux-gnueabi-gcc or something like that to autotools configure it is by no means a simple procedure, but i will try it myself to see if problems come up i do not have an ev3 to test with. and i don’t really know how you are supposed to transfer programs to the ev3 to run, you will have to read more of the ev3dev documentation you will also need to create a bunch of C# libraries to interact with all of the devices, which is not a small feat either
Accord
Accord8mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Tim
Tim8mo ago
Sorry for not answering long time... I found out, that using Python on my EV3 is way less work than using C#. But anyway thanks for your help, I appreciade that!
Want results from more Discord servers?
Add your server
More Posts