summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/config/Config.in.binfmt3
-rw-r--r--target/config/Config.in.binutils3
-rw-r--r--target/config/Config.in.compiler3
-rw-r--r--target/config/Config.in.cpu14
-rw-r--r--target/config/Config.in.kernelcfg4
-rw-r--r--target/config/Config.in.kernelcmd1
-rw-r--r--target/config/Config.in.kernelversion16
-rw-r--r--target/config/Config.in.libc4
-rw-r--r--target/config/Config.in.runtime1
-rw-r--r--target/config/Config.in.toolchain3
-rw-r--r--target/config/Config.in.tools4
-rw-r--r--target/linux/config/Config.in.serial6
-rw-r--r--target/linux/patches/4.8.11/sh2.patch11
-rw-r--r--target/sh/Makefile8
-rw-r--r--target/sh/kernel/numato-mimasv221
-rw-r--r--target/sh/systems/numato-mimasv26
16 files changed, 90 insertions, 18 deletions
diff --git a/target/config/Config.in.binfmt b/target/config/Config.in.binfmt
index 13e28f6b5..03f2c6003 100644
--- a/target/config/Config.in.binfmt
+++ b/target/config/Config.in.binfmt
@@ -12,12 +12,13 @@ config ADK_TARGET_BINFMT_ELF
config ADK_TARGET_BINFMT_FLAT
bool "FLAT"
select ADK_TARGET_UCLINUX if ADK_TARGET_ARCH_BFIN
+ depends on ADK_TARGET_LIB_UCLIBC_NG
depends on (ADK_TARGET_ARCH_ARM || ADK_TARGET_ARCH_M68K || ADK_TARGET_ARCH_SH || ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_WITHOUT_MMU \
|| ADK_TARGET_ARCH_H8300 || ADK_TARGET_ARCH_LM32 || ADK_TARGET_ARCH_BFIN
config ADK_TARGET_BINFMT_FDPIC
bool "FDPIC"
- depends on ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_FRV
+ depends on ADK_TARGET_ARCH_BFIN || ADK_TARGET_ARCH_FRV || (ADK_TARGET_CPU_SH_J2 && ADK_TARGET_LIB_MUSL)
config ADK_TARGET_BINFMT_DSBT
bool "DSBT"
diff --git a/target/config/Config.in.binutils b/target/config/Config.in.binutils
index fa29adb99..e05a8c0bd 100644
--- a/target/config/Config.in.binutils
+++ b/target/config/Config.in.binutils
@@ -13,6 +13,7 @@ default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_FRV
default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_H8300
default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_NIOS2
default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_XTENSA && ADK_TARGET_LITTLE_ENDIAN
+default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default ADK_TOOLCHAIN_BINUTILS_2_26_1
config ADK_TOOLCHAIN_BINUTILS_GIT
@@ -38,6 +39,7 @@ config ADK_TOOLCHAIN_BINUTILS_2_26_1
depends on !ADK_TARGET_ARCH_H8300
depends on !ADK_TARGET_ARCH_LM32
depends on !ADK_TARGET_ARCH_NDS32
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
config ADK_TOOLCHAIN_BINUTILS_2_25_1
bool "2.25.1"
@@ -49,6 +51,7 @@ config ADK_TOOLCHAIN_BINUTILS_2_25_1
depends on !ADK_TARGET_ARCH_MOXIE
depends on !ADK_TARGET_ARCH_NDS32
depends on !ADK_TARGET_CPU_CRIS_CRISV10
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
config ADK_TOOLCHAIN_BINUTILS_NDS32
bool "2.24-nds32"
diff --git a/target/config/Config.in.compiler b/target/config/Config.in.compiler
index 7c1dc7d3d..b804334a5 100644
--- a/target/config/Config.in.compiler
+++ b/target/config/Config.in.compiler
@@ -33,6 +33,7 @@ default ADK_TOOLCHAIN_GCC_6 if ADK_TARGET_ARCH_FRV
default ADK_TOOLCHAIN_GCC_6 if ADK_TARGET_ARCH_M32R
default ADK_TOOLCHAIN_GCC_6 if ADK_TARGET_CPU_MIPS_MIPS32R6 || ADK_TARGET_CPU_MIPS64_MIPS64R6
default ADK_TOOLCHAIN_GCC_6 if ADK_TARGET_LIB_MUSL && ADK_TARGET_ARCH_S390
+default ADK_TOOLCHAIN_GCC_6 if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default ADK_TOOLCHAIN_GCC_5
config ADK_TOOLCHAIN_GCC_GIT
@@ -71,6 +72,7 @@ config ADK_TOOLCHAIN_GCC_5
depends on !(ADK_TARGET_LIB_GLIBC && ADK_TARGET_ARCH_SH)
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
config ADK_TOOLCHAIN_GCC_4_9
bool "4.9.4"
@@ -87,6 +89,7 @@ config ADK_TOOLCHAIN_GCC_4_9
depends on !ADK_TARGET_ARCH_TILE
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
config ADK_TOOLCHAIN_GCC_OR1K
bool "or1k"
diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu
index f0d1b71c4..7cea653de 100644
--- a/target/config/Config.in.cpu
+++ b/target/config/Config.in.cpu
@@ -980,10 +980,19 @@ config ADK_TARGET_CPU_S390_Z900
depends on ADK_TARGET_ARCH_S390
# sh
+config ADK_TARGET_CPU_SH_J2
+ bool "j2"
+ select ADK_TARGET_SUPPORTS_THREADS
+ select ADK_TARGET_SUPPORTS_NPTL if ADK_TARGET_LIB_MUSL
+ select ADK_TARGET_SUPPORTS_LT if ADK_TARGET_LIB_UCLIBC_NG
+ select ADK_TARGET_WITHOUT_MMU
+ depends on ADK_TARGET_ARCH_SH
+
config ADK_TARGET_CPU_SH_SH2
bool "sh2"
select ADK_TARGET_SUPPORTS_THREADS
- select ADK_TARGET_SUPPORTS_LT
+ select ADK_TARGET_SUPPORTS_NPTL if ADK_TARGET_LIB_MUSL
+ select ADK_TARGET_SUPPORTS_LT if ADK_TARGET_LIB_UCLIBC_NG
select ADK_TARGET_WITHOUT_MMU
depends on ADK_TARGET_ARCH_SH
@@ -1815,6 +1824,7 @@ config ADK_TARGET_CPU_FLAGS
default "-mcpu=v32" if ADK_TARGET_CPU_CRIS_CRISV32
default "-mmetac=2.1" if ADK_TARGET_CPU_METAG
default "-mcpu=v7.10.d" if ADK_TARGET_CPU_MICROBLAZE
+ default "-mj2" if ADK_TARGET_CPU_SH_J2
default "-m2" if ADK_TARGET_CPU_SH_SH2
default "-m2a" if ADK_TARGET_CPU_SH_SH2A
default "-m3" if ADK_TARGET_CPU_SH_SH3
@@ -1921,6 +1931,7 @@ config ADK_TARGET_CPU_TYPE
default "fsf" if ADK_TARGET_CPU_XTENSA_FSF
default "crisv10" if ADK_TARGET_CPU_CRIS_CRISV10
default "crisv32" if ADK_TARGET_CPU_CRIS_CRISV32
+ default "j2" if ADK_TARGET_CPU_SH_J2
default "sh2" if ADK_TARGET_CPU_SH_SH2
default "sh2a" if ADK_TARGET_CPU_SH_SH2A
default "sh3" if ADK_TARGET_CPU_SH_SH3
@@ -1977,6 +1988,7 @@ config ADK_TARGET_CPU_ARCH
default "s390x" if ADK_TARGET_ARCH_S390
default "sh2" if ADK_TARGET_CPU_SH_SH2 && ADK_TARGET_LITTLE_ENDIAN
default "sh2eb" if ADK_TARGET_CPU_SH_SH2 && ADK_TARGET_BIG_ENDIAN
+ default "sh2eb" if ADK_TARGET_CPU_SH_J2 && ADK_TARGET_BIG_ENDIAN
default "sh2a" if ADK_TARGET_CPU_SH_SH2A
default "sh3" if ADK_TARGET_CPU_SH_SH3 && ADK_TARGET_LITTLE_ENDIAN
default "sh3eb" if ADK_TARGET_CPU_SH_SH3 && ADK_TARGET_BIG_ENDIAN
diff --git a/target/config/Config.in.kernelcfg b/target/config/Config.in.kernelcfg
index eb971fdf8..f9f5ec491 100644
--- a/target/config/Config.in.kernelcfg
+++ b/target/config/Config.in.kernelcfg
@@ -21,7 +21,7 @@ config ADK_TARGET_KERNEL_USE_CUSTOMCONFIG
endchoice
config ADK_TARGET_KERNEL_DEFCONFIG
- string
+ string "Defconfig name"
depends on ADK_TARGET_KERNEL_USE_DEFCONFIG
default "bcmrpi_defconfig" if ADK_TARGET_SYSTEM_RASPBERRY_PI
default "bcm2709_defconfig" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
@@ -34,6 +34,8 @@ config ADK_TARGET_KERNEL_DEFCONFIG
default "10m50_defconfig" if ADK_TARGET_SYSTEM_QEMU_NIOS2
default "orca_defconfig" if ADK_TARGET_SYSTEM_ANDES_AG101P
default "bb.org_defconfig" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+ default "j2_defconfig" if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
+ default ""
config ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH
string "Kernel configuration file location"
diff --git a/target/config/Config.in.kernelcmd b/target/config/Config.in.kernelcmd
index d630eb86c..5a2b30599 100644
--- a/target/config/Config.in.kernelcmd
+++ b/target/config/Config.in.kernelcmd
@@ -9,5 +9,6 @@ config ADK_TARGET_CMDLINE
default "metag_da.console_poll=1" if ADK_TARGET_SYSTEM_QEMU_METAG
default "earlycon=uart8250,mmio32,0x9d050020,115200n8 console=ttyS0,115200n8" if ADK_TARGET_CPU_XTENSA_DE212
default "earlyprintk=uart8250-32bit,0x99600000" if ADK_TARGET_SYSTEM_ANDES_AG101P
+ default "earlycon noiotrap" if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default ""
diff --git a/target/config/Config.in.kernelversion b/target/config/Config.in.kernelversion
index f6da4281b..5f50bbcbf 100644
--- a/target/config/Config.in.kernelversion
+++ b/target/config/Config.in.kernelversion
@@ -13,6 +13,7 @@ default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_ARCH_LM32
default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_CRIS
default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_METAG
default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+default ADK_TARGET_KERNEL_VERSION_4_9 if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default ADK_TARGET_KERNEL_VERSION_4_8
config ADK_TARGET_KERNEL_VERSION_GIT
@@ -23,12 +24,20 @@ config ADK_TARGET_KERNEL_VERSION_GIT
select ADK_TARGET_KERNEL_IMAGE if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
select ADK_TARGET_KERNEL_IMAGE if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+config ADK_TARGET_KERNEL_VERSION_4_9
+ bool "4.9"
+ depends on !ADK_TARGET_ARCH_CRIS
+ depends on !ADK_TARGET_ARCH_METAG
+ depends on !ADK_TARGET_ARCH_NDS32
+ depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+
config ADK_TARGET_KERNEL_VERSION_4_8
bool "4.8.11"
depends on !ADK_TARGET_ARCH_CRIS
depends on !ADK_TARGET_ARCH_METAG
depends on !ADK_TARGET_ARCH_NDS32
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
config ADK_TARGET_KERNEL_VERSION_4_4
bool "4.4.30"
@@ -38,6 +47,7 @@ config ADK_TARGET_KERNEL_VERSION_4_4
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
config ADK_TARGET_KERNEL_VERSION_4_1
bool "4.1.35"
@@ -70,6 +80,7 @@ config ADK_TARGET_KERNEL_VERSION_3_18
depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
@@ -89,6 +100,7 @@ config ADK_TARGET_KERNEL_VERSION_3_12
depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
@@ -109,6 +121,7 @@ config ADK_TARGET_KERNEL_VERSION_3_10
depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
@@ -127,6 +140,7 @@ config ADK_TARGET_KERNEL_VERSION_3_4
depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
@@ -146,6 +160,7 @@ config ADK_TARGET_KERNEL_VERSION_3_2
depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
@@ -165,6 +180,7 @@ config ADK_TARGET_KERNEL_VERSION_2_6_32
depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+ depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc
index 009b327a2..c384434fa 100644
--- a/target/config/Config.in.libc
+++ b/target/config/Config.in.libc
@@ -76,7 +76,8 @@ config ADK_TARGET_LIB_GLIBC
ADK_TARGET_ARCH_PPC || \
ADK_TARGET_ARCH_PPC64 || \
ADK_TARGET_ARCH_S390 || \
- ADK_TARGET_ARCH_SH || \
+ ADK_TARGET_CPU_SH_SH4 || \
+ ADK_TARGET_CPU_SH_SH4A || \
ADK_TARGET_ARCH_SPARC || \
ADK_TARGET_ARCH_SPARC64 || \
ADK_TARGET_ARCH_TILE || \
@@ -273,6 +274,7 @@ config ADK_TARGET_SUFFIX
default "muslabi32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_O32
default "musl32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_32 && ADK_LINUX_64
default "muslx32" if ADK_TARGET_LIB_MUSL && ADK_TARGET_ABI_X32 && ADK_LINUX_64
+ default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
default "musl" if ADK_TARGET_LIB_MUSL
default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
default "elf" if ADK_TARGET_LIB_NEWLIB
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 6dc61e668..22bce28f2 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -361,7 +361,6 @@ config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
|| ADK_TARGET_QEMU \
|| ADK_TARGET_SIM
default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
- default "9600" if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default "9600" if ADK_TARGET_SYSTEM_SGI_O2
default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
default "38400" if ADK_TARGET_SYSTEM_ANDES_AG101P
diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain
index 33c5eacb4..3cf310e68 100644
--- a/target/config/Config.in.toolchain
+++ b/target/config/Config.in.toolchain
@@ -7,11 +7,11 @@ bool "Library support"
config ADK_TARGET_USE_SHARED_LIBS_ONLY
bool "Create shared libraries only and link dynamically"
+ depends on !ADK_TARGET_BINFMT_FLAT && !ADK_TARGET_BINFMT_DSBT
config ADK_TARGET_USE_STATIC_LIBS_ONLY
bool "Create static libraries only and link statically"
select BUSYBOX_STATIC
- depends on !ADK_TARGET_BINFMT_FLAT && !ADK_TARGET_BINFMT_DSBT
help
Useful for debugging of dynamic linker problems. Be aware of the fact, that uClibc and glibc
still requires libgcc_so.so.1 for pthread_cancel. Glibc also requires libnss_*.so libraries
@@ -19,6 +19,7 @@ config ADK_TARGET_USE_STATIC_LIBS_ONLY
config ADK_TARGET_USE_SHARED_AND_STATIC_LIBS
bool "Create shared and static libraries and link dynamically"
+ depends on !ADK_TARGET_BINFMT_FLAT && !ADK_TARGET_BINFMT_DSBT
endchoice
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index 7b8bb219c..4d4fb73e5 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -23,6 +23,10 @@ config ADK_HOST_BUILD_BISON
bool
default y
+config ADK_HOST_BUILD_DTC
+ bool
+ default n
+
config ADK_HOST_BUILD_FAKEROOT
bool
default n
diff --git a/target/linux/config/Config.in.serial b/target/linux/config/Config.in.serial
index 9252b8fa7..6044481fc 100644
--- a/target/linux/config/Config.in.serial
+++ b/target/linux/config/Config.in.serial
@@ -258,11 +258,13 @@ config ADK_KERNEL_SERIAL_OMAP
config ADK_KERNEL_SERIAL_UARTLITE
bool "uartlite serial driver"
select ADK_KERNEL_SERIAL_UARTLITE_CONSOLE
- depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800
+ depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
+ || ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default y if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800
+ default y if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default n
help
- Serial driver for Microblaze S3ADSP1800
+ Serial driver for UART lite hardware.
config ADK_KERNEL_SERIAL_ATMEL
bool "AT32 serial driver"
diff --git a/target/linux/patches/4.8.11/sh2.patch b/target/linux/patches/4.8.11/sh2.patch
new file mode 100644
index 000000000..9debe80ad
--- /dev/null
+++ b/target/linux/patches/4.8.11/sh2.patch
@@ -0,0 +1,11 @@
+diff -Nur linux-4.8.11.orig/arch/sh/kernel/cpu/sh2/probe.c linux-4.8.11/arch/sh/kernel/cpu/sh2/probe.c
+--- linux-4.8.11.orig/arch/sh/kernel/cpu/sh2/probe.c 2016-11-26 09:57:13.000000000 +0100
++++ linux-4.8.11/arch/sh/kernel/cpu/sh2/probe.c 2016-12-10 10:38:27.997954035 +0100
+@@ -15,6 +15,7 @@
+ #include <linux/io.h>
+ #include <asm/processor.h>
+ #include <asm/cache.h>
++#include <asm/smp.h>
+
+ #if defined(CONFIG_CPU_J2)
+ extern u32 __iomem *j2_ccr_base;
diff --git a/target/sh/Makefile b/target/sh/Makefile
index 70df270be..58823b38d 100644
--- a/target/sh/Makefile
+++ b/target/sh/Makefile
@@ -67,6 +67,12 @@ endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
+dtb-install:
+ifeq ($(ADK_TARGET_SYSTEM_NUMATO_MIMASV2),y)
+ PATH='$(HOST_PATH)' dtc -O dtb -o $(FW_DIR)/dt.dtb \
+ $(LINUX_DIR)/arch/sh/boot/dts/j2_mimas_v2.dts
+endif
+
# filesystem specific targets
ifeq ($(ADK_TARGET_FS),archive)
imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
@@ -78,5 +84,5 @@ ifeq ($(ADK_TARGET_FS),initramfsarchive)
imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
endif
ifeq ($(ADK_TARGET_FS),initramfspiggyback)
-imageinstall: createinitramfs targethelp
+imageinstall: dtb-install createinitramfs targethelp
endif
diff --git a/target/sh/kernel/numato-mimasv2 b/target/sh/kernel/numato-mimasv2
index f66b31fa1..ca290f15d 100644
--- a/target/sh/kernel/numato-mimasv2
+++ b/target/sh/kernel/numato-mimasv2
@@ -1,10 +1,17 @@
CONFIG_SUPERH=y
CONFIG_SUPERH32=y
CONFIG_CPU_SH2=y
-CONFIG_0PF_FPGA=y
-CONFIG_CPU_SUBTYPE_0PF=y
-CONFIG_CACHE_OFF=y
-CONFIG_CMDLINE_EXTEND=y
-CONFIG_SERIAL_UARTLITE=y
-CONFIG_SERIAL_UARTLITE_0PF=y
-CONFIG_SERIAL_UARTLITE_CONSOLE=y
+CONFIG_CPU_SUBTYPE_J2=y
+CONFIG_SH_JCORE_SOC=y
+CONFIG_SMP=y
+CONFIG_MEMORY_START=0x10000000
+CONFIG_MEMORY_SIZE=0x04000000
+CONFIG_SH_DEVICE_TREE=y
+CONFIG_I2C=y
+CONFIG_SPI=y
+CONFIG_SPI_JCORE=y
+CONFIG_MMC=y
+CONFIG_MMC_SPI=y
+CONFIG_CLKSRC_JCORE_PIT=y
+CONFIG_JCORE_AIC=y
+CONFIG_SERIAL_EARLYCON=y
diff --git a/target/sh/systems/numato-mimasv2 b/target/sh/systems/numato-mimasv2
index 088fc5a73..e14d4ce71 100644
--- a/target/sh/systems/numato-mimasv2
+++ b/target/sh/systems/numato-mimasv2
@@ -1,7 +1,9 @@
config ADK_TARGET_SYSTEM_NUMATO_MIMASV2
bool "Numato Mimas v2 FPGA"
- select ADK_TARGET_CPU_SH_SH2
+ select ADK_TARGET_CPU_SH_J2
select ADK_TARGET_WITH_SERIAL
+ select ADK_TARGET_WITH_BLOCK
+ select ADK_HOST_BUILD_DTC
help
- Support for Numato Mimas v2 FPGA with J2 Core Bitstream, sh2 architecture.
+ Support for Numato Mimas v2 FPGA with J2 Core Bitstream (sh2eb).