瀏覽代碼

or1k: rename or1k-sim to sim-or1k, by default 64mb ram

Waldemar Brodkorb 8 年之前
父節點
當前提交
6ddeae54d6

+ 1 - 1
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
     ;;
   *)

+ 1 - 1
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 || \

+ 3 - 3
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

+ 12 - 0
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 {

+ 1 - 1
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

+ 0 - 0
target/or1k/kernel/or1k-sim → target/or1k/kernel/sim-or1k


+ 1 - 1
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

+ 0 - 12
target/or1k/patches/4.1.35/ld-or1k.patch

@@ -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 <asm/cache.h>
- #include <asm-generic/vmlinux.lds.h>
- 
--OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32")
-+OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k")
- jiffies = jiffies_64 + 4;
- 
- SECTIONS

+ 2 - 1
target/or1k/systems/or1k-sim → target/or1k/systems/sim-or1k

@@ -1,7 +1,8 @@
-config ADK_TARGET_SYSTEM_OR1K_SIM
+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.