From fd70cfcda2f54af60d68a1f7522bdf1a734547a3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 30 Mar 2025 15:16:45 +0200 Subject: sipeed-maixduino: add board support --- target/riscv64/Makefile | 3 +++ target/riscv64/kernel/sipeed-maixduino | 9 +++++++++ target/riscv64/systems/sipeed-maixduino | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 target/riscv64/kernel/sipeed-maixduino create mode 100644 target/riscv64/systems/sipeed-maixduino (limited to 'target/riscv64') diff --git a/target/riscv64/Makefile b/target/riscv64/Makefile index 55134d24e..ba5a7749e 100644 --- a/target/riscv64/Makefile +++ b/target/riscv64/Makefile @@ -54,6 +54,9 @@ endif ifeq ($(ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT),y) @echo 'sudo python3 scripts/kflash.py -p /dev/ttyUSB0 -b 1500000 -t $(FW_DIR)/$(TARGET_KERNEL)' endif +ifeq ($(ADK_TARGET_SYSTEM_SIPEED_MAIXDUINO),y) + @echo 'sudo python3 scripts/kflash.py -p /dev/ttyUSB0 -b 1500000 -t $(FW_DIR)/$(TARGET_KERNEL)' +endif endif ifeq ($(ADK_TARGET_FS),genimage) targethelp: diff --git a/target/riscv64/kernel/sipeed-maixduino b/target/riscv64/kernel/sipeed-maixduino new file mode 100644 index 000000000..713afd415 --- /dev/null +++ b/target/riscv64/kernel/sipeed-maixduino @@ -0,0 +1,9 @@ +CONFIG_RISCV=y +CONFIG_SOC_CANAAN=y +CONFIG_SOC_CANAAN_K210_DTB_BUILTIN=y +CONFIG_SOC_CANAAN_K210_DTB_SOURCE="sipeed_maixduino" +CONFIG_SMP=y +CONFIG_NR_CPUS=2 +CONFIG_CMDLINE="earlycon console=ttySIF0" +CONFIG_CMDLINE_FORCE=y +CONFIG_SECTION_MISMATCH_WARN_ONLY=y diff --git a/target/riscv64/systems/sipeed-maixduino b/target/riscv64/systems/sipeed-maixduino new file mode 100644 index 000000000..e3261d66a --- /dev/null +++ b/target/riscv64/systems/sipeed-maixduino @@ -0,0 +1,7 @@ +config ADK_TARGET_SYSTEM_SIPEED_MAIXDUINO + bool "Sipeed MAiXDUiNO" + select ADK_TARGET_CPU_RISCV64 + select ADK_TARGET_WITH_SERIAL + select ADK_TARGET_KERNEL_IMAGE + help + Sipeed MAiXDUiNO support. -- cgit v1.2.3