Skip to content

树莓派安装注意事项

zsnmwy edited this page Apr 22, 2018 · 1 revision

由于 .NET Core的本身原因,并不是每一款树莓派都支持运行ASF3.0 存在着一定的限制,下面是微软官方的原话

Arm32 builds are available as community supported builds for .NET Core 2.0. There is no SDK that runs on ARM32 but you can publish an application that will run on a Raspberry Pi. These steps have been tested on a RPi 2 and RPi 3 with Linux and Windows. Note: Pi Zero is not supported because the .NET Core JIT depends on armv7 instructions not available on Pi Zero.

简单来说就是,只是支持PI2/3,不支持Pi Zero。 并且在arm32上面装不了SDK。
如果你想了解更多,可以看看下面的这两篇文章
.NET Core on Raspberry Pi
Setting up Raspian and .NET Core 2.0 on a Raspberry Pi

这个dotnet的相关依赖,解压放在了/opt/dotnet

/opt/dotnet/
├── dotnet
├── host
│   └── fxr
│       └── 2.2.0-preview1-26420-14
│           └── libhostfxr.so
├── LICENSE.txt
├── shared
│   └── Microsoft.NETCore.App
│       └── 2.2.0-preview1-26420-14
│           ├── libclrjit.so
│           ├── libcoreclr.so
│           ├── libcoreclrtraceptprovider.so
│           ├── libdbgshim.so
│           ├── libhostpolicy.so
│           ├── .
│           ├── .
│           ├── .
│           ├── .
│           ├── System.Xml.XPath.dll
│           ├── System.Xml.XPath.XDocument.dll
│           └── WindowsBase.dll
└── ThirdPartyNotices.txt

在系统方面的适配,我只是适配了Raspian 你可以在树莓派的官网上面下载到 防止官方系统更新出现的兼容性问题,在这里附上我自己所用的树莓派3镜像(不带桌面的),也是从官网下的。

链接:https://pan.baidu.com/s/1BdXarpShRr7aXxqDJ84T5g  密码:efr1

如何刷入镜像

我这里推荐使用Etcher
只需要下载好镜像,插入SD卡,在Ethcher选下镜像,点Flash就好了
简单到我都不想配图
Etcher

如果你是刷入无桌面的Raspian,还需要在boot分区里面新建一个空白的,无后缀名的ssh
这样子你才能够通过ssh连上去~~~

剩下的参照常规安装就好了

Clone this wiki locally