1. openwrt系统下载
在openwrt官方网站下载对应的device安装包。
可以在 https://openwrt.org/toh/start 链接中找到支持的device信息。
其中,树莓派3B的信息如下:
3B:
https://openwrt.org/toh/hwdata/raspberry_pi_foundation/raspberry_pi_3_b
3B+:
https://openwrt.org/toh/hwdata/raspberry_pi_foundation/raspberry_pi_3_bplus
图片内为网站上的信息:
树莓派3B设备的安装包路径为:
https://downloads.openwrt.org/releases/19.07.3/targets/brcm2708/bcm2710/
我下载的是选中的文件。
2. 系统安装
使用balenaEtcher软件(也有其它软件,只是这个用起来简单)将刚刚下载的image文件写入到SD卡中。
3. 系统开机
如果有鼠标、键盘和显示器,可以正常连接对应的接口。如果没有的话,可以连接串口,在主机电脑上通过串口操作树莓派设备。
树莓派串口示意图:
通过串口连接树莓派之后,在串口工具上,可以看到打印的启动信息。看到以下信息时,代表启动完成。可通过串口直接进行操作。
BusyBox v1.30.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 19.07.3, r11063-85e04e9f46
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#