|
|
Line 36: |
Line 36: |
| ====相关参考==== | | ====相关参考==== |
| ** [https://openwrt.org/docs/guide-user/additional-software/opkg openwrt opkg] | | ** [https://openwrt.org/docs/guide-user/additional-software/opkg openwrt opkg] |
− |
| |
− | ===查看系统状态===
| |
− | * <strong>命令行查看CPU温度和频率</strong>
| |
− | <syntaxhighlight lang="text">
| |
− | $ cpu_freq
| |
− | Aavailable frequency(KHz):
| |
− | 480000 624000 816000 1008000
| |
− | Current frequency(KHz):
| |
− | CPU0 online=1 temp=26548C governor=ondemand freq=624000KHz
| |
− | CPU1 online=1 temp=26548C governor=ondemand freq=624000KHz
| |
− | CPU2 online=1 temp=26548C governor=ondemand freq=624000KHz
| |
− | CPU3 online=1 temp=26548C governor=ondemand freq=624000KHz
| |
− | </syntaxhighlight>
| |
− | 上述信息表示当前有4个CPU核在线, 温度均约为26.5摄氏度, 运行的策略均为根据需求来决定运行频率, 当前的运行频率均为624MHz,设置频率的命令如下:
| |
− | <syntaxhighlight lang="text">
| |
− | $ cpu_freq -s 1008000
| |
− | Aavailable frequency(KHz):
| |
− | 480000 624000 816000 1008000
| |
− | Current frequency(KHz):
| |
− | CPU0 online=1 temp=36702C governor=userspace freq=1008000KHz
| |
− | CPU1 online=1 temp=36702C governor=userspace freq=1008000KHz
| |
− | CPU2 online=1 temp=36702C governor=userspace freq=1008000KHz
| |
− | CPU3 online=1 temp=36702C governor=userspace freq=1008000KHz
| |
− | </syntaxhighlight>
| |
− | 上述命令将4个CPU核的频率设置为1008MHz。<br>
| |
− |
| |
− | * <strong>LuCI Web界面查看系统状态</strong>
| |
− | 登录LuCI界面后,点击顶部的 Statistics ---> Graphs,可以查看系统的各种软硬件状态信息(即statistics),例如:<br>
| |
− | 1) 系统负载:<br>
| |
− | [[File:statistics_system_load.png|frameless|600px|statistics_system_load]] <br>
| |
− | 2) 内存:<br>
| |
− | [[File:statistics_memory.png|frameless|600px|statistics_memory]] <br>
| |
− | 3) CPU温度:<br>
| |
− | [[File:statistics_thermal.png|frameless|600px|statistics_thermal]] <br>
| |
− | Statistics界面对应软件包luci-app-statistics,luci-app-statistics软件包用Collectd工具收集状态数据并且用RRDtool工具将数据渲染为图表。<br>
| |
− | 你可以通过安装额外的collectd-mod-*软件包去使能更多的statistics.
| |
− | <!--
| |
− | The statistics package uses Collectd to gather data and RRDtool to render diagram images.
| |
− | You can install additional collectd-mod-* plugins to enable more statistics.
| |
− | -->
| |
− | 所有的collectd-mod-*软件包对应同一个配置文件: /etc/config/luci_statistics。
| |
− |
| |
− | * 相关参考:
| |
− | ** [https://openwrt.org/docs/guide-user/luci/luci_app_statistics openwrt luci_app_statistics]
| |
− | ** [https://openwrt.org/docs/guide-user/luci/statistics.chart.public openwrt statistics.chart.public]
| |
− | ** [https://openwrt.org/docs/guide-user/perf_and_log/statistic.custom openwrt statistic.custom]
| |
− |
| |
− | ===查看Network->Interfaces的配置===
| |
− | * 登录LuCI界面后,点击顶部的 Network ---> Interfaces ,可以查看当前的网络设置: <br>
| |
− | {{#switch: {{{1}}}
| |
− | | NanoPi-R1
| |
− | | NanoPi-R1S-H3
| |
− | | NanoPi-R1S-H5
| |
− | | NanoPi-M1-Plus
| |
− | | NanoPi-NEO-Plus2
| |
− | | NanoPi-Duo2
| |
− | | NanoPi-Duo
| |
− | | NanoPi-K1-Plus =
| |
− | [[File:op_interface_eth0_br.png|frameless|600px|op_interface_eth0_br]] <br>
| |
− | | NanoPi-M1
| |
− | | NanoPi-NEO
| |
− | | NanoPi-NEO-Core
| |
− | | NanoPi-NEO-Core2
| |
− | | NanoPi-NEO2
| |
− | | NanoPi-NEO2-Black =
| |
− | [[File:op_interface_eth0.png|frameless|600px|op_interface_eth0]] <br>
| |
− | | NanoPi-NEO-Air =
| |
− | [[File:op_interface_br.png|frameless|600px|op_interface_br]] <br>
| |
− | }}
| |
− | * Network -> Interfaces 界面的配置保存在/etc/config/network中。<br>
| |
− |
| |
− | {{#switch: {{{1}}}
| |
− | | NanoPi-R1
| |
− | | NanoPi-R1S-H3
| |
− | | NanoPi-R1S-H5
| |
− | | NanoPi-M1-Plus
| |
− | | NanoPi-NEO-Plus2
| |
− | | NanoPi-Duo2
| |
− | | NanoPi-Duo
| |
− | | NanoPi-NEO-Air =
| |
− | ===查看Netwrok->Wireless的配置===
| |
− | * 登录LuCI界面后,点击顶部的 Network ---> Wireless,可以查看WiFi 热点的设置界面:<br>
| |
− | [[File:op_wireless.jpg|frameless|600px|op_wireless]]<br>
| |
− | 默认的WiFi AP热点名称类似为“FriendlyWrt-10:d0:7a:de:3d:92”,密码为 "password",手机可以直接连接该热点然后访问互联网。<br>
| |
− | * Network->Wireless界面的配置保存在/etc/config/wireless中。<br>
| |
− | }}
| |
− |
| |
− | {{#switch: {{{1}}}
| |
− | | NanoPi-R1
| |
− | | NanoPi-R1S-H3
| |
− | | NanoPi-R1S-H5 =
| |
− | ===查看LED的配置===
| |
− | * 登录LuCI界面后,点击顶部的 System ---> LED Configuration,可以查看当前LED的功能配置: <br>
| |
− | [[File:R1_openwrt_led.png|frameless|600px|R1_openwrt_led]] <br>
| |
− | * 默认LED的功能配置如下:
| |
− | LED1: 系统心跳灯,如果该LED不闪烁了,则表示系统死机了,必须断电重启系统。<br>
| |
− | LED2: 千兆以太网eth0 WAN口的状态灯,如果WAN口网线连接正常,则LED亮,反之则LED灭。用户可以通过勾选复选框"Transmit" / "Receive"以设置当发送 / 接收到数据时LED闪烁。<br>
| |
− | LED3: 百兆以太网eth1 LAN口的状态灯,如果LAN口网线连接正常,则LED亮,反之则LED灭。用户可以通过勾选复选框"Transmit" / "Receive"以设置当发送 / 接收到数据时LED闪烁。<br>
| |
− | * 相关参考:
| |
− | ** [https://openwrt.org/docs/guide-user/base-system/led_configuration openwrt led_configuration]
| |
− | }}
| |
− |
| |
− | {{#switch: {{{1}}}
| |
− | | NanoPi-R1
| |
− | | NanoPi-R1S-H3
| |
− | | NanoPi-R1S-H5 =
| |
− | ===查看BUTTON的配置===
| |
− | 本FriendlyWrt系统使用软件包triggerhappy配置按键的功能,默认的配置为按下按键就会触发系统执行reboot操作。
| |
− | 如果系统发生了异常需要重启,建议使用该按键触发软件reboot,这样可以有效地避免由于断电而造成的文件系统损坏的问题。<br>
| |
− | triggerhappy对应的配置文件为/etc/triggerhappy/triggers.d/example.conf。
| |
− |
| |
− | * 相关参考:
| |
− | ** [https://openwrt.org/docs/guide-user/hardware/hardware.button openwrt hardware.button]
| |
− | }}
| |
− |
| |
− | ===使用USB WiFi===
| |
− | 目前仅支持 RTL8821CU,即插即用,插入后默认设置为AP模式,热点名称为 "rtl8821cu-mac地址",密码为"password";
| |
− |
| |
− | ===使用华为随行WiFi 2 mini(E8372H-155)===
| |
− | 即插即用,插入后,热点名称为 "HUAWEI-8DA5",其他设备连接上该热点后就可以使用4G的流量上网了。
| |