diff options
-rw-r--r-- | target/linux/Config.in.kernelcfg | 3 | ||||
-rw-r--r-- | target/riscv64/Makefile | 3 | ||||
-rw-r--r-- | target/riscv64/kernel/sipeed-maixduino | 9 | ||||
-rw-r--r-- | target/riscv64/systems/sipeed-maixduino | 7 |
4 files changed, 21 insertions, 1 deletions
diff --git a/target/linux/Config.in.kernelcfg b/target/linux/Config.in.kernelcfg index 718731f20..facc5c9da 100644 --- a/target/linux/Config.in.kernelcfg +++ b/target/linux/Config.in.kernelcfg @@ -7,7 +7,7 @@ depends on ADK_TARGET_OS_LINUX default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_CPU_ARC_ARC32 default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_CPU_ARC_ARC64 default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT -default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT +default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_SYSTEM_SIPEED_MAIXDUINO default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK && ADK_TARGET_LINUX_KERNEL_VERSION_GIT default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_SYSTEM_PHYTEC_WEGA && ADK_TARGET_LINUX_KERNEL_VERSION_GIT default ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG && ADK_TARGET_LINUX_KERNEL_VERSION_GIT @@ -57,6 +57,7 @@ config ADK_TARGET_LINUX_KERNEL_DEFCONFIG default "stm32_defconfig" if ADK_TARGET_SYSTEM_ST_STM32F769 default "stm32_defconfig" if ADK_TARGET_SYSTEM_ST_STM32F746G default "nommu_k210_defconfig" if ADK_TARGET_SYSTEM_SIPEED_MAIX_BIT + default "nommu_k210_defconfig" if ADK_TARGET_SYSTEM_SIPEED_MAIXDUINO default "loongson3_defconfig" if ADK_TARGET_SYSTEM_QEMU_LOONGARCH default "defconfig" if ADK_TARGET_SYSTEM_ROCKPI4_PLUS default "rockpi4_defconfig" if ADK_TARGET_SYSTEM_ROCKPI4_PLUS && ADK_TARGET_LINUX_KERNEL_VERSION_GIT 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. |