Running .NET Core 3.0 on Raspberry Pi 4: Truly 64-bit!

Click the blue text above to follow “Mastering VS Code”

Introduction

Not long ago, I wrote an article titled “Installing .NET Core 3.0 Runtime and SDK on Raspberry Pi 4” and subsequent articles titled “Self-starting .NET Core 3.0 Environment on Raspberry Pi”, “Nginx Configuration for Internal Access to ASP.NET Core 3.0 Website on Raspberry Pi 4”, and “田牌魔术 | .NET Core 3.0 + Azure Remote Lighting on Raspberry Pi”. However, at that time, the official Raspberry Pi operating system Raspbian did not have a 64-bit version, so I could only run the ARM32 version of .NET Core 3.0. But now, the situation has changed, and today I successfully ran the ARM64 version of .NET Core 3.0 on Raspberry Pi 4.

Gentoo

As I was barely surviving using Linux due to the desolation of Windows 10 IoT Core (and its UWP applications), I have completely switched to Gentoo, a Linux system that supports the 64-bit CPU of Raspberry Pi 4. Project address:

https://github.com/sakaki-/gentoo-on-rpi-64bit

Moreover, the author is a female.

Running .NET Core 3.0 on Raspberry Pi 4: Truly 64-bit!

I won’t elaborate on the system download and installation process; it’s exactly the same as installing other systems on Raspberry Pi. After installation, you can download the .NET Core 3.0 SDK, ARM64 version:

wget https://download.visualstudio.microsoft.com/download/pr/cbc83a0e-895c-4959-99d9-21cd11596e64/b0e59c2ba2bd3ef0f592acbeae7ab27d/dotnet-sdk-3.0.100-linux-arm64.tar.gz

wget https://download.visualstudio.microsoft.com/download/pr/5cbf9f66-7945-43e2-9b7c-351f900e9893/2fcd48f3d4db99283ebdb46daf9bacec/aspnetcore-runtime-3.0.0-linux-arm64.tar.gz

mkdir dotnet-arm64

tar zxf aspnetcore-runtime-3.0.0-linux-arm64.tar.gz -C $HOME/dotnet-arm64

tar zxf dotnet-sdk-3.0.100-linux-arm64.tar.gz -C $HOME/dotnet-arm64

export DOTNET_ROOT=$HOME/dotnet-arm64

export PATH=$PATH:$HOME/dotnet-arm64

Running .NET Core 3.0 on Raspberry Pi 4: Truly 64-bit!

The other .NET Core operations are the same as what I previously wrote, and you can also play with ASP.NET Core.

Ubuntu 19.10

Recently, Ubuntu released version 19.10, claiming to support Raspberry Pi 4. The 64-bit image download and installation documentation for Raspberry Pi 4 can be found here:

https://ubuntu.com/download/iot/raspberry-pi

Running .NET Core 3.0 on Raspberry Pi 4: Truly 64-bit!

Unfortunately, I was never able to successfully boot this version of the Ubuntu system on Raspberry Pi 4. A thing called cloud-init successfully blocked every boot attempt, so I couldn’t experiment with whether Ubuntu on Raspberry Pi 4 could run ARM64 .NET Core.

Official Raspbian 64-bit Version

On the official Raspberry Pi forum, an official Raspbian developer named dom posted this:

Pi4 64-bit raspbian kernel for testing – Focus on Pi4

https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=250730&hilit=64+bit

This is a very explosive beta version that has not been officially released. I also tried it, but found that although the system kernel is 64-bit, it seems that due to the userland being 32-bit, .NET Core 3.0 ARM64 was not successfully recognized.

Conclusion

Awesome or the author is awesome.

Running .NET Core 3.0 on Raspberry Pi 4: Truly 64-bit!

Recommended Reading:
  • Microsoft loves Python too!VS Code Python has been released!Jupyter Notebook native support is finally here!

  • Microsoft loves Java too!Microsoft announced Azure Spring Cloud services at the SpringOne conference!

  • What is it like to work at Microsoft?(Part Two)

  • Microsoft internal referral, valid for a long time

  • VS Code Zhihu Live, participation exceeded 1000 people!

  • Code editor comparison: Why VS Code can take the lead

  • Is it known that VS Code is not just open source?

  • Those years, we chased VS Code together.

Mastering VS Code

VS Code, development tools, industry news

Running .NET Core 3.0 on Raspberry Pi 4: Truly 64-bit!

Leave a Comment

×