技术专栏
RK3568开发板安卓系统之建立新产品配置(二)
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个
手气红包
暂无数据
相关专栏
-
浏览量:2665次2022-10-28 09:28:29
-
浏览量:5835次2022-10-08 13:56:28
-
浏览量:17956次2022-09-30 16:51:48
-
浏览量:9153次2022-10-12 09:28:15
-
浏览量:4837次2022-09-30 16:40:59
-
浏览量:2524次2022-09-30 16:48:25
-
浏览量:3974次2022-10-11 10:48:08
-
浏览量:6467次2022-10-08 14:00:42
-
浏览量:7742次2022-10-13 19:26:04
-
浏览量:6421次2022-10-09 10:20:09
-
浏览量:9967次2022-10-09 15:56:41
-
浏览量:11305次2022-10-18 09:33:58
-
浏览量:4639次2022-10-14 08:34:42
-
浏览量:9439次2022-10-10 11:27:15
-
浏览量:7327次2022-10-10 20:15:42
-
浏览量:7959次2022-10-17 11:49:55
-
浏览量:32439次2022-06-11 11:06:24
-
浏览量:2915次2021-06-15 09:44:15
-
浏览量:13155次2022-09-28 13:51:28
置顶时间设置
结束时间
删除原因
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
打赏作者
万万没想到
您的支持将鼓励我继续创作!
打赏金额:
¥1
¥5
¥10
¥50
¥100
支付方式:
微信支付
打赏成功!
感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
审核成功
发布时间设置
发布时间:
请选择发布时间设置
是否关联周任务-专栏模块
审核失败
失败原因
请选择失败原因
备注
请输入备注