5 安装操作系统(可选)
设备出厂时,默认带有操作系统。如果在使用过程中操作系统被损坏或者用户需要更换操作系统,则需要重新下载合适的系统镜像并进行烧录。
5.1 镜像下载
Raspberry Pi OS with desktop, 32-bit
- Release date: July 08nd 2022
- System: 32-bit
- Kernel version: 5.10
- Debian version: 11 (bullseye)
- Release notes
- Downloads: https://vip.123pan.cn/1826505135/20273097
Raspberry Pi OS Lite, 32-bit
- Release date: July 08nd 2022
- System: 32-bit
- Kernel version: 5.10
- Debian version: 11 (bullseye)
- Release notes
- Downloads: https://vip.123pan.cn/1826505135/20273290
Raspberry Pi OS with desktop, 64-bit
- Release date: July 08nd 2022
- System: 64-bit
- Kernel version: 5.10
- Debian version: 11 (bullseye)
- Release notes
- Downloads: https://vip.123pan.cn/1826505135/20273098
Raspberry Pi OS Lite, 64-bit
- Release date: July 08nd 2022
- System: 64-bit
- Kernel version: 5.10
- Debian version: 11 (bullseye)
- Release notes
- Downloads: https://vip.123pan.cn/1826505135/20273319
5.2 eMMC烧录
5.2.1 工具下载
- Raspberry Pi Imager: https://downloads.raspberrypi.org/imager/imager_latest.exe
- SD Card Formatter: https://www.sdcardformatter.com/download/
- rpiboot: https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe
5.2.2 烧录
前提条件:
- 已获取一根USB-A转USB-A的数据线(USB烧录线)。
- 已获取一台已安装烧录工具的windows电脑。
- 已获取待烧录的镜像文件。
操作步骤:
操作步骤以Windows系统为例进行说明。
连接设备电源线和USB烧录线,并短接BOOT和GND引脚。
- 使用杜邦线短接外壳上预留的BOOT和GND引脚;
- 连接USB烧录线:一端连接设备侧的USB 2.0接口(如下图位置),另一端连接PC上的USB接口;

断开ED-CM4NANO电源,再重新上电。
打开已安装的rpiboot工具,自动进行盘符化。

待盘符化完成后,电脑右下角会弹出盘符。
打开
SD Card Formatter,选择被格式化的盘符,单击右下方“Format”进行格式化。

根据提示,完成格式化,再关闭
SD Card Formatter。打开
Raspberry Pi Imager,单击“选择操作系统”,在弹出的窗格中选择“Use custom”。

根据提示,在自定义路径下选择已获取的镜像文件,并返回至烧录主界面。
单击“选择SD卡”,在“存储卡”界面选择默认的SD卡,并返回至烧录主界面。

单击“烧录”,在弹出的提示框中选择“是”,开始写入镜像。
待镜像写入完成后,会进行文件的验证。
验证完成后,弹出“烧录成功”提示框,单击“继续”完成烧录。
关闭
Raspberry Pi Imager,取下USB烧录线和短接BOOT和GND的杜邦线,再重新给设备上电。
5.3 基于官方Raspberry Pi OS在线安装BSP
如果使用Raspberry Pi官方镜像,则需要安装BSP来使能部分功能。
- 依次执行如下命令,添加仓库和BSP。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo apt-key add -
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
- 依次执行如下命令,安装BSP。
sudo apt update
sudo apt install ed-cm4nano-bsp ed-rtc
5.4 安装NetworkManager网络管理工具
NetworkManager工具可以更容易的配置路由规则和设置优先级。
- Raspberry Pi OS Lite版系统
sudo apt install ed-networkmanager
- Raspberry Pi OS Desktop版系统
sudo apt install ed-networkmanager-gnome
