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

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 Youre 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

免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:RK3568开发板安卓系统之建立新产品配置(二)-rk3566开发板 https://www.yhzz.com.cn/a/9774.html

上一篇 2023-04-20 18:48:30
下一篇 2023-04-20 18:50:54

相关推荐

联系云恒

在线留言: 我要留言
客服热线:400-600-0310
工作时间:周一至周六,08:30-17:30,节假日休息。