Click the blue text above to follow “Wang Yujie’s Blog”
Introduction
Not long ago, I wrote an article titled “Installing .NET Core 3.0 Runtime and SDK on Raspberry Pi 4”, followed by subsequent articles on “Auto-Starting .NET Core 3.0 on Raspberry Pi”, “Nginx Configuration for Internal Access to Raspberry Pi 4 ASP.NET Core 3.0 Website”, and “Tianpai Magic | .NET Core 3.0 + Azure Remote Lighting of a Lamp on Raspberry Pi”. However, back then, 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, things have changed, and today I successfully ran the ARM64 version of .NET Core 3.0 on Raspberry Pi 4.
Gentoo
Since Windows 10 IoT Core (and the UWP apps on it) have been abandoned, I have been surviving on Linux. Recently, I discovered a Linux system called Gentoo, which 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!
I won’t elaborate on the system download and installation process; it is exactly the same as installing other systems on Raspberry Pi. Once installed, 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
The rest of the .NET Core operations are the same as I wrote in my previous articles, and you can also play with ASP.NET Core.
Ubuntu 19.10
Recently, Ubuntu released a version 19.10 that claims to support Raspberry Pi 4. The download and installation documentation for the 64-bit image for Raspberry Pi 4 is here:
https://ubuntu.com/download/iot/raspberry-pi
Unfortunately, I have never been able to successfully boot this version of the Ubuntu system on Raspberry Pi 4. Something called cloud-init successfully hangs every boot attempt, so I can’t experiment whether Ubuntu can run ARM64 .NET Core on Raspberry Pi 4.
Official Raspbian 64-bit Version
On the official Raspberry Pi forum, a 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 test version that has not been officially released. I also tried it, and 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 recognized successfully.
Conclusion
Isn’t it amazing, or is it the female developer who is amazing?
Leave a Comment
Your email address will not be published. Required fields are marked *