Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add build for ARM platform (specifically Raspberry Pi Raspbian OS) #2463

Closed
mi-hol opened this Issue Oct 12, 2016 · 37 comments

Comments

@mi-hol
Copy link

mi-hol commented Oct 12, 2016

Enhance build process to provide a downloadable PowerShell executable for ARM platform, specifically the millions of Raspberry Pi devices running Raspbian OS. .Net core is already providing such a build
[Arm/CI] Add hardfp build to arm32_ci_script.sh #12577

@alanrenouf

This comment has been minimized.

Copy link

alanrenouf commented Nov 8, 2016

That's a shame, I was also looking at this, especially with docker being available for the raspberry pi +1 from me!

@CheshireCat44

This comment has been minimized.

Copy link

CheshireCat44 commented Nov 19, 2016

Given the number of people coming to Linux via the Raspberry pi, this looks like a win-win for the Pi and for Powershell.

@mms-

This comment has been minimized.

Copy link

mms- commented Dec 2, 2016

I want this.

@hansze

This comment has been minimized.

Copy link

hansze commented Dec 13, 2016

would be great to have by time dotnet core for debian ARM is available. Seems to be planned for Q1 2017

@JefferMC

This comment has been minimized.

Copy link

JefferMC commented Dec 17, 2016

This would be great. I have some PowerShell scripts on a Windows box (that collect data from a network Gateway that doesn't have SNMP). I'd rather just copy over to my Pi than re-write in bash/perl or something else.

@dougransom

This comment has been minimized.

Copy link

dougransom commented Dec 27, 2016

i would be interested in powershell on raspberry pi.

@kalzi

This comment has been minimized.

Copy link

kalzi commented Jan 6, 2017

Yes, PowerShell with ARM Support on Raspberry Pi would make great usecases such as low cost/power management station for HomeLabs. Please consider!! +1

@iSazonov

This comment has been minimized.

Copy link
Collaborator

iSazonov commented Jan 6, 2017

Today CoreFX and CLI is still not ready for ARM on daily basis.

@tibmeister

This comment has been minimized.

Copy link

tibmeister commented Feb 16, 2017

As soon as the ARM support for dotnet core is out I plan on testing a compile of this and seeing if it will work outta the box or not...

@joeyaiello

This comment has been minimized.

Copy link
Member

joeyaiello commented Feb 16, 2017

This should "just work" for the .NET bits of PowerShell; the tricky part is getting the native PowerShell binaries to compile for arm32/arm64 out of GitHub.

@SteveL-MSFT SteveL-MSFT added this to Priority-Low in Linux Distro/Mac Coverage Mar 16, 2017

@vors

This comment has been minimized.

Copy link
Collaborator

vors commented Mar 16, 2017

@Serkan-devel

This comment has been minimized.

Copy link

Serkan-devel commented May 10, 2017

Maybe also package it as an Appimage so it can work on some Android devices when running a terminal app

@olleg

This comment has been minimized.

Copy link

olleg commented Jun 22, 2017

Please release packages with support for ARM.

@stevedesmond-ca

This comment has been minimized.

Copy link

stevedesmond-ca commented Jul 3, 2017

I can hopefully pick this up in the next week or two -- seems fairly straightforward if we follow the .NET Core convention to allow an arg like --rid=ubuntu.16.04-arm on the build script to override the default, for cross-compiling to other platforms/architectures.

@apetitjean

This comment has been minimized.

Copy link

apetitjean commented Aug 22, 2017

Any update on the topic since .Net Core 2.0 is now available for ARM32? Has anyone give it a try?

@SteveL-MSFT SteveL-MSFT self-assigned this Aug 22, 2017

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Aug 22, 2017

The hard part is getting the native library to cross build for arm32. I'll give it a try, but I'm certainly no expert on this.

@stevedesmond-ca

This comment has been minimized.

Copy link

stevedesmond-ca commented Aug 23, 2017

Build seems straightforward enough, let me know if you need a hand -- I should have time this week to get this working.

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Aug 23, 2017

@stevedesmond-ca if you can get libpsl to build for arm32, I'll take care of the dotnet side. Thanks!

@apetitjean

This comment has been minimized.

Copy link

apetitjean commented Aug 23, 2017

Great guys! I'm looking forward testing it when ready ;-) !

@whatevergeek

This comment has been minimized.

Copy link

whatevergeek commented Aug 23, 2017

i just tried building/publishing for linux-arm... publish is ok...
but when i run inside Raspbian, i get the following issue:

PowerShell v6.0.0-alpha.18-395-gd467d520a30403d561aaaf44498af141e78c57d9
Copyright (C) Microsoft Corporation. All rights reserved.

Unable to load DLL 'libpsl-native': The specified module or one of its dependencies could not be found.
 (Exception from HRESULT: 0x8007007E)
Segmentation fault

Any advice how to proceed from here?

@stevedesmond-ca

This comment has been minimized.

Copy link

stevedesmond-ca commented Aug 23, 2017

This is what @SteveL-MSFT was talking about -- the native components need to be cross-compiled. I'll hopefully get a PR in for this today.

@whatevergeek

This comment has been minimized.

Copy link

whatevergeek commented Aug 23, 2017

thanks @stevedesmond-ca
i was thinking of using it in my demo tomorrow ... but no worries...
will share in another talk... once available :-)

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Aug 25, 2017

Got it building, libpsl-native is loaded correctly, but after a pause a segmentation fault when the prompt should be showing up.

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Aug 29, 2017

Opened corefx issue dotnet/corefx#23660

@stevedesmond-ca

This comment has been minimized.

Copy link

stevedesmond-ca commented Sep 1, 2017

Segfault issue is being tracked at dotnet/coreclr#13667

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Sep 13, 2017

Issue was fixed in CoreCLR, but not in time for beta.7. Will see about getting a working build for beta.8

dotnet/coreclr#13922

@mi-hol

This comment has been minimized.

Copy link
Author

mi-hol commented Sep 13, 2017

@SteveL-MSFT thanks for sharing the good news about 'getting a working build for beta.8'.
It seems we are only a few weeks away from achieving the goal of this request.
But unfortunately from my view, with very limitied visibility of what is going on behind the scenes, how can I as requestor trace the progress towards achiving the ultimate goal of this (now closed) request?

@stevedesmond-ca

This comment has been minimized.

Copy link

stevedesmond-ca commented Sep 13, 2017

Is it worth getting nightly/CI builds set up for Linux on ARM?

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Sep 13, 2017

I'm at Open Source Summit this week and I didn't bring my pi with me. Since the coreclr fix was merged, you could try picking up their nightly build along with building powershell for linux-arm as that change has been merged to our master branch. Otherwise, I'll work on this next week once I get back.

@apetitjean

This comment has been minimized.

Copy link

apetitjean commented Sep 13, 2017

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Sep 20, 2017

Added instructions on how to get this working #4882

@nikonthethird

This comment has been minimized.

Copy link

nikonthethird commented Oct 6, 2017

Issue was fixed in CoreCLR, but not in time for beta.7. Will see about getting a working build for beta.8

@SteveL-MSFT Is there a working build for beta.8?

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Oct 6, 2017

@nikonthethird not until CoreCLR puts out a 2.0.x servicing build. We're not moving to CoreCLR 2.1.x for 6.0.0 release as it's not stable.

@DaleMitchell

This comment has been minimized.

Copy link

DaleMitchell commented Oct 20, 2017

Unfortunately I do not have access to an Ubuntu machine to compile the binaries for Raspbian. Is someone kind enough to upload them here?

@markekraus

This comment has been minimized.

Copy link
Collaborator

markekraus commented Oct 20, 2017

@DaleMitchell You could always use Hyper-v on Windows 10 or any of the free VM tools for previous windows versions, download an Ubuntu ISO, and compiled the binaries in the VM.

@TravisEz13

This comment has been minimized.

Copy link
Member

TravisEz13 commented Oct 27, 2017

for compiling, I often just use docker, but it takes getting used to.

@SteveL-MSFT

This comment has been minimized.

Copy link
Member

SteveL-MSFT commented Oct 27, 2017

We're planning on moving to a preview of dotnetcore 2.0.x servicing release after which we should be able to start producing Pi packages hopefully for the release candidate

@joeyaiello joeyaiello moved this from Priority-Low to Completed in Linux Distro/Mac Coverage Dec 5, 2017

@SteveL-MSFT SteveL-MSFT moved this from Completed to Done in Linux Distro/Mac Coverage Mar 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.