【待更新】【Rockchip】瑞芯微/rockchip 开发环境搭建|编译|烧录 开发实例


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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

过得精彩

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值