文章目录

  • 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

  1. remove old files
  2. 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

  1. remove old files
  2. 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

  1. invoke ‘. build/envsetup.sh’ from your shell to add some functions to your environment
  2. select a reference board and export global variables for other subsequent
  3. 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

  1. source cmd from evnsetup.sh
  2. select a reference board
  3. 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)

  1. install ROCKUSB driver in windows PC first
    1.1 extract ‘’DriverAssitant_Vxxx.zip‘
    1.2 click "DriverInstall.exe’ ,then install this deiver.
  1. 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 :

  1. power up your board.
  2. start ‘AndroidTool.exe’ and click '切换’ to enter ‘loader’mode
  3. 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 开发环境搭建|编译|烧录 开发实例相关推荐

  1. 【瑞芯微Rockchip Linux平台】SoftAp需求实现(3)动态获取BT Mac地址并更新beacon帧中的mac信息

    [瑞芯微Rockchip Linux平台]SoftAp需求实现(3)动态获取BT Mac地址并更新beacon帧中的mac信息 1. 获取本机的蓝牙mac地址 __get_bt_mac_addr() ...

  2. 瑞芯微rockchip PX30触摸屏调试记录

    系列文章目录 瑞芯微rockchip PX30 串口调试记录 瑞芯微rockchip PX30 显示屏调试 瑞芯微rockchip PX30触摸屏调试记录 瑞芯微rockchip PX30 QT环境搭 ...

  3. 【瑞芯微Rockchip Linux平台】SoftAp需求实现(2)根据传参修改SSID和密码,SSID以wifi MAC地址后四位对结尾

    [瑞芯微Rockchip Linux平台]SoftAp需求实现(2)根据传参修改SSID和密码 1. main 函数实现 2. set_hostap_ssid 函数,配置修改hostapd.conf文 ...

  4. 瑞芯微 Rockchip RKNN-Toolkit 环境搭建

    瑞芯微 Rockchip RKNN-Toolkit 环境搭建 flyfish RKNN-Toolkit介绍 RKNN-Toolkit是一个软件开发工具包,为用户提供在 PC 和 Rockchip NP ...

  5. 目标检测 YOLOv5 - v6.2版本模型在瑞芯微 Rockchip设备从训练到C++部署实践

    目标检测 YOLOv5 - v6.2版本模型在瑞芯微 Rockchip设备从训练到C++部署实践 flyfish 源码地址 https://github.com/shaoshengsong/rockc ...

  6. 瑞芯微 Rockchip 升级npu驱动

    瑞芯微 Rockchip 升级npu驱动 flyfish 本例以RV1126为例,其他例子请看 https://github.com/rockchip-linux/rknpu 主机连接开发版 主机为U ...

  7. 瑞芯微 Rockchip rknn 模型在线预编译

    瑞芯微 Rockchip rknn 模型在线预编译 flyfish 主机Host环境 Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Re ...

  8. 【瑞芯微Rockchip Linux平台】SoftAp需求实现(1)进程代码实现

    [瑞芯微Rockchip Linux平台]SoftAp需求实现(1)进程代码实现 一.SoftAp启动命令 二.SoftAp启动命令封装实现过程 2.1 在log前添加系统时间 2.2 查看进程是否正 ...

  9. Banana Pi BPI-R2 Pro 开源路由器采用瑞芯微Rockchip RK3568芯片方案设计

    Banana Pi BPI-R2 Pro 开源路由器采用Rockchip RK3568芯片方案设计, 板载2GB LPDDR4内存和16GB eMMC存储,支持2个USB 3.0接口,5千兆网口.M. ...

  10. 瑞芯微Rockchip出品的驱动安装助手DriverAssitant v4.6

    关键词: 瑞芯微 Rockchip  RK3308  RK3399  驱动安装  DriverAssitant  V4.6  MASKROM  LOADER 驱动安装比较简单,直接点击"驱动 ...

最新文章

  1. 双目视惯雷达SLAM
  2. Microsoft Visual C++ 14.0 is required
  3. 注解图Annotation
  4. Filter若不写chain.doFilter(request,response)原Servlet路径代码不会被执行
  5. matplotlib调整图例的位置
  6. CF1025C Plasticine zebra
  7. 梦里看到你为我写的情书
  8. UVA434 Matty‘s Blocks【贪心】
  9. Hive之行转列/列转行
  10. 孟山都公司董事长兼CEO休-格兰特出席2017年中国发展高层论坛
  11. Oracle 临时表
  12. 双缝干涉实验,在双缝之后加一个反射,会怎样
  13. 第十二课:树莓驱动SG90派舵机
  14. Squoosh - 谷歌出品的免费开源图片压缩工具,图片大小减少90%!支持 API 开发调用
  15. 【那些年踩过的坑】服务器配环境:Ubuntu 16.04 + Titan Xp + CUDA 9.0 + cuDNN 7.1 + Tensorflow + Pytorch + MXNet
  16. java gc roots_Java 虚拟机枚举 GC Roots 解析
  17. xr企业级应用在哪里_如何在XR中保持私密
  18. 加州欧文计算机工程专业,加州大学欧文分校计算机工程博士专业排名
  19. lattice FPGA 官网MIPI参考设计diamond编译报NGO不能展开,怎么解决?
  20. 05.数据的深度分析(数据挖掘、机器学习)--《数据科学概论》

热门文章

  1. Linux系统之查找文件和打包压缩文件
  2. 并购支付牌照中金支付90.01%股权该注意哪些风险
  3. XML注入漏洞修复参考
  4. 你还在用 format 格式化字符串?
  5. 新买的电脑是win11系统,找不到DirectX工具?教你如何操作打开
  6. PyCharm 新建 Python Package
  7. 腾讯汤道生:开放中台能力助力产业升级
  8. Functional JavaScript: 使用 Transducer 提升函数式性能
  9. LaTeX引文.bib方式插入——misplaced alignment tab character . ...ock{\em IEEE Transactions onSystems Man
  10. 北京林业大学计算机考研录取分数线,2017北京林业大学各专业考研复试分数线...