RK3568开发板安卓系统之建立新产品配置(二)

RK3568开发板安卓系统之建立新产品配置(二) 万万没想到 2022-09-30 17:14:24 2437

2 建立新产品配置

2.1 建立产品dts

产品新建dts可以选择rk3568-evb1-ddr4-v10.dts作为参考,拷贝rk3568-evb1-ddr4-v10.dts为rk3568-aybering.dts, 然后修改Makefile

hale@thinkpad:rk3568_aybering_Android11$ cp kernel/arch/arm64/boot/dts/rockchip/k3568-evb1-ddr4-v10.dts kernel/arch/arm64/boot/dts/rockchip/rk3568-aybering.dts
diff --git a/kernel/arch/arm64/boot/dts/rockchip/Makefile b/kernel/arch/arm64/boot/dts/rockchip/Makefile
index 8046acf41f..b6565c90a4 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/Makefile
+++ b/kernel/arch/arm64/boot/dts/rockchip/Makefile
@@ -91,6 +91,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rk817-tablet.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rk817-tablet-k108.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rk817-tablet-rkg11.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rk817-tablet-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-aybering.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10-linux.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10-linux-spi-nor.dtb
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3568-aybering.dts b/kernel/arch/arm64/boot/dts/rockchip/rk3568-aybering.dts
new file mode 100644
index 0000000000..00c28f3926
--- /dev/null
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3568-aybering.dts
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
+ *
+ */
+
+#include "rk3568-evb1-ddr4-v10.dtsi"
+#include "rk3568-android.dtsi"

2.2 建立产品lunch

以RK356x平台新建 rk3568_aybering 产品为例,分以下步骤:

2.2.1 修改device/rockchip/rk356x/AndroidProducts.mk增加rk3568_aybering的lunch

diff --git a/device/rockchip/rk356x/AndroidProducts.mk b/device/rockchip/rk356x/AndroidProducts.mk
index f8a1e06935..4106545b8d 100644
--- a/device/rockchip/rk356x/AndroidProducts.mk
+++ b/device/rockchip/rk356x/AndroidProducts.mk
@@ -19,6 +19,7 @@ PRODUCT_MAKEFILES := \
         $(LOCAL_DIR)/rk3566_32bit/rk3566_32bit.mk \
         $(LOCAL_DIR)/rk3566_r/rk3566_r.mk \
         $(LOCAL_DIR)/rk3568_r/rk3568_r.mk \
+        $(LOCAL_DIR)/rk3568_aybering/rk3568_aybering.mk \
         $(LOCAL_DIR)/rk3566_eink/rk3566_eink.mk \
         $(LOCAL_DIR)/rk3566_einkw6/rk3566_einkw6.mk

@@ -31,6 +32,8 @@ COMMON_LUNCH_CHOICES := \
     rk3566_r-user \
     rk3568_r-userdebug \
     rk3568_r-user \
+    rk3568_aybering-user \
+    rk3568_aybering-userdebug \
     rk3566_eink-userdebug \
     rk3566_eink-user \
     rk3566_einkw6-userdebug \

2.2.2 在device/rockchip/rk356x目录下新建rk3568_r目录

    参考device/rockchip/rk356x下已有的rk3568_r产品目录新建,可以先直接拷贝rk3568_r为rk3568_aybering,然后将rk3568_aybering目录下的所有rk3568_r字符改为rk3568_aybering

2.2.3 再次执行lunch命令即可看到新增的产品

hale@thinkpad:rk3568_aybering_Android11$ lunch 

You're building on Linux

Lunch menu... pick a combo:
    ...
     52. rk3566_rgo-user
     53. rk3566_rgo-userdebug
     54. rk3568_aybering-user
     55. rk3568_aybering-userdebug
     56. rk3568_r-user
     57. rk3568_r-userdebug
     ...

Which would you like? [aosp_arm-eng] 55

============================================

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=rk3568_aybering
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-124-generic-x86_64-Ubuntu-18.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.210705.001
OUT_DIR=out

============================================
hale@thinkpad:rk3568_aybering_Android11$ 

2.2.4 再次完整编译

hale@thinkpad:rk3568_aybering_Android11$ ./build.sh -UCKAup

期间,会再次弹出电压域配置窗口

hale@thinkpad:rk3568_aybering_Android11$ ls IMAGE/
RK3568_R_USERDEBUG_RK3568-EVB1-DDR4-V10__20220816.1803
RK3568_AYBERING_USERDEBUG_RK3568-AYBERING__20220821.1559
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包 点赞 收藏 评论 打赏
评论
0个
内容存在敏感词
手气红包
    易百纳技术社区暂无数据
相关专栏
置顶时间设置
结束时间
删除原因
  • 广告/SPAM
  • 恶意灌水
  • 违规内容
  • 文不对题
  • 重复发帖
打赏作者
易百纳技术社区
万万没想到
您的支持将鼓励我继续创作!
打赏金额:
¥1易百纳技术社区
¥5易百纳技术社区
¥10易百纳技术社区
¥50易百纳技术社区
¥100易百纳技术社区
支付方式:
微信支付
支付宝支付
易百纳技术社区微信支付
易百纳技术社区
打赏成功!

感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~

举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

审核成功

发布时间设置
发布时间:
是否关联周任务-专栏模块

审核失败

失败原因
备注
拼手气红包 红包规则
祝福语
恭喜发财,大吉大利!
红包金额
红包最小金额不能低于5元
红包数量
红包数量范围10~50个
余额支付
当前余额:
可前往问答、专栏板块获取收益 去获取
取 消 确 定

小包子的红包

恭喜发财,大吉大利

已领取20/40,共1.6元 红包规则

    易百纳技术社区