在mac上 树莓派3B/3B+安装linux(ubuntu centos)系统

官方文档

https://wiki.centos.org/SpecialInterestGroup/AltArch/armhfp

1. 查看分区

df -h

2. 卸载分区

// 注意别卸载错了disk2s1是内存卡
diskutil unmount /dev/disk2s1

3. 确认设备

diskutil list

4. 写入系统镜像

centos7 wifi arm 32位系统

(http://mirror.centos.org/altarch/7/isos/armhfp/)
注意:这个镜像是32位的!!!

ubuntu 18.04 arm64 wifi

https://github.com/chainsx/ubuntu64-rpi/blob/ubuntu-18.04-arm64/Documentation/bionic-release.md

centos 7.4 arm64 没有wifi

https://github.com/chainsx/centos64-rpi

xzcat 镜像名.img.xz | sudo dd of=/dev/rdisk2 bs=4m
sudo sync # 这个命令不知道用来干嘛的,也不知道有没有用

# resize sd卡(调整分区大小)

/usr/bin/rootfs-expand

6. 卸载设备

diskutil unmountDisk /dev/disk2

ssh连接

用户 root
密码 centos

猜你喜欢

转载自blog.csdn.net/qq_27068845/article/details/80472295