> 文章列表 > RV1126 在Ubuntu18.04开发环境搭建

RV1126 在Ubuntu18.04开发环境搭建

RV1126 在Ubuntu18.04开发环境搭建

1:安装软件

终端下输入安装命名:

sudo apt install openssh-server

sudo apt install android-tools-adb

sudo apt install vim net-tools git

sudo apt install cmake

sudo apt install tree

sudo apt install minicom

sudo apt install gawk

sudo apt install bison

sudo apt install flex

sudo apt install libssl-dev

sudo apt install device-tree-compiler

sudo apt install gcc-aarch64-linux-gnu mtools partedlibudev-dev

E: 无法定位软件包 partedlibudev-dev

sudo apt install libusb-1.0-0-dev autoconf autotools-devlibsigsegv2 m4 intltool libdrm-dev curl sed

E: 无法定位软件包 autotools-devlibsigsegv2

sudo apt install make binutils build-essential gcc g++ bashpatch gzip gawk bzip2

E: 无法定位软件包 bashpatch

sudo apt install perl tar cpio python unzip rsync file bcwget libncurses5 u-boot-tools

E: 无法定位软件包 bcwget

sudo apt install cvs mercurial rsync openssh-clientsubversion expect

E: 无法定位软件包 openssh-clientsubversion

sudo apt install fakeroot liblz4-toollibtool keychain libncurses-dev texinfo –y

E: 无法定位软件包 liblz4-toollibtool

2:解压SDK,新建文件夹RV1126,将SDK拷贝过来。进行解压:

tar -xvf rv1126_rv1109_linux_release_20211022.tgz

3:编译

su 下进行.ROOT.

安 装 完 成 后 在 工 程 的 根 目 录 下 执 行 命 令 “ source envsetup.sh ”会 出 现 很 多 选 项 , 选 择

rockchip_rv1126_rv1109

接着在工程的根目录下执行 “./build.sh lunch”,这时会出现很多

选项,选择BoardConfig-aybering.mk

在完前提操作下在工程根目录下执行命令“./build.sh”

/build.sh lunch

sudo ./build.sh

错误

you need to install 'unbuffer' (from package expect or expect-dev)

log saved on /home/h00003/RV1126/rv1126_rv1109_v2.2.0_20210825/br.log

tail: cannot open '/home/h00003/RV1126/rv1126_rv1109_v2.2.0_20210825/br.log' for reading: No such file or directory

Command exited with non-zero status 1

you take 0:00.85 to build builroot

ERROR: Running build_buildroot failed!

出现问题,输入:

sudo apt install expect

重新编译。

错误:

2023-03-01T21:54:25 checking whether mkfifo rejects trailing slashes... yes

2023-03-01T21:54:25 checking whether mknod can create fifo without root privileges... configure: error: in `/home/h00003/RV1126/rv1126_rv1109_v2.2.0_20210825/buildroot/output/rockchip_rv1126_rv1109/build/host-tar-1.29':

2023-03-01T21:54:25 configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)

2023-03-01T21:54:25 See `config.log' for more details

2023-03-01T21:54:25 make[1]: * [package/pkg-generic.mk:221: /home/h00003/RV1126/rv1126_rv1109_v2.2.0_20210825/buildroot/output/rockchip_rv1126_rv1109/build/host-tar-1.29/.stamp_configured] Error 1

2023-03-01T21:54:25 make: * [/home/h00003/RV1126/rv1126_rv1109_v2.2.0_20210825/buildroot/output/rockchip_rv1126_rv1109/Makefile:16: _all] Error 2

Command exited with non-zero status 1

you take 0:44.29 to build builroot

ERROR: Running build_buildroot failed!

ERROR: exit code 1 from line 547:

解决:

1.su 回车-----------进入root用户模式

2.export FORCE_UNSAFE_CONFIGURE=1 回车------设置

3.重新编译