当前位置:网站首页>Rk1126 adds a new module

Rk1126 adds a new module

2022-06-10 18:54:00 QMCY_ jason

For the convenience of development At the same time, it doesn't affect RK Original code

A new module is created to debug the development

  1. stay SDK Of external Create a new one in the directory rk_crazy Catalog ( Name at will ) Put the corresponding code in this directory
  2. stay SDK Of buildroot/package/rockchip Create under directory rk_crazy  Catalog .
  3. stay buildroot/package/rockchip/rk_crazy  Add files Config.in.
config BR2_PACKAGE_RK_CRAZY
    bool "rk_crazy: test rk_crazy"
    select BR2_PACKAGE_RKMEDIA
    select BR2_PACKAGE_ISP2_IPC

4. stay buildroot/package/rockchip/rk_crazy Add files rk_crazy.mk.

RK_CRAZY_SITE = $(TOPDIR)/../external/rk_crazy
RK_CRAZY_SITE_METHOD = local

RK_CRAZY_DEPENDENCIES = rkmedia

$(eval $(cmake-package))

modify buildroot/package/rockchip/Config.in, add to :

source "package/rockchip/rk_crazy/Config.in"

In the corresponding defconfig file ( Such as buildroot/configs/rockchip_rv1126_rv1109_defconfig) Put this package Choose :

Here's defconfig yes In you source envsetup.sh It's the one to choose config Here's the picture

  For example, I choose here 4 

And then this config Namely  firefly_rv1126_rv1109_defconfig

Then go to SDK  buildroot/configs Under the table of contents Modify corresponding config file   Because I chose 4 

So modify the selected one in the above figure config Documents will do This is the default , Later, we can go through make menuconfig The way to modify  

after   go back to SDK root directory  

source envsetup.sh  Select corresponding config After the document  

make menuconfig 

Come out with the following interface

   Press the slash /  The search interface will appear

Search the newly created module crazy 

  You can see that the default value is y 了   

And then quit Press twice in a row ESC key

then Go to the root directory compile ./build.sh  external/rk_crazy

  You can compile   If it is normal and no problem

What you make up will be put in buildroot/output/ Project configuration directory /build/rk_crazy Under the table of contents Here's the picture

 

原网站

版权声明
本文为[QMCY_ jason]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101808157259.html