summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/config/Config.in.runtime4
-rw-r--r--target/sh/Makefile5
-rw-r--r--target/sh/kernel/numato-mimasv24
-rw-r--r--target/sh/systems/numato-mimasv21
4 files changed, 12 insertions, 2 deletions
diff --git a/target/config/Config.in.runtime b/target/config/Config.in.runtime
index 4c4f306dd..b4fe068c8 100644
--- a/target/config/Config.in.runtime
+++ b/target/config/Config.in.runtime
@@ -251,7 +251,8 @@ config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
|| ADK_TARGET_SIM
default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
default "ttyBF0" if ADK_TARGET_ARCH_BFIN
- default "ttyUL0" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800
+ default "ttyUL0" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
+ || ADK_TARGET_SYSTEM_NUMATO_MIMASV2
default "ttyARC0" if ADK_TARGET_SYSTEM_NSIM_ARCV1 \
|| ADK_TARGET_SYSTEM_NSIM_ARCV2
default "ttyAMA0" if ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB \
@@ -275,6 +276,7 @@ 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 "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
default "115200"
diff --git a/target/sh/Makefile b/target/sh/Makefile
index c42d6570a..70df270be 100644
--- a/target/sh/Makefile
+++ b/target/sh/Makefile
@@ -10,6 +10,7 @@ KERNEL:=$(LINUX_DIR)/vmlinux
else
KERNEL:=$(LINUX_DIR)/arch/sh/boot/zImage
endif
+OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
QEMU_ARGS:=-M r2d
QEMU_ARGS+=${ADK_QEMU_ARGS}
@@ -57,7 +58,11 @@ endif
# image creation and kernel install
kernel-strip:
+ifeq ($(ADK_TARGET_SYSTEM_NUMATO_MIMASV2),y)
+ $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+else
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
diff --git a/target/sh/kernel/numato-mimasv2 b/target/sh/kernel/numato-mimasv2
index 60481319f..f66b31fa1 100644
--- a/target/sh/kernel/numato-mimasv2
+++ b/target/sh/kernel/numato-mimasv2
@@ -2,7 +2,9 @@ CONFIG_SUPERH=y
CONFIG_SUPERH32=y
CONFIG_CPU_SH2=y
CONFIG_0PF_FPGA=y
-CONFIG_CPU_BIG_ENDIAN=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
diff --git a/target/sh/systems/numato-mimasv2 b/target/sh/systems/numato-mimasv2
index 5242c6ab7..07e234724 100644
--- a/target/sh/systems/numato-mimasv2
+++ b/target/sh/systems/numato-mimasv2
@@ -1,6 +1,7 @@
config ADK_TARGET_SYSTEM_NUMATO_MIMASV2
bool "Numato Mimas v2 FPGA"
select ADK_CPU_SH2
+ select ADK_TARGET_WITH_SERIAL
help
Support for Numato Mimas v2 FPGA with J2 Core Bitstream, sh2 architecture.