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

rpi-(os,...): update aarch64 guide #265

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 55 additions & 16 deletions docs/raspberry-pi-os-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,67 @@ raspios 的默认用户是 `pi`,密码是 `raspberry`,root 默认关闭。
## 系统架构

- armhf
- arm64 (Beta)
- arm64
- x86

## 收录版本

最新的稳定版(bullseye)
- bullseye
- bookworm

## 使用说明

目前本镜像包含如下内容:

- imager: Raspberry Pi Imager 官方刻录器。
- raspios_arm64: Arm64 架构的 Raspberry Pi OS(Beta)
- raspios_armhf: Armhf 架构的 Raspberry Pi OS
- raspios_full_armhf: Armhf 架构的 Raspberry Pi
OS,并包含官方推荐的软件
- raspios_lite_arm64: Arm64 架构的 Raspberry Pi OS(Beta,不含桌面)
- raspios_lite_armhf: Armhf 架构的 Raspberry Pi OS(不含桌面)
- rpd_x86: Raspberry Pi Desktop,用于 x86 架构的设备
- Raspberry_Pi_Education_Manual.pdf: 教学用树莓派帮助手册

需要安装 Raspberry Pi OS 时,一般下载 images 目录中的最新的即可,比如
arm64 的树莓派下载
<https://mirrors.ustc.edu.cn/raspberry-pi-os-images/raspios_lite_arm64/images/>
中最新的 zip 压缩包即可,解压完 zip 压缩包后即可开始刻录。
imager

: Raspberry Pi Imager 官方刻录器。

raspios_(arm64, armhf)

: Raspberry Pi OS(含桌面)

raspios_full_(arm64, armhf)

: Raspberry Pi OS(含桌面,并包含官方推荐的软件)

raspios_lite_(arm64, armhf)

: Raspberry Pi OS(不含桌面)

rpd_x86

: Raspberry Pi Desktop,用于 x86 架构的设备

Raspberry_Pi_Education_Manual.pdf

: 教学用树莓派帮助手册

需要安装 Raspberry Pi OS 时,一般下载 images 目录中的最新的即可,比如 arm64 的树莓派下载 <https://mirrors.ustc.edu.cn/raspberry-pi-os-images/raspios_lite_arm64/images/> 中最新的 zip 压缩包即可,解压完 zip 压缩包后即可开始刻录。

!!! note

对于刚接触 Linux 的同学,使用 `imager` 也许会是个节省时间的好办法。

关于使用 armhf (32 bit) 还是 arm64 (64 bit) 版本,可以参考 [Raspberry Pi OS (64-bit)](https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/)。tl;dr:

- 无特殊兼容需求的情况下,推荐使用 arm64
- 对于 4GB 及以上内存的设备,推荐使用 arm64
- 对于古早设备 (Rpi 1, 2, Zero), 请使用 armhf

## 相关链接

- 树莓派链接

官方主页

: <https://www.raspberrypi.org/>

文档

: <https://www.raspberrypi.org/documentation/>

- 其他镜像帮助

- [Raspbian 镜像使用帮助](raspbian.md)
- [Raspberrypi 镜像使用帮助](raspberrypi.md)
15 changes: 11 additions & 4 deletions docs/raspberrypi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,17 @@ sudo sed \

## 相关链接

官方主页
- 树莓派链接

: <https://www.raspberrypi.org/>
官方主页

文档
: <https://www.raspberrypi.org/>

: <https://www.raspberrypi.org/documentation/>
文档

: <https://www.raspberrypi.org/documentation/>

- 其他镜像帮助

- [Raspberry Pi OS 镜像使用帮助](raspberry-pi-os-images.md)
- [Raspbian 镜像使用帮助](raspbian.md)
43 changes: 16 additions & 27 deletions docs/raspbian.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ armhf

操作前请做好相应备份

将 `/etc/apt/sources.list`
文件中默认的源地址 `http://raspbian.raspberrypi.org/` 替换为
`http://mirrors.ustc.edu.cn/raspbian/` 即可。
!!! note

首先用 `uname -m` 确认系统架构, 如果为 `aarch64`, 可直接参考 [Debian](debian.md) 镜像使用帮助。

将 `/etc/apt/sources.list` 文件中默认的源地址 `http://raspbian.raspberrypi.org/` 替换为 `http://mirrors.ustc.edu.cn/raspbian/` 即可。

raspbian 2018-04-19 之后的镜像默认源已经更改,用如下命令替换:

Expand All @@ -49,29 +51,11 @@ raspbian 2018-04-19 之后的镜像默认源已经更改,用如下命令替换
```
{% endfor %}

Arm64 架构的 Raspberry Pi OS 仍处于 beta 状态,本镜像上游亦不含此架构。对于 arm64 的 Raspberry Pi OS,可以直接使用 arm64 Debian 的源:

{% for release in debian_releases %}

{% set debian_security = release.codename + "-security" %}
{% if release.version < 11 %}
{% set debian_security = release.codename + "/updates" %}
{% endif %}
=== "Raspbian {{ release.codename }}"

```debsources title="/etc/apt/sources.list"
deb https://mirrors.ustc.edu.cn/debian/ {{ release.codename }} main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian {{ release.codename }} main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ {{ release.codename }}-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian {{ release.codename }}-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security {{ debian_security }} main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian-security/ {{ debian_security }}-security main non-free contrib
```
{% endfor %}

编辑此文件后,请使用 `sudo apt-get update` 命令,更新软件索引。

同时也可能需要更改 archive.raspberrypi.org 源,请参考 [raspberrypi](raspberrypi.md)。
!!! note

同时也可能需要更改 `/etc/apt/sources.list.d/raspi.list` 的 archive.raspberrypi.org 源,请参考 [raspberrypi](raspberrypi.md)。

## 相关链接

Expand All @@ -95,10 +79,15 @@ Arm64 架构的 Raspberry Pi OS 仍处于 beta 状态,本镜像上游亦不含

- 树莓派链接

树莓派基金会主页
官方主页

: <https://www.raspberrypi.org/>

树莓派基金会论坛 Raspberry Pi OS 版块
文档

: <https://www.raspberrypi.org/documentation/>

- 其他镜像帮助

: <https://www.raspberrypi.org/forums/viewforum.php?f=66>
- [Raspberry Pi OS 镜像使用帮助](raspberry-pi-os-images.md)
- [Raspberrypi 镜像使用帮助](raspberrypi.md)