匠芯创更新了SDK,加上开发板的补丁应该跑不过去,加群老师给的旧版本的SDK,但是LVGL移植用的是最新版本SDK的(匠芯创出的),这样搞没法玩啊。有大佬做了最新版的适配吗,或者有旧版本的教程也行啊。
一.修改board.dts文件
补丁包路径 target–>d211->d213_devkitf->board.dts
合并board-u-boot.dtsi中的内容到board.dts,然后删除board-u-boot.dtsi文件。
二.修改image_cfg.json文件
补丁包路径 target–>d211->d213_devkitf->image_cfg.json
修改 “recovery”: { “size”: “10m” }, 变为"recovery": { “size”: “16m” },
屏蔽{ “page”: “4k”, “block”: “256k” },
三.修改ddr_init.json文件
补丁包路径 target–>d211->d213_devkitf->ddr_init.json
修改 “tpr13”: “0x0001F801”, 变为 “tpr13”: “0x0001FC01”,
四.修改configs文件
/************************************************************************************************************************************/
1.补丁包路径 target–>configs->d211_d213_devkitf_defconfig
修改:BR2_TOOLCHAIN_EXTERNAL_URL=“toolchain/riscv64-linux-x86_64-20210512.tar.gz”
变成: BR2_TOOLCHAIN_EXTERNAL_URL=“toolchain/riscv64-linux-glibc-x86_64-V2.10.1.tar.gz”
添加:# BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set
添加:BR2_GENERATE_IMAGE_AUTO_CALCULATE_SIZE=y
添加:BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
添加:BR2_PACKAGE_UTIL_LINUX_BINARIES=y
添加:BR2_PACKAGE_UTIL_LINUX_FDFORMAT=y
添加:BR2_PACKAGE_UTIL_LINUX_PARTX=y
//
2.补丁包路径 source–>uboot-2021.10->configs->d211_d213_devkitf_defconfig
添加:CONFIG_SYS_MALLOC_F_LEN=0x4000
修改:CONFIG_SPL_SIZE_LIMIT=0x1A000y
变成: CONFIG_SPL_SIZE_LIMIT=0x20000
添加:CONFIG_AUTO_CALCULATE_PART_CONFIG=y
添加:CONFIG_EVENT=y
//
3.补丁包路径 source–>linux-5.10->arch->riscv->configs->d211_d213_devkitf_defconfig
添加:CONFIG_ARTINCHIP_BWM=y
添加:CONFIG_TOUCHSCREEN_GT9XX=y
添加:# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
/************************************************************************************************************************************/
4.补丁包路径 package–>third-party->bnusybox->configs->d211_d213_devkitf_defconfig
修改:# CONFIG_FEATURE_DEVPTS is not set
变成: CONFIG_FEATURE_DEVPTS=y
修改:
# CONFIG_TELNET is not set
# CONFIG_FEATURE_TELNET_TTYPE is not set
# CONFIG_FEATURE_TELNET_AUTOLOGIN is not set
# CONFIG_FEATURE_TELNET_WIDTH is not set
# CONFIG_TELNETD is not set
# CONFIG_FEATURE_TELNETD_STANDALONE is not set
# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set
变成:
CONFIG_TELNET=y
CONFIG_FEATURE_TELNET_TTYPE=y
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
CONFIG_FEATURE_TELNET_WIDTH=y
CONFIG_TELNETD=y
CONFIG_FEATURE_TELNETD_STANDALONE=y
CONFIG_FEATURE_TELNETD_INETD_WAIT=y