From 6ddeae54d61d38ab19ba3dcc11216c8d3afc938e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 21 Nov 2016 16:48:41 +0100 Subject: or1k: rename or1k-sim to sim-or1k, by default 64mb ram --- package/adktest/src/quit | 2 +- target/config/Config.in.rootfs | 2 +- target/linux/config/Config.in.serial | 6 +++--- target/linux/patches/or1k-fixes-4.9/more-ram.patch | 12 ++++++++++++ target/or1k/Makefile | 2 +- target/or1k/kernel/or1k-sim | 8 -------- target/or1k/kernel/sim-or1k | 8 ++++++++ target/or1k/or1ksim.cfg | 2 +- target/or1k/patches/4.1.35/ld-or1k.patch | 12 ------------ target/or1k/systems/or1k-sim | 7 ------- target/or1k/systems/sim-or1k | 8 ++++++++ 11 files changed, 35 insertions(+), 34 deletions(-) create mode 100644 target/linux/patches/or1k-fixes-4.9/more-ram.patch delete mode 100644 target/or1k/kernel/or1k-sim create mode 100644 target/or1k/kernel/sim-or1k delete mode 100644 target/or1k/patches/4.1.35/ld-or1k.patch delete mode 100644 target/or1k/systems/or1k-sim create mode 100644 target/or1k/systems/sim-or1k diff --git a/package/adktest/src/quit b/package/adktest/src/quit index c128dbcbd..5a6576231 100755 --- a/package/adktest/src/quit +++ b/package/adktest/src/quit @@ -1,7 +1,7 @@ #!/bin/sh arch=$(uname -m) case $arch in - arc|blackfin|m68k|metag|nios2|s390x|sh4eb) + arc|blackfin|m68k|metag|nios2|openrisc|s390x|sh4eb) poweroff ;; *) diff --git a/target/config/Config.in.rootfs b/target/config/Config.in.rootfs index 1ebbc24e6..f4a974bcb 100644 --- a/target/config/Config.in.rootfs +++ b/target/config/Config.in.rootfs @@ -13,7 +13,7 @@ config ADK_TARGET_ROOTFS_INITRAMFSPIGGYBACK depends on \ ADK_TARGET_QEMU || \ ADK_TARGET_SIM || \ - ADK_TARGET_SYSTEM_OR1K_SIM || \ + ADK_TARGET_SYSTEM_SIM_OR1K || \ ADK_TARGET_ARCH_AARCH64 || \ ADK_TARGET_ARCH_ARC || \ ADK_TARGET_ARCH_ARM || \ diff --git a/target/linux/config/Config.in.serial b/target/linux/config/Config.in.serial index 4e7dae56d..9252b8fa7 100644 --- a/target/linux/config/Config.in.serial +++ b/target/linux/config/Config.in.serial @@ -83,7 +83,7 @@ config ADK_KERNEL_SERIAL_8250 || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \ || ADK_TARGET_SYSTEM_QEMU_NIOS2 \ || ADK_TARGET_SYSTEM_QEMU_OR1K \ - || ADK_TARGET_SYSTEM_OR1K_SIM + || ADK_TARGET_SYSTEM_SIM_OR1K select ADK_KERNEL_SERIAL_8250_PNP if ADK_TARGET_SYSTEM_PCENGINES_APU select ADK_KERNEL_SERIAL_8250_CONSOLE select ADK_KERNEL_SERIAL_8250_INGENIC if ADK_TARGET_SYSTEM_IMGTEC_CI20 @@ -102,7 +102,7 @@ config ADK_KERNEL_SERIAL_8250 || ADK_TARGET_SYSTEM_QEMU_X86 \ || ADK_TARGET_SYSTEM_QEMU_X86_64 \ || ADK_TARGET_SYSTEM_QEMU_XTENSA \ - || ADK_TARGET_SYSTEM_OR1K_SIM \ + || ADK_TARGET_SYSTEM_SIM_OR1K \ || ADK_TARGET_SYSTEM_IBM_X40 \ || ADK_TARGET_SYSTEM_GENERIC_NDS32 \ || ADK_TARGET_SYSTEM_GENERIC_X86 \ @@ -125,7 +125,7 @@ config ADK_KERNEL_SERIAL_8250 default y if ADK_TARGET_SYSTEM_QEMU_X86 default y if ADK_TARGET_SYSTEM_QEMU_X86_64 default y if ADK_TARGET_SYSTEM_QEMU_XTENSA - default y if ADK_TARGET_SYSTEM_OR1K_SIM + default y if ADK_TARGET_SYSTEM_SIM_OR1K default y if ADK_TARGET_SYSTEM_IBM_X40 default y if ADK_TARGET_SYSTEM_GENERIC_NDS32 default y if ADK_TARGET_SYSTEM_GENERIC_X86 diff --git a/target/linux/patches/or1k-fixes-4.9/more-ram.patch b/target/linux/patches/or1k-fixes-4.9/more-ram.patch new file mode 100644 index 000000000..943c881e4 --- /dev/null +++ b/target/linux/patches/or1k-fixes-4.9/more-ram.patch @@ -0,0 +1,12 @@ +diff -Nur linux-or1k-fixes-4.9.orig/arch/openrisc/boot/dts/or1ksim.dts linux-or1k-fixes-4.9/arch/openrisc/boot/dts/or1ksim.dts +--- linux-or1k-fixes-4.9.orig/arch/openrisc/boot/dts/or1ksim.dts 2016-11-17 21:49:29.000000000 +0100 ++++ linux-or1k-fixes-4.9/arch/openrisc/boot/dts/or1ksim.dts 2016-11-21 14:36:14.674136327 +0100 +@@ -11,7 +11,7 @@ + + memory@0 { + device_type = "memory"; +- reg = <0x00000000 0x02000000>; ++ reg = <0x00000000 0x04000000>; + }; + + cpus { diff --git a/target/or1k/Makefile b/target/or1k/Makefile index 31f8e8aab..4241233e8 100644 --- a/target/or1k/Makefile +++ b/target/or1k/Makefile @@ -27,7 +27,7 @@ endif ifeq ($(ADK_TARGET_FS),initramfspiggyback) targethelp: @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}' -ifeq ($(ADK_TARGET_SYSTEM_OR1K_SIM),y) +ifeq ($(ADK_TARGET_SYSTEM_SIM_OR1K),y) @echo "Start or1ksim via:" @echo 'sim -f target/or1k/or1ksim.cfg $(FW_DIR)/${TARGET_KERNEL}' endif diff --git a/target/or1k/kernel/or1k-sim b/target/or1k/kernel/or1k-sim deleted file mode 100644 index ee4d9d55c..000000000 --- a/target/or1k/kernel/or1k-sim +++ /dev/null @@ -1,8 +0,0 @@ -CONFIG_OPENRISC=y -CONFIG_OPENRISC_BUILTIN_DTB="or1ksim" -CONFIG_OR1K_1200=y -CONFIG_OPENRISC_HAVE_INST_FF1=y -CONFIG_OPENRISC_HAVE_INST_FL1=y -CONFIG_OPENRISC_HAVE_INST_MUL=y -CONFIG_OPENRISC_HAVE_INST_DIV=y -CONFIG_OPENRISC_NO_SPR_SR_DSX=y diff --git a/target/or1k/kernel/sim-or1k b/target/or1k/kernel/sim-or1k new file mode 100644 index 000000000..ee4d9d55c --- /dev/null +++ b/target/or1k/kernel/sim-or1k @@ -0,0 +1,8 @@ +CONFIG_OPENRISC=y +CONFIG_OPENRISC_BUILTIN_DTB="or1ksim" +CONFIG_OR1K_1200=y +CONFIG_OPENRISC_HAVE_INST_FF1=y +CONFIG_OPENRISC_HAVE_INST_FL1=y +CONFIG_OPENRISC_HAVE_INST_MUL=y +CONFIG_OPENRISC_HAVE_INST_DIV=y +CONFIG_OPENRISC_NO_SPR_SR_DSX=y diff --git a/target/or1k/or1ksim.cfg b/target/or1k/or1ksim.cfg index 7a26b1826..a4cd2fd6a 100644 --- a/target/or1k/or1ksim.cfg +++ b/target/or1k/or1ksim.cfg @@ -125,7 +125,7 @@ section memory ce = 1 mc = 0 baseaddr = 0x00000000 - size = 0x02000000 + size = 0x04000000 delayr = 1 delayw = 1 end diff --git a/target/or1k/patches/4.1.35/ld-or1k.patch b/target/or1k/patches/4.1.35/ld-or1k.patch deleted file mode 100644 index 81c9db6c2..000000000 --- a/target/or1k/patches/4.1.35/ld-or1k.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur linux-4.1.6.orig/arch/openrisc/kernel/vmlinux.lds.S linux-4.1.6/arch/openrisc/kernel/vmlinux.lds.S ---- linux-4.1.6.orig/arch/openrisc/kernel/vmlinux.lds.S 2015-08-17 05:52:51.000000000 +0200 -+++ linux-4.1.6/arch/openrisc/kernel/vmlinux.lds.S 2015-09-01 22:02:13.224692884 +0200 -@@ -30,7 +30,7 @@ - #include - #include - --OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") -+OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k") - jiffies = jiffies_64 + 4; - - SECTIONS diff --git a/target/or1k/systems/or1k-sim b/target/or1k/systems/or1k-sim deleted file mode 100644 index 4a1a47902..000000000 --- a/target/or1k/systems/or1k-sim +++ /dev/null @@ -1,7 +0,0 @@ -config ADK_TARGET_SYSTEM_OR1K_SIM - bool "OR1K Simulator" - select ADK_TARGET_CPU_OR1K - select ADK_TARGET_WITH_SERIAL - help - Simulator for OR1K architecture. - diff --git a/target/or1k/systems/sim-or1k b/target/or1k/systems/sim-or1k new file mode 100644 index 000000000..67bbbc245 --- /dev/null +++ b/target/or1k/systems/sim-or1k @@ -0,0 +1,8 @@ +config ADK_TARGET_SYSTEM_SIM_OR1K + bool "OR1K Simulator" + select ADK_TARGET_CPU_OR1K + select ADK_TARGET_WITH_SERIAL + select ADK_TARGET_WITH_NET + help + Simulator for OR1K architecture. + -- cgit v1.2.3