Browse Source

or1k: use 256 MB RAM by default

Waldemar Brodkorb 2 weeks ago
parent
commit
b7f6f9c23c
2 changed files with 13 additions and 1 deletions
  1. 12 0
      target/linux/patches/6.1.82/or1k-more-ram.patch
  2. 1 1
      target/or1k/Makefile

+ 12 - 0
target/linux/patches/6.1.82/or1k-more-ram.patch

@@ -0,0 +1,12 @@
+diff -Nur linux-6.1.82.orig/arch/openrisc/boot/dts/or1ksim.dts linux-6.1.82/arch/openrisc/boot/dts/or1ksim.dts
+--- linux-6.1.82.orig/arch/openrisc/boot/dts/or1ksim.dts	2024-03-15 19:27:50.000000000 +0100
++++ linux-6.1.82/arch/openrisc/boot/dts/or1ksim.dts	2024-04-14 16:37:35.139984380 +0200
+@@ -17,7 +17,7 @@
+ 
+ 	memory@0 {
+ 		device_type = "memory";
+-		reg = <0x00000000 0x02000000>;
++		reg = <0x00000000 0x08000000>;
+ 	};
+ 
+ 	cpus {

+ 1 - 1
target/or1k/Makefile

@@ -7,7 +7,7 @@ include $(ADK_TOPDIR)/mk/image.mk
 
 KERNEL:=$(LINUX_DIR)/vmlinux
 OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
-QEMU_ARGS:=-nographic
+QEMU_ARGS:=-m 256 -nographic
 
 # target helper text
 ifeq ($(ADK_TARGET_FS),initramfs)