rv1126-rv1109-环境搭建-全部编译的方法

news2024/9/29 23:35:53

主要参考:Rockchip_Developer_Guide_Linux_Software_CN.pdf /

SDK-Rockchip_RV1126_RV1109_Quick_Start_Linux_CN.pdf

找对文档事半功倍!为什么这么说,因为没找对绕了路!别笑!

//解压源码,基础略过
tar xvf rv1126_rv1109_linux_v3.0.2_20230724.tgz -C rv1126_rv1109
cd rv1126_rv1109
.repo/repo/repo sync -l
.repo/repo/repo sync -c

gcc一定切到对应的

arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/6.3.1/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/snapshots/gcc.git~linaro-6.3-2017.05/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu
Thread model: posix
gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)

注意这个6.3.1一定要切到:文档说的

 切换之后就没什么问题了,

 这里要选择编译的主板

 ./build.sh lunch

You're building on Linux
Lunch menu...pick a combo:

1. rockchip_defconfig
2. rockchip_38x38_emmc_defconfig
3. rockchip_38x38_spi_nand_ab_defconfig
4. rockchip_38x38_spi_nand_defconfig
5. rockchip_ab_v13_defconfig
6. rockchip_battery_evb_defconfig
7. rockchip_robot_defconfig
8. rockchip_sl_defconfig
9. rockchip_slc_nand_v12_defconfig
10. rockchip_sllock_defconfig
11. rockchip_spi_nand_defconfig
12. rockchip_spi_nor_tb_v13_defconfig
13. rockchip_spi_nor_v12_defconfig
14. rockchip_tb_v13_defconfig
15. rockchip_trailcamera_defconfig
16. rockchip_v10_v11_defconfig
17. rockchip_v12_defconfig
Which would you like? [1]:

//1. rockchip_defconfig

1. rockchip_defconfig 

 我为什么这么选呢:看我的主板

 

 根据文档选.

环境变量 

source envsetup.sh
Top of tree: /home/sdk/work/rk/rv1126_rv1109

You're building on Linux
Lunch menu...pick a combo:

0. non-rockchip boards
......
77. rockchip_rv1126_battery_evb
78. rockchip_rv1126_evb_dualcam_tb
79. rockchip_rv1126_evb_spi_nor_tb
80. rockchip_rv1126_evb_tb
81. rockchip_rv1126_robot
82. rockchip_rv1126_robot_recovery
83. rockchip_rv1126_rv1109
84. rockchip_rv1126_rv1109_cvr
85. rockchip_rv1126_rv1109_facial_gate
86. rockchip_rv1126_rv1109_libs
87. rockchip_rv1126_rv1109_ramboot_uvcc
88. rockchip_rv1126_rv1109_recovery
89. rockchip_rv1126_rv1109_sl
90. rockchip_rv1126_rv1109_spi_nand
91. rockchip_rv1126_rv1109_spi_nand_recovery
92. rockchip_rv1126_rv1109_tiny
93. rockchip_rv1126_rv1109_uvcc
94. rockchip_rv1126_rv1109_uvcc_spi_nand
95. rockchip_rv1126_rv1109_uvcc_spi_nor
96. rockchip_rv1126_sllock
97. rockchip_rv1126_snapshot
98. rockchip_rv1126_trailcamera
Which would you like? [0]: 83

 83. rockchip_rv1126_rv1109

///

然后是剖析./build.sh 的原理

sdk@ubuntu:~/work/rk/rv1126_rv1109$ ./build.sh -h
Usage: build.sh [OPTIONS]
Available options:
app-clean          - clean buildroot app
app-rebuild        - rebuild buildroot app
app-sync           - sync buildroot app
lunch              - choose defconfig
*_defconfig        - switch to specified defconfig
    Available defconfigs:
        rockchip_38x38_emmc_defconfig
        rockchip_38x38_spi_nand_ab_defconfig
        rockchip_38x38_spi_nand_defconfig
        rockchip_ab_v13_defconfig
        rockchip_battery_evb_defconfig
        rockchip_defconfig
        rockchip_robot_defconfig
        rockchip_sl_defconfig
        rockchip_slc_nand_v12_defconfig
        rockchip_sllock_defconfig
        rockchip_spi_nand_defconfig
        rockchip_spi_nor_tb_v13_defconfig
        rockchip_spi_nor_v12_defconfig
        rockchip_tb_v13_defconfig
        rockchip_trailcamera_defconfig
        rockchip_v10_v11_defconfig
        rockchip_v12_defconfig
olddefconfig       - resolve any unresolved symbols in .config
savedefconfig      - save current config to defconfig
menuconfig         - interactive curses-based configurator
kernel             - build kernel
modules            - build kernel modules
linux-headers      - build linux-headers
loader             - build loader (uboot|spl)
uboot              - build u-boot
spl                - build spl
uefi               - build uefi
wifibt             - build Wifi/BT
rootfs             - build rootfs (default is buildroot)
buildroot          - build buildroot rootfs
yocto              - build yocto rootfs
debian             - build debian rootfs
recovery           - build recovery
pcba               - build PCBA
security_check     - check contidions for security features
createkeys         - build secureboot root keys
security_uboot     - build uboot with security paramter
security_boot      - build boot with security paramter
security_recovery  - build recovery with security paramter
security_rootfs    - build rootfs and some relevant images with security paramter (just for dm-v)
firmware           - generate and check firmwares
updateimg          - build update image
otapackage         - build OTA update image
sdpackage          - build SDcard update image
all                - build all basic image
save               - save images and build info
allsave            - build all & firmware & updateimg & save
cleanall           - cleanup
post-rootfs        - trigger post-rootfs hook scripts
shell              - setup a shell for developing
help               - usage

Default option is 'allsave'.

总结一下脚本指令即可


./build.sh lunch
//1. rockchip_defconfig 
source envsetup.sh
//83. rockchip_rv1126_rv1109

./build.sh

./build.sh uboot
./build.sh kernel
./build.sh rootfs
./build.sh updateimg

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1025509.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【Axure高保真原型】动态控制不透明度

今天和大家分享动态控制不透明度的原型模板,我们可以滑块左右拖动或者点击滑条的某个位置,从而控制图片上方遮罩的不透明度……具体效果可以打开下方原型地址体验或者点击下方视频观看 【原型效果】 【Axure高保真原型】动态控制不透明度 【原型预览及下…

No thread-bound request found 错误以及解决方案

异常信息: cause: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually o…

一起学数据结构(7)——树及二叉树的基本概念及存储

前面的关于数据结构的文章中,介绍了顺序表,链表,栈,队列等数据结构。对于以上数据结构,均是一对一的关系。本篇文章将对于一对多的数据结构——树进行解析。 目录 1. 树的定义及基本概念: 1.1 树的定义&a…

结合el-tooltip,实现内容过长省略,移上显示全部

在系统中,内容过长需要省略,鼠标移上显示全部,这个是常用的功能,也有很多方案解决这种。 单行内容超出处理 常用的css方案: .ellipsis {overflow: hidden;white-space: nowrap;text-overflow: ellipsis; } 该样式在…

基于Android系统英语学习助手APP设计开发

一、 设计思路 1.1设计目标 1.2设计思路 1.3设计内容 1.3.1界面设计 1.3.2功能模块设计 1.3.3功能流程图 1.3.4数据库设计(如果没有数据库这部分删除) 1.4工具设备要求 1.5技术方案 二、设计过程与说明 2.1技术路线 2.2实现方案 2.3实现原理…

C#复习:面向对象基本概念

C#复习:面向对象基本概念 前言什么是面向对象类,名称空间的介绍 如何导入类库DLL引用(黑盒引用)项目引用(白盒引用)NuGet介绍 依赖关系C#的分装(个人理解) 前言 关于我C#的博客是根据刘铁猛老师的C#入门课程为基础写的,可以配合刘铁猛老师的…

.bat批处理命令处理文件

批处理命令处理文件找到上级目录,并删除文件与文件夹 参考资料: [BAT] 如何获取bat的上一级目录、上两级目录..._bat 上层目录_Risun_Lee的博客-CSDN博客echo offset currPath%~dp0set parentPathset parentparentPath:beginfor /f "tokens1,* de…

solidworks导出文本能打开的stl文件

几种以文本格式(ASCII)导出stl的设置 1.solidworks导出时需要在选项里设置导出格式为ASCII,当选择以二进制格式导出时,打开会乱码; 2.CAD直接导出的是以二进制形式导出的,导出后也无法使用文本打开&#xf…

NVIDIA DALI学习:数据加载

DALI的工作流, 如下图: 读取数据图像解码和变换,可以放到GPU上进行,也是加速的关键生成处理好的数据, 导出给计算引擎 测试用例 import ctypesimport numpy as np import nvidia.dali.fn as fn import nvidia.dali…

关于Godot动态生成节点的细节

var dy_btn Button.new()add_child(dy_btn)print(get_child(0).name) 此时获取的名词会带有动态类型,如果这个时候想通过特定的节点名词来获取节点是不行的 此时需要补充类似 dy_btn.name "a" 的代码,然后就能按照节点名词获取节点了

Java下打印九九乘法表

这个算法是基于打直角三角型演变而来&#xff0c;代码如下&#xff1a; public class MyWork {public static void main(String[] args) {for (int i 1; i < 10; i) {for (int j 1; j < i; j) {System.out.print(j "x" i "" i*j "\t&qu…

使用Arduino简单测试HC-08蓝牙模块

目录 模块简介模块测试接线代码测试现象 总结 模块简介 HC-08 蓝牙串口通信模块是新一代的基于 Bluetooth Specification V4.0 BLE 蓝牙协议的数传模块。无线工作频段为 2.4GHz ISM&#xff0c;调制方式是 GFSK。模块最大发射功率为4dBm&#xff0c;接收灵度-93dBm&#xff0c…

软考软件设计师-计算机组成与体系结构(上

软考中级 一、数据的表示如果是其他进制 二、把十进制转其他进制【短除法三、存储系统的层次结构存储系统-存储器的分类 四、把二进制转8进制与16进制二进制转8进制二进制转16进制 五、原码、反码、补码原码反码补码移码原码 反码 补码的取值范围 六、数据的表示-浮点数运算七、…

TienChin 渠道管理-配置字典常量

在字典管理当中添加渠道状态 channel_status&#xff1a;渠道状态 分别为&#xff1a; 正常&#xff0c;键值为1&#xff0c;回显样式为 success 禁用&#xff0c;键值为0&#xff0c;回显样式为 info !> 有个注意点&#xff1a;Vue3 当中 v-for 与 v-if 不能写在一起。 在上…

Linux 查看进程和线程

ps命令 在ps命令中&#xff0c;“-T”选项可以开启线程查看。下面的命令列出了由进程号为<pid>的进程创建的所有线程。 ps -T -p <pid> “SID”栏表示线程ID&#xff0c;而“CMD”栏则显示了线程名称。 你可以用 ps -eLf |grep XXX 来查看程序运行所产生的线程情…

005:vue2使用vue-type-writer实现打字机效果

Vue Type Writer是一个Vue.js 2打字机效果组件&#xff0c;支持像打字机一样模仿键入文本。 文章目录 1. 效果2. 安装使用 1. 效果 2. 安装使用 npm 安装 npm install vue-type-writer --save完整代码 <template><div class"app-container home"><…

MyBatis 高级使用

文章目录 动态SQL语句ifchoosetrimforeach 批量操作批量插入批量更新批量删除BatchExecutor 关联查询嵌套查询延迟加载 分页操作逻辑分页物理分页 MyBatis Generator添加配置文件添加插件生成 通用Mapper方式一方式二 MyBatis-Plus 动态SQL语句 动态 SQL 是 MyBatis 的强大特性…

【运维篇】二、配置文件与多环境控制

文章目录 1、临时属性2、IDEA中的临时属性3、配置文件4级分类4、关于四级分类的思考5、自定义配置文件6、多环境开发&#xff08;yaml版&#xff09;7、配置文件按环境分类8、include与group再细粒度9、一点思考10、多环境开发兼容问题 1、临时属性 jar包或者镜像已经打完了&a…

根据每帧点云的PCD文件和每帧的位姿合成整个点云地图(附python open3d 代码)

现在有多个PCD文件表示每帧的点云,有一个位姿文件,里面是每帧的位姿,需要根据每帧点云和每帧的位姿合成整个地图。 首先,从文件中读取所有点云文件的路径,并将其存储到一个列表中。然后,读取位姿文件,并将其转换为一个 3x4 的矩阵。 然后,遍历所有点云文件。对于每帧点…