当前位置: 首页>>技术教程>>正文


Raspberry Pi可以运行Ubuntu吗?

, , ,

问题描述

我正在考虑购买Raspberry Pi,并在其上运行Ubuntu。我浏览过网络,很多东西说它很难在ARM处理器上运行。有没有人想出如何让Raspberry pi运行Ubuntu?

最佳解决思路

来自Raspberry Pi的Official FAQ Page

What Linux distros will be supported at launch?

Fedora, Debian and ArchLinux will be supported from the start. We hope to see support from other distros later. (Because of issues with newer releases of Ubuntu and the ARM processor we are using, Ubuntu can’t commit to support Raspberry Pi at the moment.) You will be able to download distro images from us as soon as the Raspberry Pi is released, and we will also be selling pre-loaded SD cards shortly after release.


资料来源:My answer on Raspberry Pi SE


编辑

看来,自Raspberry Pi 2推出以来,Snappy Ubuntu Core可以在RP2上运行。

Thanks to a very successful collaboration between the Raspberry Pi Foundation and Canonical, the company behind Ubuntu, we are pleased to announce that Snappy Ubuntu Core is available for the Raspberry Pi 2, the latest Raspberry Pi family member.

但是,应该注意的是,这不是Ubuntu的桌面版本。

次佳解决思路

目前还没有 – Canonical仅支持ARM的ARMv7处理器架构,而Pi则支持ARMv6芯片。

第三种解决思路

ARM的一些并发症是所有发行版的常见问题,它们并不总是Ubuntu-specific。它们源于这样一个事实,即ARM具有许多不同的体系结构,彼此之间的兼容性有限。

领先的Linux ARM发行版如下(不包括根据定义编译为确切目标的Gentoo),我列出了相应的目标体系结构:

Ubuntu: ARMv7 and up, thumb 2 (32 bit)
Debian: ARMv4t and up (armel) ARMv7 and up (armhf)
Fedora: ARMv5tel (arm) ARMv7hl (armhf)
Arch Linux: ARMv5te or higher

对于您的具体问题,Raspberry PI运行BCM2835(ARM1176JZF-S)Broadcom CPU。这是armv6k架构,它与最近的Ubuntu版本不兼容,后者针对性能进行了优化,但却牺牲了与Broadcom这样的旧芯片设计的兼容性。

显而易见的选择是运行Debian的armel架构 – 你会感觉像在Ubuntu一样在家。

几年后重新审视这一点,现在市场上有多种R.PI模型:

Raspberry PI A,B,A +,B +,Zero和Zero W:这些与Ubuntu ARM版本不兼容,因为它们使用BCM2835 Broadcom CPU(ARM v6k)。

Raspberry PI 2,型号B:它运行BCM2836 Broadcom CPU。这是ARMv7架构,精确的是Cortex A7。这个板(可能是所有后续的“系列2”R.PI板)将运行Ubuntu就好了。

Raspberry PI 3,型号B,B +:它们运行在BCM2837 Broadcom CPU上。这是ARMv8架构,确切地说是一个Cortex-A53 64位芯片。这些板是目前在Raspberry PI上运行Ubuntu的最佳选择。

Canonical已经为R.PI 2发布了Ubuntu Core(又名”Snappy”),但值得注意的是这是一个没有桌面环境的服务器发行版。此外,可以扩展到包括桌面环境的标准Ubuntu 14.04和16.04服务器映像可用于R.PI 2和R.PI 3.现在,Ubuntu MATE也可用于Raspberry PI。

所有当前的Raspberry PI映像都是从Ubuntu wiki上的this page链接的。

第四种思路

几年后重新审视这一点,现在市场上有多种R.PI模型:

Raspberry PI A,B,A +,B +和Zero:这些与Ubuntu ARM版本不兼容,因为它们使用BCM2835 Broadcom CPU(ARM v6k)。

Raspberry PI 2,型号B:它运行BCM2836 Broadcom CPU。这是ARMv7架构,精确的是Cortex A7。这个板(可能是所有后续的“系列2”R.PI板)将运行Ubuntu就好了。后来的Raspberry PI 3型号也是如此,它们是围绕同一个CPU构建的。

Canonical已经为R.PI 2发布了Ubuntu Core(又名”Snappy”),但值得注意的是这是一个没有桌面环境的服务器发行版。此外,可以扩展为包括桌面环境的标准Ubuntu 14.04和16.04服务器映像可用于R.PI 2和R.PI 3。

所有当前的Raspberry PI映像都是从Ubuntu wiki上的this page链接的。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1251.html,未经允许,请勿转载。