You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any effort in place to bring support for the ARM6 platform?
I think the PI Zero is perfect platform for lots of different IOT projects and it would be quite a shame if there is no support for it.
Reacted by Mihail Pw, Nikolay Ninarski, Daniel Little, Yan Rymarchyk, Rick de Water, David Cuccia (he/him), David Refoua, Hans Olav Loftum, David Falkner, Nicholas Williams and 113 more
Reacted by Christy, Paul Ruben, Janis Berzins, Rowan Clarke, Philippe Paré and Thomas Galliker
Reacted by Philippe Paré, JuDelCo, Fausto David Suarez Rosario, martinkalis and Thomas Galliker
I would be fantastic if there is support for ARMv6 cpu like Pi Zero and Pi Zero W. For some use cases there is no need to use a more powerful ARMv7 like Pi 3.
Reacted by Iván Padrón, Nicholas Williams, Philippe Paré, Peter Andersson, Nick Mertin, John Mills, Filipe Madureira, Andrei Trifonov, josebaezmedina, meldridon and 17 more
Reacted by Iván Padrón, Nicholas Williams, Philippe Paré, Peter Andersson, shaojun, Filipe Madureira, Andrei Trifonov, Dave Glover, josebaezmedina, ʃʈɑɲ and 16 more
Any word on armv6 support? I have two pi zeros just waiting for a purpose..
Reacted by Iván Padrón, Yan Rymarchyk, Rick de Water, Adrian Gaś, David Cuccia (he/him), Filipe Madureira, shaojun, Andrey Klimov, Tomasz, Sebastian Gingter and 4 more
@dcuccia, @mikedn the corert has a mode in which it compiles into C++, so that could solve the problem. However, I have lost track on how much stuff actually works in that mode. @jkotas can you please provide some details on that?
Patch Microsoft.NETCoreSdk.BundledVersions.props in your net7 to add linux-armv6 to all the net7-related places you see linux-s390x (a search & replace is fine)
@c-harris Exactly, the same find-replace procedure (replacing linux-s390x with linux-armv6) was taken here. Actually, if I remember correctly, I grepped all occurences of linux-s390x in the repo and changed them, due to the error message not pointing mi into directly this file.
@michaldobrodenka or anyone else: have you find uploaded packages useful and actually done something with them? I am currently running my home automation bot (which uses a lot of third party nuget libs) and everything works fine :) (Except for the serial port due to it using a native binary whose armv6 version is obviously missing from the SerialPort nuget package; however I managed to work it around).
I haven't worked with the new packages yet, but serial port support might be needed. What was your workaround, did you have to manually add the native binary to the project to get it working? Would it be worth creating an issue in this repo requesting that they include it in the System.IO.Ports package?
My workaround is very simple, but also probably not suitable for any advanced scenario. I am not using the library at all and opening serial port just as a normal file (which it is from the unix perspective), only disabling buffering:
and then using ReadByte and WriteByte to do the necessary work. For me it works great. However, once you need some setup for the port (e.g. baud rate), it wouldn't be useful.
As for creating the issue, you can try, but since armv6 is not supported, I guess it won't be a top priority. You could hove more luck by making a pull request. This is all only my personal opinion though.
@c-harris Exactly, the same find-replace procedure (replacing linux-s390x with linux-armv6) was taken here. Actually, if I remember correctly, I grepped all occurences of linux-s390x in the repo and changed them, due to the error message not pointing mi into directly this file.
@michaldobrodenka or anyone else: have you find uploaded packages useful and actually done something with them? I am currently running my home automation bot (which uses a lot of third party nuget libs) and everything works fine :) (Except for the serial port due to it using a native binary whose armv6 version is obviously missing from the SerialPort nuget package; however I managed to work it around).
I'm currently testing my home automation app. So far so good. Using Mono.IO.Ports for serial ports. Publishing as self contained and trimmed. Only minor problem is missing createdump and missing libMonoPosixHelper.so which I took from mono for ARMv6. I will test it more following days. Thank you for nuggets its a great push for start.
Alternatively if we remove native asset that could make it easier from shipping perspective as we don't need a special build for ARMv6 and just perhaps some runtime ifs in the code.
Make sure to also follow dotnet/iot#1797 and I'd encourage to continue conversation in there.
Activity
janvorli commentedon Mar 31, 2017
No, there is no such effort. Probably the biggest problem that would need to be solved is that JIT doesn't support ARM6 Thumb instruction encoding.
olegsavelos commentedon Apr 3, 2017
So what should i expect ? Is there is any chance there will be commitment from the community or MS to bring Arm6 support or the only way is Mono ?
alberk8 commentedon May 17, 2017
I would be fantastic if there is support for ARMv6 cpu like Pi Zero and Pi Zero W. For some use cases there is no need to use a more powerful ARMv7 like Pi 3.
pksorensen commentedon Sep 10, 2017
Would love to see ARMv6 supported :)
ivpadim commentedon Nov 9, 2017
I agree you should include support for ARMV6. I want to run dotnet core in the Pi Zero right now I'm stuck with mono.
jklaus commentedon Dec 22, 2017
Any word on armv6 support? I have two pi zeros just waiting for a purpose..
dcuccia commentedon Mar 26, 2018
@janvorli If the JIT is the problem, could we expect .Net Core on CoreRT to enable this?
mikedn commentedon Mar 26, 2018
@dcuccia CoreRT uses the same JIT compiler as CoreCLR so the problem remains.
janvorli commentedon Mar 26, 2018
@dcuccia, @mikedn the corert has a mode in which it compiles into C++, so that could solve the problem. However, I have lost track on how much stuff actually works in that mode. @jkotas can you please provide some details on that?
jkotas commentedon Mar 26, 2018
CppCodeGen runs simple programs (hello world, etc.). From https://github.com/dotnet/corert#platform-support : The big missing features are reflection, garbage collection, and exception handling.
I agree that CoreRT + CppCodeGen would a good option for platform reach.
pksorensen commentedon Mar 26, 2018
@jkotas Do i read this correct - following the example from corert -> https://github.com/dotnet/corert/tree/master/samples/WebApi i can compile that with cppCodeGen and it can run on my rasp pi zero?
Or will it still fail due to only having ARMv6 ?
jkotas commentedon Mar 26, 2018
CppCodeGen is too incomplete for WebApi sample. Reflection and garbage collection would have to work first.
pksorensen commentedon Mar 26, 2018
thanks @jkotas - but then a hello world and some basic IO/httpclient stuff will work?
jkotas commentedon Mar 26, 2018
httpclient is a pretty complex piece of code. You can give it a try, but I doubt that it would work with CppCodeGen today.
nhuurnink commentedon Jul 26, 2018
Is there any intention of providing the support for ARMv6?
152 remaining items
konrad-kruczynski commentedon Feb 23, 2022
Nuget packages.zip
@michaldobrodenka Here you are then :)
c-harris commentedon Mar 3, 2022
@konrad-kruczynski could i ask what specific changes you had to make to RuntimeIdentifierGraph.json?
mguinness commentedon Mar 3, 2022
@c-harris The answer is in a previous post, see below:
#7764 (comment)
#7764 (comment)
konrad-kruczynski commentedon Mar 5, 2022
@c-harris Exactly, the same find-replace procedure (replacing linux-s390x with linux-armv6) was taken here. Actually, if I remember correctly, I grepped all occurences of linux-s390x in the repo and changed them, due to the error message not pointing mi into directly this file.
@michaldobrodenka or anyone else: have you find uploaded packages useful and actually done something with them? I am currently running my home automation bot (which uses a lot of third party nuget libs) and everything works fine :) (Except for the serial port due to it using a native binary whose armv6 version is obviously missing from the SerialPort nuget package; however I managed to work it around).
mguinness commentedon Mar 5, 2022
I haven't worked with the new packages yet, but serial port support might be needed. What was your workaround, did you have to manually add the native binary to the project to get it working? Would it be worth creating an issue in this repo requesting that they include it in the System.IO.Ports package?
konrad-kruczynski commentedon Mar 6, 2022
My workaround is very simple, but also probably not suitable for any advanced scenario. I am not using the library at all and opening serial port just as a normal file (which it is from the unix perspective), only disabling buffering:
and then using
ReadByteandWriteByteto do the necessary work. For me it works great. However, once you need some setup for the port (e.g. baud rate), it wouldn't be useful.As for creating the issue, you can try, but since armv6 is not supported, I guess it won't be a top priority. You could hove more luck by making a pull request. This is all only my personal opinion though.
michaldobrodenka commentedon Mar 6, 2022
I'm currently testing my home automation app. So far so good. Using Mono.IO.Ports for serial ports. Publishing as self contained and trimmed. Only minor problem is missing createdump and missing libMonoPosixHelper.so which I took from mono for ARMv6. I will test it more following days. Thank you for nuggets its a great push for start.
mguinness commentedon Mar 6, 2022
@konrad-kruczynski Was the missing native library
System.IO.Ports.Native.so? I suppose that gets pulled from the dependency on runtime.native.System.IO.Ports which is probably only ARMv7.@krwq There's a discussion about packaging in #27871, what would be needed to support
System.IO.Portson ARMv6?@michaldobrodenka When you say
Mono.IO.Portsare you referring to your own System.IO.Ports.Mono package? Another project I've seen mentioned for serial ports is SerialPortStream repo.michaldobrodenka commentedon Mar 7, 2022
Yes, check https://github.com/michaldobrodenka/System.IO.Ports.Mono package, but that depends on libMonoPosixHelper native library not present in Mono.POSIXHelper Nuget. So better is to compile System.IO.Ports.Mono against managed Mono.Posix.NETStandard.dll (extracted from NuGet) and attach libMonoPosixHelper.so compiled for ARMv6 (I'm attaching one from mono installation)
libMonoPosixHelper.zip
krwq commentedon Mar 8, 2022
@mguinness we'd need to create a native asset with ARMv6 which means our official builds would need to build that asset first and then changing https://github.com/dotnet/runtime/tree/main/src/libraries/System.IO.Ports/pkg to include that in the nuget package.
Alternatively if we remove native asset that could make it easier from shipping perspective as we don't need a special build for ARMv6 and just perhaps some runtime
ifs in the code.Make sure to also follow dotnet/iot#1797 and I'd encourage to continue conversation in there.
michaldobrodenka commentedon Mar 8, 2022
@krwq From my point of view System.IO.Ports is so CPU intensive that it is unusable.
kasperk81 commentedon Mar 8, 2022
major issues are: high cpu #2379 and memory leak #55146. doesn't require very specific hardware to reproduce them.
konrad-kruczynski commentedon Mar 9, 2022
Actually, totally managed library for serial port would really be nice.
mguinness commentedon Mar 11, 2022
There is a discussion at dotnet/iot#1832 regarding a new serial port class for those that are interested.