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
|
|
|
|
|
./build.sh lunch
|
|
|
|
|
# 全部构建
|
|
|
|
|
./build.sh
|
|
|
|
|
# 全部清除
|
|
|
|
|
./build.sh cleanall
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 修改 buildroot
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd buildroot
|
|
|
|
|
make rockchip_rv1126_rv1109_defconfig
|
|
|
|
|
# 自动保存成 rockchip_rv1126_rv1109_defconfig
|
2023-06-30 16:04:59 +08:00
|
|
|
|
make menuconfig
|
|
|
|
|
make savedefconfig
|
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-06-30 16:04:59 +08:00
|
|
|
|
1. 手动下载并添加到自建 Http 文件服务器中:
|
|
|
|
|
1. 用 HttpFileServer 搭建 Http 文件服务器,将需要的软件包手动下载到 Http 文件服务器路径下。
|
|
|
|
|
2. 修改 buildroot/pack 路径下的 *.mk 文件,将其中的下载地址修改为 HttpFileServer 的地址。
|
|
|
|
|
2. 使用代理进行科学上网。
|
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
|
|
|
|
|
```
|