2023-06-30 10:28:18 +08:00
|
|
|
|
# 易百纳 EB-RV1126-DC-201 Linux 说明
|
|
|
|
|
|
|
|
|
|
## 构建方法
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# 选择 90:rockchip_rv1126_rv1109
|
|
|
|
|
source envsetup.sh
|
|
|
|
|
# 选择 6:BoardConfig-aybering.mk
|
2023-07-03 18:18:14 +08:00
|
|
|
|
./build.sh lunch
|
2023-06-30 10:28:18 +08:00
|
|
|
|
# 全部构建
|
|
|
|
|
./build.sh
|
|
|
|
|
# 全部清除
|
|
|
|
|
./build.sh cleanall
|
|
|
|
|
```
|
|
|
|
|
|
2023-07-03 18:18:14 +08:00
|
|
|
|
## 修改 kernel
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd kernel
|
|
|
|
|
# 保存旧的配置.
|
|
|
|
|
make ARCH=arm savedefconfig
|
|
|
|
|
cp defconfig arch/arm/configs/rv1126_defconfig
|
|
|
|
|
# 清除编译结果和配置.
|
|
|
|
|
make distclean
|
|
|
|
|
# 重新配置内核.
|
|
|
|
|
make ARCH=arm rv1126_defconfig
|
|
|
|
|
make ARCH=arm menuconfig
|
|
|
|
|
make ARCH=arm savedefconfig
|
|
|
|
|
cp defconfig arch/arm/configs/rv1126_defconfig
|
|
|
|
|
# 重新编译内核.
|
|
|
|
|
cd ..
|
|
|
|
|
./build.sh kernel
|
|
|
|
|
```
|
|
|
|
|
|
2023-06-30 10:28:18 +08:00
|
|
|
|
## 修改 buildroot
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd buildroot
|
2023-07-03 18:18:14 +08:00
|
|
|
|
# 配置 buildroot.
|
2023-06-30 10:28:18 +08:00
|
|
|
|
make rockchip_rv1126_rv1109_defconfig
|
2023-07-03 18:18:14 +08:00
|
|
|
|
# 自动保存成 rockchip_rv1126_rv1109_defconfig.
|
2023-06-30 16:04:59 +08:00
|
|
|
|
make menuconfig
|
|
|
|
|
make savedefconfig
|
2023-07-03 18:18:14 +08:00
|
|
|
|
# 重新编译 buildroot.
|
2023-06-30 10:28:18 +08:00
|
|
|
|
cd ..
|
|
|
|
|
./build.sh cleanall
|
|
|
|
|
./build.sh
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 增加 Qt
|
|
|
|
|
|
|
|
|
|
Pixe format of linuxfb drm screen 选 rgb565。
|
|
|
|
|
|
2023-06-30 16:04:59 +08:00
|
|
|
|
如果出现:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
mv -f libXXXXXX.so ...
|
|
|
|
|
...
|
|
|
|
|
make[3]: *** [sub-plugins-make_first] Error 2
|
|
|
|
|
...
|
|
|
|
|
make[2]: *** [sub-src-make_first] Error 2
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
则是因为缺少对应的依赖库,在 buildroot 中增加相应依赖库即可。
|
|
|
|
|
|
2023-06-30 14:28:42 +08:00
|
|
|
|
### 裁剪
|
|
|
|
|
|
|
|
|
|
* nginx
|
|
|
|
|
* host-ntfs1
|
|
|
|
|
|
|
|
|
|
### 软件包下载过慢或无法下载的处理
|
|
|
|
|
|
2023-07-03 11:23:47 +08:00
|
|
|
|
1. 将文件直接下载到 buildroot/dl 文件夹中;
|
|
|
|
|
2. 手动下载并添加到自建 Http 文件服务器中:
|
2023-06-30 16:04:59 +08:00
|
|
|
|
1. 用 HttpFileServer 搭建 Http 文件服务器,将需要的软件包手动下载到 Http 文件服务器路径下。
|
|
|
|
|
2. 修改 buildroot/pack 路径下的 *.mk 文件,将其中的下载地址修改为 HttpFileServer 的地址。
|
2023-07-03 11:23:47 +08:00
|
|
|
|
3. 使用代理进行科学上网。
|
2023-06-30 14:28:42 +08:00
|
|
|
|
|
2023-06-30 10:28:18 +08:00
|
|
|
|
## 挂载为可读写
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
mount -o remount,rw /
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 修改 /tmp 权限
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
chmod 777 /tmp
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 关闭 CA 认证
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
touch /etc/apt/apt.conf.d/99verify-peer.conf && echo >>/etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer false }"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 替换清华源
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo sed -i "s@http://ports.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 安装 Qt
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
apt install qt5-qmake libqt5serialport5-dev
|
|
|
|
|
|
|
|
|
|
apt install libqt5core5a libqt5serialport5 libqt5quick5 libqt5quickcontrols2-5 libqt5qml5 libqt5network5 libqt5media5 libqt5gui5
|
|
|
|
|
```
|