主机百科
测评与优惠

树莓派安装Debian arm64位操作系统:RPi-arm64

RPi-arm64

  • 为树莓派3构建基于Debian ARM64 的操作系统。
  • 项目地址: https://github.com/UMRnInside/RPi-arm64
  • 目前支持:
    • Stage 1: 下载、准备、编译内核
    • Stage 2: 使用 debootstrap 构建根文件系统
    • Stage 3: 安装bootcode和VideoCore libs
    • Stage 4: 离线操作 (例如添加用户)

预构建版本下载地址:百度云

树莓派安装Debian arm64位操作系统:RPi-arm64


手工构建

  • 请以Root用户执行。

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

# 用于构建镜像
./utils/dist_partimage.sh
LOOPDEV=$(losetup -f)
losetup $LOOPDEV ./dist/RPi-arm64-dist.img
partprobe $LOOPDEV
mkfs.vfat -n BOOT ${LOOPDEV}p1
mkfs.btrfs -L ROOTFS ${LOOPDEV}p2
mount ${LOOPDEV}p1 ./dist/boot
mount ${LOOPDEV}p2 ./dist/rootfs
# Stage 1
./stage1/prepare_kernel.sh
./stage1/build_kernel.sh
# Stage 2
# 可选:设置MIRROR为您使用的镜像站点
#MIRROR=”http://mirrors.ustc.edu.cn/debian/”
./stage2/root_debootstrap.sh
./stage2/install_kernel.sh
./stage2/enable_openssh.sh
# firmware-brcm80211是非自由软件包
# firmware-brcm80211 将从 archive.raspberrypi.org获取
# 设置FWURL以改变这个软件包的来源
#FWURL=http://example.org/firmware-brcm80211_all.deb
./stage2/enable_nonfree.sh
./stage2/install_firmware_brcm.sh
# 可选:支持armhf/armel
#./stage2/enable_armhf.sh
#./stage2/enable_armel.sh
# Stage 3
./stage3/bootcode_install.sh
./stage3/kernel_install.sh
./stage3/create_bootconf.sh
./stage3/create_fstab.sh
# Stage 4
# Set root password and add new user
./stage4/passwd_root.sh
./stage4/adduser.sh pi
# 如果您需要热点
./stage4/setup_hostapd.sh
# 如果您需要以太网访问
./stage4/interface_dhcp.sh
# 如果您在构建镜像,您可能需要部署文件系统自动扩展程序
./stage4/deploy_init_resizer.sh

自动化的曙光

  1. ./build.sh
  2. 喝杯茶,不过喝杯咖啡也行

不过,如果您想手动更改某些设置……

  1. cp rpi3_defconfig config
  2. 按需编辑  config
  3. ./build.sh
  4. 喝杯茶/咖啡/可乐……

ご注文は うさぎ ですか?

请问您今天要来点兔子吗?

使用Docker

  1. cp rpi3_defconfig config
  2. 按需编辑  config
  3. ./build_docker.sh

参数

阅读每个阶段(stage)内的 README.md,或者认真阅读默认配置:  rpi3_defconfig

原文

https://raspberrypi.club/d/5-rpi-arm64-debian-arm64

赞(0)
未经允许不得转载:主机阁 » 树莓派安装Debian arm64位操作系统:RPi-arm64

登录

找回密码

注册