【待更新】【Rockchip】瑞芯微/rockchip 开发环境搭建|编译|烧录 开发实例
文章目录
- 0.environment
- 1. compile
- 1.1 download SDK
- 1.2 setup environment (if necessary)
- 1.3 compile steps
- 1.3.1 compile u-boot
- 1.3.2 compile kernel
- 1.3.3 complie android
- 1.3.4 build system.img
- 1.3.5 build update.img
- 2. burning
- 2.1 use 'AndroidTool.exe' (designed by Rocdchip)
- 2.1.1 use FW img
- change list
- 1. change CHIP INFO for update.img
- 2. ADD cmd like vim / xxx (busybox)
- 3. ADD ALSA/I2C/SOUND/USB (kernel module)
- issue list
- proting busybox
- porting ALSA
- porting I2C
- porting SOUND
- porting PI5USB
- porting RTL5640 codecs/DSP
0.environment
DEV OS | SOC | Debug OS |
---|---|---|
ubuntu 1804 | PX30 | win10 |
1. compile
f
1.1 download SDK
skip
1.2 setup environment (if necessary)
cd SDK
source build/envsetup.sh
1.3 compile steps
1.3.1 compile u-boot
- remove old files
- recompile uboot (use profile : u-boot/configs/px30_defconfig)
cd u-boot/
#make clean # Remove most generated files but keep the config and enough build support to build external modules
make mrproper # Remove all generated files + config + various backup files
#make distclean # mrproper + remove editor backup and patch files
./make.sh px30 # use profile : ./configs/px30_defconfig
1.3.2 compile kernel
- remove old files
- recompile kernel
2.1 use profile : ./arch/arm64/configs/rockchip_defconfig
cd kernelmake ARCH=arm64 rockchip_defconfig # use profile : ./arch/arm64/configs/rockchip_defconfig
rm -rf arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10-avb.dtb # remove the old compiled files first,
make ARCH=arm64 px30-evb-ddr3-v10-avb.img # and then recompile the kernel files we need
1.3.3 complie android
- invoke ‘. build/envsetup.sh’ from your shell to add some functions to your environment
- select a reference board and export global variables for other subsequent
- recomile files
source SDK/build/envsetup.sh # invoke '. build/envsetup.sh' from your shell to add some functions to your environment
lunch rk3326_m2g-userdebug # select a reference board and export global variables for other subsequent
make -j20 # compile android
1.3.4 build system.img
- source cmd from evnsetup.sh
- select a reference board
- rebuild system.img
source SDK/build/envsetup.sh
lunch rk3326_m2g-userdebug
./mkimage.sh
1.3.5 build update.img
1, Copy the new imgs to FW/
2. rebuild update.img
cp -rf rockdev/Image-rk3326_m2g RKTools/linux/Linux_Pack_Firmware/rockdev # copy the generated img to FW/
cd RKTools/linux/Linux_Pack_Firmware/rockdev/ # change list to FW/
rm -rf Image # remove the old Images first.
# sed -i 's/RK3326/RKPX30/g' mkupdate.sh // change CHIP INFO
./mkupdate.sh # and then rebuild update.img
#cp update.img xxxx # if necessary
2. burning
2.1 use ‘AndroidTool.exe’ (designed by Rocdchip)
- install ROCKUSB driver in windows PC first
1.1 extract ‘’DriverAssitant_Vxxx.zip‘
1.2 click "DriverInstall.exe’ ,then install this deiver.
- install ADB tool
2.1 extract ‘AndroidTool_xxx.zip’
2.2 add the dirctory of adb.exe into the win environment veriable path
2.3 restart the windows of CMD.
2.1.1 use FW img
file name like :
xxxxx_update.img
steps :
- power up your board.
- start ‘AndroidTool.exe’ and click '切换’ to enter ‘loader’mode
- click’固件’ , then select the file to upgrade.
change list
1. change CHIP INFO for update.img
sed -i 's/RK3326/RKPX30/g' RKTools/linux/Linux_Pack_Firmware/rockdev/mkupdate.sh
then rebuilg updage.img, use cmd like :
RKTools/linux/Linux_Pack_Firmware/rockdev/mkupdate.sh
2. ADD cmd like vim / xxx (busybox)
3. ADD ALSA/I2C/SOUND/USB (kernel module)
issue list
【待更新】【Rockchip】瑞芯微/rockchip 开发环境搭建|编译|烧录 开发实例相关推荐
- 【瑞芯微Rockchip Linux平台】SoftAp需求实现(3)动态获取BT Mac地址并更新beacon帧中的mac信息
[瑞芯微Rockchip Linux平台]SoftAp需求实现(3)动态获取BT Mac地址并更新beacon帧中的mac信息 1. 获取本机的蓝牙mac地址 __get_bt_mac_addr() ...
- 瑞芯微rockchip PX30触摸屏调试记录
系列文章目录 瑞芯微rockchip PX30 串口调试记录 瑞芯微rockchip PX30 显示屏调试 瑞芯微rockchip PX30触摸屏调试记录 瑞芯微rockchip PX30 QT环境搭 ...
- 【瑞芯微Rockchip Linux平台】SoftAp需求实现(2)根据传参修改SSID和密码,SSID以wifi MAC地址后四位对结尾
[瑞芯微Rockchip Linux平台]SoftAp需求实现(2)根据传参修改SSID和密码 1. main 函数实现 2. set_hostap_ssid 函数,配置修改hostapd.conf文 ...
- 瑞芯微 Rockchip RKNN-Toolkit 环境搭建
瑞芯微 Rockchip RKNN-Toolkit 环境搭建 flyfish RKNN-Toolkit介绍 RKNN-Toolkit是一个软件开发工具包,为用户提供在 PC 和 Rockchip NP ...
- 目标检测 YOLOv5 - v6.2版本模型在瑞芯微 Rockchip设备从训练到C++部署实践
目标检测 YOLOv5 - v6.2版本模型在瑞芯微 Rockchip设备从训练到C++部署实践 flyfish 源码地址 https://github.com/shaoshengsong/rockc ...
- 瑞芯微 Rockchip 升级npu驱动
瑞芯微 Rockchip 升级npu驱动 flyfish 本例以RV1126为例,其他例子请看 https://github.com/rockchip-linux/rknpu 主机连接开发版 主机为U ...
- 瑞芯微 Rockchip rknn 模型在线预编译
瑞芯微 Rockchip rknn 模型在线预编译 flyfish 主机Host环境 Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Re ...
- 【瑞芯微Rockchip Linux平台】SoftAp需求实现(1)进程代码实现
[瑞芯微Rockchip Linux平台]SoftAp需求实现(1)进程代码实现 一.SoftAp启动命令 二.SoftAp启动命令封装实现过程 2.1 在log前添加系统时间 2.2 查看进程是否正 ...
- Banana Pi BPI-R2 Pro 开源路由器采用瑞芯微Rockchip RK3568芯片方案设计
Banana Pi BPI-R2 Pro 开源路由器采用Rockchip RK3568芯片方案设计, 板载2GB LPDDR4内存和16GB eMMC存储,支持2个USB 3.0接口,5千兆网口.M. ...
- 瑞芯微Rockchip出品的驱动安装助手DriverAssitant v4.6
关键词: 瑞芯微 Rockchip RK3308 RK3399 驱动安装 DriverAssitant V4.6 MASKROM LOADER 驱动安装比较简单,直接点击"驱动 ...
最新文章
- 双目视惯雷达SLAM
- Microsoft Visual C++ 14.0 is required
- 注解图Annotation
- Filter若不写chain.doFilter(request,response)原Servlet路径代码不会被执行
- matplotlib调整图例的位置
- CF1025C Plasticine zebra
- 梦里看到你为我写的情书
- UVA434 Matty‘s Blocks【贪心】
- Hive之行转列/列转行
- 孟山都公司董事长兼CEO休-格兰特出席2017年中国发展高层论坛
- Oracle 临时表
- 双缝干涉实验,在双缝之后加一个反射,会怎样
- 第十二课:树莓驱动SG90派舵机
- Squoosh - 谷歌出品的免费开源图片压缩工具,图片大小减少90%!支持 API 开发调用
- 【那些年踩过的坑】服务器配环境:Ubuntu 16.04 + Titan Xp + CUDA 9.0 + cuDNN 7.1 + Tensorflow + Pytorch + MXNet
- java gc roots_Java 虚拟机枚举 GC Roots 解析
- xr企业级应用在哪里_如何在XR中保持私密
- 加州欧文计算机工程专业,加州大学欧文分校计算机工程博士专业排名
- lattice FPGA 官网MIPI参考设计diamond编译报NGO不能展开,怎么解决?
- 05.数据的深度分析(数据挖掘、机器学习)--《数据科学概论》
热门文章
- Linux系统之查找文件和打包压缩文件
- 并购支付牌照中金支付90.01%股权该注意哪些风险
- XML注入漏洞修复参考
- 你还在用 format 格式化字符串?
- 新买的电脑是win11系统,找不到DirectX工具?教你如何操作打开
- PyCharm 新建 Python Package
- 腾讯汤道生:开放中台能力助力产业升级
- Functional JavaScript: 使用 Transducer 提升函数式性能
- LaTeX引文.bib方式插入——misplaced alignment tab character . ...ock{\em IEEE Transactions onSystems Man
- 北京林业大学计算机考研录取分数线,2017北京林业大学各专业考研复试分数线...