树莓派开发过程
镜像烧录与启动常见问题
-
树莓派系统向下兼容,树莓派4的系统可以运行在3b和4b上。
官方镜像下载网站:https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
-
第一次烧录系统连接ssh: connect to host 192.168.43.220 port 22: Connection refused
官方的解释是
As of the November 2016 release, Raspbian has the SSH server disabled by default.
SSH disabled by default; can be enabled by creating a file with name “ssh” in boot partition
大致意思是现在的系统默认不开启SSH,需要在启动分区中创建一个ssh的文件来启用无后缀名
-
系统初始化工作
- 因为树莓派默认软件源在国外,访问速度特别慢,所以第一件事就是要换为国内源
阿里云源地址: https://developer.aliyun.com/mirror/raspbianspm=a2c6h.13651102.0.0.3e221b11v2fpXM
- 使用sudo raspi-config修改默认配置
主要有修改时区、字符集,使能VNC
如果一开始使用网线上网,可以在raspi-config中连接Wifi,连接后以后树莓派开机会默认连接上一次连接的WiFi
- 文件传输
代码的传输可以在远程开发过程中直接拖入,较大的文件可以使用filezilla相互传输
官网下载地址:https://www.filezilla.cn/