#!/bin/bash
# 安装编译环境
sudo apt update ; sudo apt upgrade
sudo apt-get -y install git gitk git-gui gcc-arm-linux-gnueabihf \
u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools \
parted libudev-dev libusb-1.0-0-dev \
autoconf autotools-dev libsigsegv2 m4 \
intltool libdrm-dev curl sed make binutils build-essential gcc \
g++ bash patch gzip gawk bzip2 perl tar cpio python-is-python2 unzip rsync \
file bc wget libncurses5 libglib2.0-dev libgtk2.0-dev \
libglade2-dev cvs git mercurial rsync openssh-client subversion \
asciidoc w3m dblatex graphviz \
libssl-dev expect fakeroot cmake
# 注意上面与下文要分开安装,
# 缺少包:repo python-linaro-image-tools libqt4-dev python-matplotlib libc6:i386 #pip install matplotlib
# ubuntu 本地 debian 本地安装路径 : /var/cache/apt/archives/
sudo apt install -y python-apt
sudo apt --fix-broken install && sudo apt reinstall -y libc6 && sudo apt reinstall libc6-i386
sudo apt --fix-broken install && sudo apt install -y fonts-lyx
sudo apt install -y libfl-dev libfl2 m4 bison flex bison-doc flex-doc m4-doc
# 编译报错:/bin/sh: 1: bison: not found make[1]: *** [scripts/Makefile.lib:196:scripts/kconfig/zconf.tab.c] 错误 127
# 安装扩展
sudo apt-get install lib32gcc-7-dev g++-7 libstdc++-7-dev -y
# 创建一个文件夹,并且将软件解压到目录
mkdir -p /home/eisc/RV1126/ && tar -zxvf RV1126_1109_20210821.tgz -C /home/eisc/RV1126/
# 进入目录,查看大小,git 恢复完整的代码, 如果代码完整可以不执行
cd /home/eisc/RV1126/ && ls -alh && git reset --hard
# 编译方式:buildroot(linux)
#--------- 重点 ----------#
chown -R eisc:eisc /home/eisc/*
# 将编译包所在目录,授权给当前用户 eisc ,并且需要非 root用户执行
# 否则会报错:you take 0:21.03 to build builroot; ERROR: Running build_buildroot failed! ; /usr/bin/time -f "you take %E to build builroot"
# 如果SDK先编译了ubuntu系统,为了避免出现不必要的错误,请先清理内核再做操作
cd /home/eisc/RV1126/kernel && make clean -j 20
# 查看版型
./build.sh lunch
# 输入 7 BoardConfig-facial_gate.mk 回车 后,再次编译:
./build.sh
source envsetup.sh
# 选择 84 rockchip_rv1126_rv1109_facial_gate
#----------- uvcc 摄像头 编译选择 ----------#
# 注意:20GB 的uvcc 包文件夹名字不能更改,否则无法编译
./build.sh lunch
# 选择: 17. BoardConfig-uvcc.mk
source envsetup.sh
# 选择: 90. rockchip_rv1126_rv1109_uvcc
Powered by ddoss.cn 12.0
©2015 - 2025 ddoss
渝公网安备50011302222260号
渝ICP备2024035333号
【实验平台安全承诺书】
小绿叶技术社区,优化网络中,点击查看配置信息
主机监控系统: 安全防火墙已开启检查cc攻击-下载文件完成后等待10s 恢复访问,检查连接数低于峰值恢复访问
您的IP:10.8.103.62,2025-12-09 05:59:42,Processed in 0.01502 second(s).