在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 centos7.img.xz | sudo dd of=/dev/rdisk2  bs=4m

sudo dd if=ubuntu-16.04.img of=/dev/rdisk2  bs=4m

sudo sync # 这个命令的用处见评论

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

/usr/bin/rootfs-expand

6. 卸载设备

diskutil unmountDisk /dev/disk2

ssh连接

用户 root
密码 centos

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值