parent
8d49992ea6
commit
cb726a0f19
|
@ -128,14 +128,51 @@ make sdk
|
|||
cd ..
|
||||
```
|
||||
|
||||
#### 4.1.2 Ubuntu 固件
|
||||
|
||||
下载根文件系统:[Ubuntu 根文件系统(64位)](https://www.t-firefly.com/doc/download/106.html),放到 SDK 路径下
|
||||
|
||||
```bash
|
||||
7z x ubuntu-aarch64-rootfs.7z
|
||||
mkdir ubuntu_rootfs
|
||||
mv ubuntu-aarch64-rootfs.img ubuntu_rootfs/rk356x_ubuntu_rootfs.img
|
||||
|
||||
# 配置环境变量
|
||||
source envsetup.sh rockchip_rk3566
|
||||
# 选择配置文件
|
||||
./build.sh roc-rk3566-pc-ubuntu.mk
|
||||
# 全自动编译
|
||||
./build.sh
|
||||
# 部分编译:编译 u-boot
|
||||
./build.sh uboot
|
||||
# 部分编译:配置 kernel
|
||||
cd kernel
|
||||
make ARCH=arm64 firefly_linux_defconfig menuconfig
|
||||
make ARCH=arm64 savedefconfig
|
||||
mv defconfig arch/arm64/configs/firefly_linux_defconfig
|
||||
cd ..
|
||||
# 部分编译:编译 kernel
|
||||
./build.sh kernel
|
||||
# 部分编译:编译 recovery
|
||||
./build.sh recovery
|
||||
# 打包固件:更新各部分镜像链接到 rockdev/ 目录
|
||||
./mkfirmware.sh
|
||||
# 打包固件:生成 update image,完整固件会保存到 rockdev/pack/ 目录
|
||||
./build.sh updateimg
|
||||
```
|
||||
|
||||
## 5. 系统配置
|
||||
|
||||
### 5.1. Buildroot 系统
|
||||
### 5.1. SSH
|
||||
|
||||
官方发布的 SDK 默认已开启 ssh,用户为”root”,密码为”firefly”。
|
||||
|
||||
### 5.2. Buildroot 系统
|
||||
|
||||
- 用户:root
|
||||
- 密码:firefly
|
||||
|
||||
#### 5.1.1. 以太网配置
|
||||
#### 5.2.1. 以太网配置
|
||||
|
||||
Buildroot 的网络配置需要使用到 /etc/network/interfaces 配置文件,配置完成之后,运行:
|
||||
|
||||
|
@ -180,6 +217,27 @@ Error: either "local" is duplicate, or "/24" is a garbage.
|
|||
|
||||
那么很有可能是配置文件中多了一个空格。
|
||||
|
||||
#### 5.1.2. SSH
|
||||
### 5.3. Ubuntu 系统
|
||||
|
||||
官方发布的 SDK 默认已开启 ssh,用户为”root”,密码为”firefly”。
|
||||
#### 5.3.1. 以太网配置
|
||||
|
||||
```bash
|
||||
cd /etc/systemd/network
|
||||
touch eth0.network
|
||||
vim eth0.network
|
||||
```
|
||||
|
||||
```eth0.network
|
||||
[Match]
|
||||
Name=eth0
|
||||
|
||||
[Network]
|
||||
Address=192.168.2.2/24
|
||||
Gateway=192.168.2.1
|
||||
DNS=114.114.114.114
|
||||
```
|
||||
|
||||
```bash
|
||||
systemctl enable systemd-networkd
|
||||
systemctl disable NetworkManager
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue