码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 【待更新】【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 OSSOCDebug OS
    ubuntu 1804PX30win10

    1. compile

    f

    1.1 download SDK

    skip

    1.2 setup environment (if necessary)

    cd SDK
    source build/envsetup.sh
    
    • 1
    • 2

    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
    • 2
    • 3
    • 4
    • 5

    1.3.2 compile kernel

    1. remove old files
    2. recompile kernel
      2.1 use profile : ./arch/arm64/configs/rockchip_defconfig
    cd kernel
    
    make 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
    • 2
    • 3
    • 4
    • 5

    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
    • 2
    • 3

    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
    • 2
    • 3

    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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    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
    
    • 1

    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

  • 相关阅读:
    性能优化:JIT即时编译与AOT提前编译
    2022年最新最详细的MYSQL数据库安装(详细图解过程、毕成功)
    【领域驱动设计】架构和 DDD Kata:在线汽车经销商
    树、二叉树、树的遍历、树的序列化
    怪兽智能推出3D数字人虚拟主播,实时动作捕捉赋能直播营销,打造全新营销场景
    新手教师如何迅速成长
    【Paddle】图像分类竞赛baseline——以智能硬件语音控制的时频图分类挑战赛为例
    抓包工具简单介绍和 fiddler 安装
    简单聊一聊中国的房地产
    现代 Android 开发的第一步Kotlin
  • 原文地址:https://blog.csdn.net/yujianliam/article/details/126488241
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号