From 054c0cb32d8af6a52ab5dac5d0bfd1211752b981 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Mon, 1 Jul 2024 11:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=BD=91=E7=BB=9C=E5=92=8C?= =?UTF-8?q?=20SSH=20=E8=AE=BE=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../ROC-RK3566-PC/ROC-RK3566-PC_简要说明.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Ecology/FireFly/ROC-RK3566-PC/ROC-RK3566-PC_简要说明.md b/Ecology/FireFly/ROC-RK3566-PC/ROC-RK3566-PC_简要说明.md index 3d8fe37..26cf57b 100644 --- a/Ecology/FireFly/ROC-RK3566-PC/ROC-RK3566-PC_简要说明.md +++ b/Ecology/FireFly/ROC-RK3566-PC/ROC-RK3566-PC_简要说明.md @@ -110,3 +110,59 @@ unzip device-tree-compiler python-pip ncurses-dev python-pyelftools # 打包固件:生成 update image,完整固件会保存到 rockdev/pack/ 目录 ./build.sh updateimg ``` + +## 5. 系统配置 + +### 5.1. Buildroot 系统 + +- 用户:root +- 密码:firefly + +#### 5.1.1. 以太网配置 + +Buildroot 的网络配置需要使用到 /etc/network/interfaces 配置文件,配置完成之后,运行: + +```bash +/etc/init.d/S40network restart +``` + +即可重启网络。手动调试可以直接使用: + +```bash +ifdown -a +# 和 +ifup -a +``` + +来重启网络。 + +配置文件举例: + +如下配置文件将 eth0 网卡设置为动态 IP 地址,将 eth1 设置为静态 IP 地址 + +```bash +auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + +auto eth1 +iface eth1 inet static +address 192.168.2.2 +netmask 255.255.255.0 +broadcast 192.168.2.255 +gateway 192.168.2.1 +``` + +注意:/etc/network/interfaces 的文件格式要求比较严格,如果遇到: + +```bash +Error: either "local" is duplicate, or "/24" is a garbage. +``` + +那么很有可能是配置文件中多了一个空格。 + +#### 5.1.2. SSH + +官方发布的 SDK 默认已开启 ssh,用户为”root”,密码为”firefly”。