notes/RK3568/移远/编译固件.md

63 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2024-04-29 22:22:30 +08:00
### 编译固件
2023-11-11 13:41:44 +08:00
- [环境准备](#环境准备)
- [创建、进入容器](#创建、进入容器)
- [将安全目录添加到全局的Git配置中](#将安全目录添加到全局的Git配置中)
- [编译](#编译)
2024-04-29 02:07:50 +08:00
#### 环境准备
2023-11-11 13:41:44 +08:00
* 下载sdk 到 /home/heahoyang/works/quectel 目录
<!-- ```
# 用户名 wangguixin@sztvis.com
# 密码 lzm850206
git clone https://git-master.quectel.com/smart/rk3568_ubuntu_r60_v1.3.2.git
``` -->
```
2024-04-29 02:07:50 +08:00
git clone http://192.168.1.223:3000/hehaoyang/rk3568_ubuntu_r60_v1.3.2.git
2023-11-13 22:37:27 +08:00
2024-04-29 02:07:50 +08:00
cd rk3568_ubuntu_r60_v1.3.2
2023-11-13 22:37:27 +08:00
chmod 777 -R yocto/packages/
chmod 777 -R buildroot/dl/
2023-11-11 13:41:44 +08:00
```
2024-01-22 18:24:59 +08:00
* 安装 qemu-user-static
2023-11-11 13:41:44 +08:00
```
2024-01-22 18:24:59 +08:00
sudo apt-get remove qemu-user-static
sudo apt-get install qemu-user-static
2023-11-11 13:41:44 +08:00
```
#### 创建、进入容器
```
2024-04-29 02:07:50 +08:00
docker load -i tools/docker.tar.gz
2023-11-11 13:41:44 +08:00
2024-04-29 02:07:50 +08:00
# 编译环境
docker run --privileged -v /dev/bus/usb:/dev/bus/usb -v /home/hehaoyang/works/quectel/:/home/hehaoyang/workspace/ --name="quectel-rk3568" -it 14fecf808bf1 /bin/bash
# 交叉编译环境
docker run --privileged -v /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/prebuilts/:/home/hehaoyang/prebuilts/ -v /home/hehaoyang/works/projects:/home/hehaoyang/workspace --name="quectel-rk3568-gcc" -dit ubuntu_18_04 /bin/bash
2023-11-11 13:41:44 +08:00
```
2024-04-29 02:07:50 +08:00
#### 编译
2024-01-22 18:24:59 +08:00
* 准备
2023-11-11 13:41:44 +08:00
```
2024-01-22 18:24:59 +08:00
cd /home/hehaoyang/workspace/
usermod -u 1001 hehaoyang
2024-04-29 02:07:50 +08:00
cd /home/hehaoyang/workspace/rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/
2023-11-11 13:41:44 +08:00
chmod 664 ./*
chmod 755 postinst_intercept
cd ../../../../
2024-01-22 18:24:59 +08:00
chown -v -R hehaoyang /home/hehaoyang/workspace/
su hehaoyang
2024-04-29 02:07:50 +08:00
sudo git config --global --add safe.directory /home/hehaoyang/workspace/rk3568_ubuntu_r60_v1.3.2
2023-11-11 13:41:44 +08:00
source build-quec.sh
2024-04-29 02:07:50 +08:00
initialize-qt # 第一次需要调用配置QT初始化环境
2024-01-22 18:24:59 +08:00
build-all-image-yocto
2024-04-29 02:07:50 +08:00
# envsetup_yocto
# rebake qti-ubuntu-robotics-image
```