[Buildroot] [PATCH v4 8/9] board: Add Canaan KD233 support
From: Damien Le Moal <hidden>
Date: 2021-08-30 04:42:38
Subsystem:
the rest · Maintainer:
Linus Torvalds
Add two configuration files to support the dual-core RV64 Canaan K210 SoC based KD233 development board. These configurations are similar to the configurations defined for the Sipeed boards, differing only by the built-in kernel device tree used. Signed-off-by: Damien Le Moal <redacted> --- board/canaan/kd233/linux-dtb.config | 2 ++ configs/canaan_kd233_defconfig | 15 +++++++++++++++ configs/canaan_kd233_sdcard_defconfig | 14 ++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 board/canaan/kd233/linux-dtb.config create mode 100644 configs/canaan_kd233_defconfig create mode 100644 configs/canaan_kd233_sdcard_defconfig
diff --git a/board/canaan/kd233/linux-dtb.config b/board/canaan/kd233/linux-dtb.config
new file mode 100644
index 0000000000..d5b107124a
--- /dev/null
+++ b/board/canaan/kd233/linux-dtb.config@@ -0,0 +1,2 @@ +CONFIG_SOC_CANAAN_K210_DTB_BUILTIN=y +CONFIG_SOC_CANAAN_K210_DTB_SOURCE="canaan_kd233"
diff --git a/configs/canaan_kd233_defconfig b/configs/canaan_kd233_defconfig
new file mode 100644
index 0000000000..cabb6aa4f8
--- /dev/null
+++ b/configs/canaan_kd233_defconfig@@ -0,0 +1,15 @@ +BR2_riscv=y +BR2_KERNEL_HEADERS_5_13=y +BR2_PACKAGE_HOST_ELF2FLT=y +# BR2_USE_MMU is not set +BR2_INIT_NONE=y +BR2_ROOTFS_OVERLAY="board/canaan/k210-common/rootfs_overlay" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_DEFCONFIG="nommu_k210" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/canaan/kd233/linux-dtb.config" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_NAME="loader.bin" +BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-minimal.config" +BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/canaan/k210-common/busybox-tiny.config" +# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set +BR2_TARGET_ROOTFS_INITRAMFS=y
diff --git a/configs/canaan_kd233_sdcard_defconfig b/configs/canaan_kd233_sdcard_defconfig
new file mode 100644
index 0000000000..c57418674f
--- /dev/null
+++ b/configs/canaan_kd233_sdcard_defconfig@@ -0,0 +1,14 @@ +BR2_riscv=y +BR2_KERNEL_HEADERS_5_13=y +BR2_PACKAGE_HOST_ELF2FLT=y +# BR2_USE_MMU is not set +BR2_INIT_NONE=y +BR2_ROOTFS_OVERLAY="board/canaan/k210-common/rootfs_overlay" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_DEFCONFIG="nommu_k210_sdcard" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/canaan/kd233/linux-dtb.config" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_NAME="loader.bin" +BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-minimal.config" +# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set +BR2_TARGET_ROOTFS_EXT2=y
--
2.31.1
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot