From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Le Moal Date: Fri, 9 Jul 2021 15:36:38 +0900 Subject: [Buildroot] [PATCH 6/9] board: Add Sipeed MAIXDUINO support In-Reply-To: <20210709063641.277005-1-damien.lemoal@wdc.com> References: <20210709063641.277005-1-damien.lemoal@wdc.com> Message-ID: <20210709063641.277005-7-damien.lemoal@wdc.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Add two configuration files to support the RISC-V Canaan K210 SoC based Sipeed MAIXDUINO board. These configurations are similar to the Sipeed MAIX-bit board configurations, differing only by the built-in device tree used. Signed-off-by: Damien Le Moal --- board/sipeed/maixduino/linux-dtb.config | 2 ++ configs/sipeed_maixduino_defconfig | 23 +++++++++++++++++++++++ configs/sipeed_maixduino_sdcard_defconfig | 23 +++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 board/sipeed/maixduino/linux-dtb.config create mode 100644 configs/sipeed_maixduino_defconfig create mode 100644 configs/sipeed_maixduino_sdcard_defconfig diff --git a/board/sipeed/maixduino/linux-dtb.config b/board/sipeed/maixduino/linux-dtb.config new file mode 100644 index 0000000000..049a2550c5 --- /dev/null +++ b/board/sipeed/maixduino/linux-dtb.config @@ -0,0 +1,2 @@ +CONFIG_SOC_CANAAN_K210_DTB_BUILTIN=y +CONFIG_SOC_CANAAN_K210_DTB_SOURCE="sipeed_maixduino" diff --git a/configs/sipeed_maixduino_defconfig b/configs/sipeed_maixduino_defconfig new file mode 100644 index 0000000000..b95cbfc5ba --- /dev/null +++ b/configs/sipeed_maixduino_defconfig @@ -0,0 +1,23 @@ +BR2_riscv=y +# BR2_COMPILER_PARANOID_UNSAFE_PATH is not set +BR2_KERNEL_HEADERS_5_13=y +# BR2_UCLIBC_INSTALL_UTILS is not set +BR2_GCC_VERSION_11_X=y +BR2_GCC_ENABLE_LTO=y +BR2_PACKAGE_HOST_ELF2FLT=y +# BR2_USE_MMU is not set +BR2_TARGET_GENERIC_HOSTNAME="" +BR2_INIT_NONE=y +BR2_ROOTFS_MERGED_USR=y +BR2_SYSTEM_DEFAULT_PATH="/bin:/sbin:/usr/bin:/usr/sbin" +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/sipeed/maixduino/linux-dtb.config" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_NAME="loader.bin" +BR2_PACKAGE_BUSYBOX_CONFIG="board/canaan/k210-common/busybox-tiny-initramfs.config" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set +BR2_TARGET_ROOTFS_INITRAMFS=y +# BR2_TARGET_ROOTFS_TAR is not set diff --git a/configs/sipeed_maixduino_sdcard_defconfig b/configs/sipeed_maixduino_sdcard_defconfig new file mode 100644 index 0000000000..c8a1d98d28 --- /dev/null +++ b/configs/sipeed_maixduino_sdcard_defconfig @@ -0,0 +1,23 @@ +BR2_riscv=y +# BR2_COMPILER_PARANOID_UNSAFE_PATH is not set +BR2_KERNEL_HEADERS_5_13=y +# BR2_UCLIBC_INSTALL_UTILS is not set +BR2_GCC_VERSION_11_X=y +BR2_GCC_ENABLE_LTO=y +BR2_PACKAGE_HOST_ELF2FLT=y +# BR2_USE_MMU is not set +BR2_TARGET_GENERIC_HOSTNAME="" +BR2_INIT_NONE=y +BR2_ROOTFS_MERGED_USR=y +BR2_SYSTEM_DEFAULT_PATH="/bin:/sbin:/usr/bin:/usr/sbin" +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/sipeed/maixduino/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_SHOW_OTHERS=y +# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set -- 2.31.1